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

fab setup looking for python 3.4.1? #44

Open
scheung38 opened this issue Sep 29, 2015 · 0 comments
Open

fab setup looking for python 3.4.1? #44

scheung38 opened this issue Sep 29, 2015 · 0 comments

Comments

@scheung38
Copy link

I am in pyenv2.7.10:

(pyenv2.7.10) $ fab setup
[] Executing task 'setup'
[localhost] local: virtualenv env
/bin/sh: /usr/local/bin/virtualenv: /usr/local/Cellar/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/bin/p: bad interpreter: No such file or directory

Fatal error: local() encountered an error (return code 126) while executing 'virtualenv env'

Aborting.

Why is it looking for Python3? Or it has to run with Python 3?

Then changed to Python 3.4.1, at least virtual env complain goes away but now

ImportError: cannot import name 'isMappingType'

I am confused with Python version to use

$ python2.7
>>> from operator import isMappingType
>>>

$ python3.4
>>> from operator import isMappingType
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name 'isMappingType'

This link says Fabric is not supported in Python 3?
http://stackoverflow.com/questions/29306752/fabric-import-error-cannot-import-name-ismappingtype

Also not sure why

from werkzeug import generate_password_hash, check_password_hash

cannot import generate_password_hash and check_password_hash.

EDIT werkzeug should be:

from werkzeug.security import generate_password_hash, check_password_hash

Helps if requirements.txt is there.

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

No branches or pull requests

1 participant