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

Makefile setup-dev-env recipe import errors on Python 3.x #827

Closed
tijko opened this issue May 25, 2016 · 3 comments · Fixed by #828
Closed

Makefile setup-dev-env recipe import errors on Python 3.x #827

tijko opened this issue May 25, 2016 · 3 comments · Fixed by #828
Labels

Comments

@tijko
Copy link
Contributor

tijko commented May 25, 2016

When running make setup-dev-env on Python 3.x the recipe attempts to import urllib2, which throws a ImportError on Python 3.x.

@giampaolo
Copy link
Owner

Please paste the whole output.

On Wed, May 25, 2016 at 5:37 PM, Timmy Konick notifications@github.com
wrote:

When running make setup-dev-env on Python 3.x the recipe attempts to
import urllib2, which throws a ImportError on Python 3.x.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#827

Giampaolo - http://grodola.blogspot.com

@tijko
Copy link
Contributor Author

tijko commented May 25, 2016

$ make setup-dev-env

Traceback:

ln -sf ../../.git-pre-commit .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit
python -c  "import urllib2, ssl; \
                        context = ssl._create_unverified_context() if hasattr(ssl, '_create_unverified_context') else None; \
                        kw = dict(context=context) if context else {}; \
                        r = urllib2.urlopen('https://bootstrap.pypa.io/get-pip.py', **kw); \
                        open('/tmp/get-pip.py', 'w').write(r.read());"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named 'urllib2'
Makefile:38: recipe for target 'setup-dev-env' failed
make: *** [setup-dev-env] Error 1

Running Python 3.5.1

@tijko
Copy link
Contributor Author

tijko commented May 31, 2016

Is any more information needed regarding this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants