Coder Social home page Coder Social logo

Comments (16)

vbabiy avatar vbabiy commented on May 22, 2024

Bump!


Original Comment By: bobp

from virtualenv.

vbabiy avatar vbabiy commented on May 22, 2024

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.

vbabiy avatar vbabiy commented on May 22, 2024

Bump!


Original Comment By: Ryan Wilcox

from virtualenv.

vbabiy avatar vbabiy commented on May 22, 2024

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.

vbabiy avatar vbabiy commented on May 22, 2024

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.

vbabiy avatar vbabiy commented on May 22, 2024

Bump!


Original Comment By: Anonymous

from virtualenv.

vbabiy avatar vbabiy commented on May 22, 2024

Bump!


Original Comment By: Whit Morriss

from virtualenv.

vbabiy avatar vbabiy commented on May 22, 2024

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.

vbabiy avatar vbabiy commented on May 22, 2024

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.

vbabiy avatar vbabiy commented on May 22, 2024

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.

vbabiy avatar vbabiy commented on May 22, 2024

Bump!


Original Comment By: Anonymous

from virtualenv.

vbabiy avatar vbabiy commented on May 22, 2024

Hi,

comment #10 patch isn't working.


Original Comment By: #10

from virtualenv.

vbabiy avatar vbabiy commented on May 22, 2024

Patch by jbking in comment no. 10 works for me


Original Comment By: Daniel Hepper

from virtualenv.

vbabiy avatar vbabiy commented on May 22, 2024

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.

vbabiy avatar vbabiy commented on May 22, 2024

[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.

vbabiy avatar vbabiy commented on May 22, 2024

Thanks, closing...


Original Comment By: Jannis Leidel

from virtualenv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.