Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cargo cann't be built in msys2. #1088

Closed
o01eg opened this issue Dec 24, 2014 · 6 comments · Fixed by #1347
Closed

Cargo cann't be built in msys2. #1088

o01eg opened this issue Dec 24, 2014 · 6 comments · Fixed by #1347
Labels
E-easy Experience: Easy

Comments

@o01eg
Copy link

o01eg commented Dec 24, 2014

Cargo cann't download snapshot in msys2 and fails to build:

$ make
/mingw64/bin/python src/etc/dl-snapshot.py x86_64-pc-windows-gnu
Traceback (most recent call last):
  File "src/etc/dl-snapshot.py", line 80, in <module>
    with urlopen(url) as in_file:
  File "src/etc/dl-snapshot.py", line 14, in <lambda>
    urlopen = lambda url: closing(urlopen2(url))
  File "E:/msys64/mingw64/lib/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "E:/msys64/mingw64/lib/python2.7/urllib2.py", line 431, in open
    response = self._open(req, data)
  File "E:/msys64/mingw64/lib/python2.7/urllib2.py", line 454, in _open
    'unknown_open', req)
  File "E:/msys64/mingw64/lib/python2.7/urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "E:/msys64/mingw64/lib/python2.7/urllib2.py", line 1265, in unknown_open
    raise URLError('unknown url type: %s' % type)
urllib2.URLError: <urlopen error unknown url type: https>
Makefile:81: recipe for target 'target/snapshot/bin/cargo.exe' failed
make: *** [target/snapshot/bin/cargo.exe] Error 1
@o01eg
Copy link
Author

o01eg commented Dec 25, 2014

Here is a shell script that do same: https://gist.github.com/o01eg/1eedd5f49332113b9228

@alexcrichton
Copy link
Member

Ah it looks like https support isn't built in by default. I'd be fine going back to requiring curl to be installed to download the nightlies.

@alexcrichton alexcrichton added the E-easy Experience: Easy label Dec 28, 2014
@alexcrichton
Copy link
Member

cc aceba88

@o01eg
Copy link
Author

o01eg commented Dec 29, 2014

Isn't it better to remove python as dependency?

@alexcrichton
Copy link
Member

It's a bit of a bootstrapping problem one way or another. We could rewrite the scripts in bash, but arguably python is a little more cross platform (thinking of windows), but requiring both would definitely be unfortunate!

@gamma235
Copy link

gamma235 commented Jan 1, 2015

I'm stuck with similar situation and am a newbie when it comes to command line scripts. I am using a mac with OSX. Below is the exact error I get when I run make. What should I do to get this up and running?

raceback (most recent call last):ot.py 
File "src/etc/dl-snapshot.py", line 34, in <module>
vendor = ts[1]
IndexError: list index out of range
make: *** [target/snapshot/bin/cargo] Error 1

bors added a commit that referenced this issue Feb 25, 2015
We've had too many problems using urllib to make it worth it.

Closes #1346
Closes #1088
cc #1319 (using a proxy through curl)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E-easy Experience: Easy
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants