Comments (16)
Bump!
Original Comment By: bobp
from virtualenv.
instead of abspath
, i had to use os.path.realpath
due to my slightly
eccentric setup having a symlink from the Frameworks dir to the actual install
location (using homebrew).
Original Comment By: Edward George
from virtualenv.
Bump!
Original Comment By: Ryan Wilcox
from virtualenv.
I can't reproduce the problem on 10.6.2/virtualenv 1.4.5. My sys.prefix seems
normal:
$ /usr/bin/python -c "import sys;print sys.prefix"
/System/Library/Frameworks/Python.framework/Versions/2.6
Original Comment By: Philip Jenvey
from virtualenv.
I have some issues with python version (I've build Python from source and
replaced it with system's default) and virtualenv on OSX too and as workaround
I create virtual environments with option "-p which python
" and it seems to
work fine.
Original Comment By: Lukasz Balcerzak
from virtualenv.
Bump!
Original Comment By: Anonymous
from virtualenv.
Bump!
Original Comment By: Whit Morriss
from virtualenv.
I get this issue with system's Python 2.5.4 on MacOSX 10.6.3 and virtualenv
1.4.8
Original Comment By: Anonymous
from virtualenv.
After some digging it looks like the problem is cause by the fact that all
Python 2.5 related scripts (easy_install, virtualenv, etc.) are using
#!/usr/bin/python2.5 which is a symlink to system Python
Original Comment By: Anonymous
from virtualenv.
In my case, the issue was that system python(2.6) on osx(10.6) is capitalized.
diff -r 8dd7663d9811 virtualenv.py
--- a/virtualenv.py Thu Apr 22 03:15:11 2010 -0500
+++ b/virtualenv.py Sat May 22 14:53:47 2010 +0900
@@ -774,14 +774,20 @@
if 'Python.framework' in prefix:
logger.debug('MacOSX Python framework detected')
+ embedded_interpreter = os.path.join(
+ prefix,
+ 'Resources/Python.app/Contents/MacOS/%s' %
os.path.basename(sys.executable))
+ if not os.path.exists(embedded_interpreter):
+ embedded_interpreter = os.path.join(
+ prefix,
+ 'Resources/Python.app/Contents/MacOS/Python')
# Make sure we use the the embedded interpreter inside
# the framework, even if sys.executable points to
# the stub executable in ${sys.prefix}/bin
# See http://groups.google.com/group/python-virtualenv/
#
browse_thread/thread/17cab2f85da75951
shutil.copy(
- os.path.join(
- prefix, 'Resources/Python.app/Contents/MacOS/%s' %
os.path.basename(sys.executable)),
+ embedded_interpreter,
py_executable)
# Copy the framework's dylib into the virtual
Original Comment By: Yusuke MURAOKA
from virtualenv.
Bump!
Original Comment By: Anonymous
from virtualenv.
Hi,
comment #10 patch isn't working.
Original Comment By: #10
from virtualenv.
Patch by jbking in comment no. 10 works for me
Original Comment By: Daniel Hepper
from virtualenv.
Can someone confirm that [Author: jezdez
Age: 8 months ago
Fixed 32 - Partially reverted the changes made in r03bf4040094c to fix setting
up cross Python version virtualenv.">r312:4f8d56657fd3]1 fixes this?
Original Comment By: Jannis Leidel
from virtualenv.
[Author: jezdez
Age: 8 months ago
Fixed 32 - Partially reverted the changes made in r03bf4040094c to fix setting
up cross Python version virtualenv.">r312:4f8d56657fd3]1 resolves this issue
for me.
Original Comment By: Dan Callahan
from virtualenv.
Thanks, closing...
Original Comment By: Jannis Leidel
from virtualenv.
Related Issues (20)
- INTERNALERROR when running tests with tox HOT 1
- Has the process of creating Python.exe changed?
- Unable to create any virtual environments with a fresh re-installation of Python 3.9 and 3.11 HOT 5
- virtualenv creates not downgrade compatible caching data in %LOCALAPPDATA% HOT 1
- Virtualenv 20.23.1 fails to seed Python 3.12.0b3 leading to missing setuptools/wheel and failures HOT 5
- sdist is missing tasks/make_zipapp.py HOT 3
- Missing file: activation/bash/activate.sh HOT 2
- RuntimeError: no .dist-info python3.9 macos HOT 1
- Move to PyPA org on PyPI? HOT 11
- Add PKG_CONFIG_PATH to variables set by venv activate HOT 1
- Extra Closing Parenthesis in the Code
- deactivate command not available in shell scripts or sub-shells (activate script does not export "deactivate") HOT 1
- `try-first-with` behaves differently for `--python` full paths and version specs HOT 3
- post-create hooks for discoverers/discovery HOT 1
- not work properly with pywin32 HOT 2
- Update for platformdirs v4 HOT 14
- pytest fails in five units HOT 14
- tests/unit/create/test_creator.py::test_create_no_seed --creator venv fails on Python 3.13 HOT 7
- cpython3_win_embed test failures with Python 3.13 HOT 6
- mkvirtualenv fails with: ModuleNotFoundError: No module named 'platformdirs' HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from virtualenv.