ronaldoussoren / py2app

py2app is a Python setuptools command which will allow you to make standalone Mac OS X application bundles and plugins from Python scripts.
Other
353 stars 35 forks source link

py2app easy_install doesn't work with 10.7.4 and xcode #114

Closed ronaldoussoren closed 7 years ago

ronaldoussoren commented 11 years ago

Original report by AcclivityNYC (Bitbucket: acclivitynyc, ).


Running MacOS X 10.7.5 with XCode 3.2.6 installed and XCode 4.6.2 Python 2.7.4

Steps to reproduce the issue:

virtualenv --python=python2.7 --no-site-packages test_env ./test_env/bin/activate easy_install py2app

This gives error (see error later)

Workaround:

Download all 3 packages yourself from source

hg clone https://bitbucket.org/ronaldoussoren/altgraph

hg clone https://bitbucket.org/ronaldoussoren/modulegraph

hg clone https://bitbucket.org/ronaldoussoren/py2app

cd altgraph

python setup.py install

cd ..

cd modulegraph

python setup.py install

cd ..

cd py2app

python setup.py install

This worked out OK.

Error message

(test_env)imac-marc:dev marcvanolmen$ sudo easy_install -U py2app
Password:
Processing py2app
Running setup.py -q bdist_egg --dist-dir /Users/marcvanolmen/dev/py2app/egg-dist-tmp-ZChuUw
warning: no directories found matching 'doc/_static'
warning: no directories found matching 'doc/_templates'
warning: no previously-included files matching '.DS_Store' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching '*.dSYM' found anywhere in distribution
warning: no previously-included files matching '*__pycache__*' found anywhere in distribution
no previously-included directories found matching 'py2app/apptemplate/prebuilt/main*.dSYM'
no previously-included directories found matching 'py2app/bundletemplate/prebuilt/main*.dSYM'
no previously-included directories found matching 'py2app_tests/*.dSYM'
no previously-included directories found matching 'examples/*/build'
no previously-included directories found matching 'examples/*/dist'
no previously-included directories found matching 'examples/*/*/build'
no previously-included directories found matching 'examples/*/*/dist'
no previously-included directories found matching 'examples/*/*/*/build'
no previously-included directories found matching 'examples/*/*/*/dist'
zip_safe flag not set; analyzing archive contents...
py2app.build_app: module references __file__
py2app.util: module references __file__
py2app.apptemplate.setup: module references __file__
py2app.apptemplate.lib.site: module references __file__
py2app.bootstrap.boot_aliasapp: module references __file__
py2app.bootstrap.boot_aliasplugin: module references __file__
py2app.bootstrap.boot_app: module references __file__
py2app.bootstrap.boot_plugin: module references __file__
py2app.bootstrap.import_encodings: module references __file__
py2app.bootstrap.import_encodings: module references __path__
py2app.bundletemplate.setup: module references __file__
py2app.bundletemplate.lib.site: module references __file__
py2app 0.8 is already the active version in easy-install.pth
Installing py2applet script to /Users/marcvanolmen/dev/test_env/bin

Installed /Users/marcvanolmen/dev/test_env/lib/python2.7/site-packages/py2app-0.8-py2.7.egg
Processing dependencies for py2app==0.8
Searching for modulegraph>=0.11
Reading http://pypi.python.org/simple/modulegraph/
Reading http://undefined.org/python/#modulegraph
Reading http://bitbucket.org/ronaldoussoren/modulegraph"
Reading http://bitbucket.org/ronaldoussoren/modulegraph
No local packages or download links found for modulegraph>=0.11
Best match: None
Traceback (most recent call last):
  File "/Users/marcvanolmen/dev/test_env/bin/easy_install", line 8, in <module>
    load_entry_point('setuptools==0.6c11', 'console_scripts', 'easy_install')()
  File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 1712, in main
  File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 1700, in with_ei_usage
  File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 1716, in <lambda>
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 211, in run
  File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 427, in easy_install
  File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 478, in install_item
  File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 519, in process_distribution
  File "build/bdist.linux-i686/egg/pkg_resources.py", line 563, in resolve
  File "build/bdist.linux-i686/egg/pkg_resources.py", line 799, in best_match
  File "build/bdist.linux-i686/egg/pkg_resources.py", line 811, in obtain
  File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 434, in easy_install
  File "build/bdist.linux-i686/egg/setuptools/package_index.py", line 475, in fetch_distribution
AttributeError: 'NoneType' object has no attribute 'clone'
(test_env)imac-marc:dev marcvanolmen$ 
ronaldoussoren commented 11 years ago

Original comment by AcclivityNYC (Bitbucket: acclivitynyc, ).


I was able to resolve my issue by Opening XCode 4.6.2 Go To Preferences->Download->Command Line Tools and click Install. Then easy_install py2app was working.

ronaldoussoren commented 7 years ago

Original comment by Ronald Oussoren (Bitbucket: ronaldoussoren, GitHub: ronaldoussoren).


Cannot reproduce the issue