kivy / kivy-sdk-packager

Scripts for Kivy SDK generation on Windows, OS X and Linux
MIT License
40 stars 32 forks source link

Running pip on OSX / Kivy3: No such file or directory: activate_this.py #36

Open dessant opened 7 years ago

dessant commented 7 years ago

From @miohtama on January 2, 2017 6:15

Fresh Kivy3 1.9.1. install.

Attempt to run pip command directly fails.

/Applications/Kivy3.app/Contents/Resources/venv/bin/pip
Traceback (most recent call last):
  File "/Applications/Kivy3.app/Contents/Resources/venv/bin/pip", line 3, in <module>
    import os; activate_this=os.path.join(os.path.dirname(os.path.realpath(__file__)), 'activate_this.py'); exec(compile(open(activate_this).read(), activate_this, 'exec'), dict(__file__=activate_this)); del os, activate_this
IOError: [Errno 2] No such file or directory: '/Applications/Kivy3.app/Contents/Resources/venv/bin/activate_this.py'

Not sure if this is intentional or the virtual environment shipped with the installation is broken.

Copied from original issue: kivy/kivy#4868

dessant commented 7 years ago

From @miohtama on January 2, 2017 6:36

Workaround: use Homebrew installation method.

miohtama commented 7 years ago

Neither pip nor kivy -m pip works. The following works on Kivy (2) on the same computer:

/Applications/Kivy2.app/Contents/MacOS/Kivy -m pip install -U pip

... so this seems to be regression.