-
Notifications
You must be signed in to change notification settings - Fork 54
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
mkvirtualenv fail python3 #24
Comments
@brainsik, this is the issue that I mentioned to you a while ago. What's happening is this: In standard usage, distribute's This means that the source code for distribute was never intended to run under Python 2 and 3. When virtualenvburrito puts it inside While it may be a questionable choice for distribute to not update their code to work under 2 and 3 (they rejected my pull request to do exactly that: https://bitbucket.org/tarek/distribute/pull-request/7/fixes-for-python-3-compatibility/diff ), ultimately I think this requires a bit of a rethink to how virtualenvburrito installs its dependencies and modifies |
I don't use virtualenv-burrito, but ended up here after a link from a discussion of this on distribute. Only after Python 3.2 is it possible to share libraries across Python versions, as only then can you have .pyc files for several versions of Python in the same directory. As such, virtualenv-burrito should not modify PYTHONPATH in this way. |
I'm also facing this bug (using virtualenv-burrito on debian): |
I'm encountering the same error on OSX with python 3.3. Is there a work around? Thank you for your help, I'm just getting started with python and I look forward to using it. Please let me know if I can provide any additional information. |
Nope, there is no fix to this yet - it's a structural flaw in |
Thank you for getting back to me to me. Is there a way to uninstall virtualenv-burrito since I can't use it? Thank you again for for your help. |
To uninstall:
|
Got it! Thanks again. |
I've run into this same issue. Would a pull request fix be considered? |
A pull request would be welcome, but it's pretty complicated to fix. Rather than having one set of libraries under |
A change I just made for getting this to work with Homebrew's Python is a step in the right direction. Many of the packages used by Virtualenv Burrito are now living in a platform specific directory (e.g., $HOME/.venvburrito/lib/python2.7). There's still a lot of work left to do to get this issue fixed. |
I really hope this gets fixed soon, I stumbled upon this problem right now. So lots of love and encouragement for the person(s) that fixes this! |
I just created a virtualenv with pyvenv-3.4. pyvenv in Python 3.4 installs pip. Then I pip-installed flask with it as a test. That is, that all worked after I cleared the PYTHONPATH variable. I agree, burrito shouldn't modify the PYTHONPATH in the user's environment... although I haven't looked into that. Also, some of the things in PYTHONPATH were my own; this isn't the only case where one has to be careful using PYTHONPATH if you're switching between Pythons. I wish virtualenv / pyvenv allowed layering of venvs on venvs; the last time I tried that virtualenv barfed. |
So has this been fixed? |
Installed Python 3
brew install python3
then
mkvirtualenv -p /usr/local/bin/python3 testpy3
got this error:
let me know if I can be of further assistance
The text was updated successfully, but these errors were encountered: