[Mac] phatch 0.2.7.1 dies on macosx when installed with 'python setup.py install'

Bug #538781 reported by robinmills
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Phatch
Fix Released
Critical
Stani

Bug Description

510 /Users/rmills $ bzr checkout lp:phatch

511 /Users/rmills $ cd phatch
512 /Users/rmills/phatch $ bzr update
Tree is up to date at revision 1821.

515 /Users/rmills/phatch $ ls -alt /Library/Python/2.6/site-packages/
total 8
drwxrwxr-x 4 root admin 136 Mar 14 10:58 .
drwxr-xr-x 167 root admin 5678 Mar 13 13:11 PIL
-rw-r--r-- 1 root admin 4 Mar 13 13:11 PIL.pth
drwxrwxr-x 3 root admin 102 Jul 7 2009 ..

516 /Users/rmills/phatch $ sudo python setup.py install
running install
running build
running build_py
copying data/gui/preview/blender/rotation/sphere/hori_60_vert_60.jpg -> /System/Library/Frameworks/Python.framework/Versions/2.6/em/Library/Frameworks/Python.framework/Versions/2.6/share/phatch/data/gui/preview/blender/rotation/sphere
copying setup/linux/phatch.1 -> /System/Library/Frameworks/Python.framework/Versions/2.6/share/man/man1
running install_egg_info
Writing /Library/Python/2.6/site-packages/Phatch-0.2.7-py2.6.egg-info

Installation finished! You can now run Phatch by typing 'phatch'
or through your applications menu.

517 /Users/rmills/phatch $ phatch
Traceback (most recent call last):
  File "/usr/local/bin/phatch", line 13, in <module>
    from app import main
  File "/Library/Python/2.6/site-packages/phatch/app.py", line 36, in <module>
    from core.context import CONTEXT, check_user_paths
  File "/Library/Python/2.6/site-packages/phatch/core/context.py", line 99, in <module>
    % CONTEXT['app_doc_path'])
lib.context.ContextError: Developer documentation can not be found in "/Library/Python/2.6/site-packages/doc".
518 /Users/rmills/phatch $ ls /Library/Python/2.6/site-packages/
PIL PIL.pth Phatch-0.2.7-py2.6.egg-info phatch
519 /Users/rmills/phatch $

Tags: mac
Revision history for this message
Stani (stani) wrote :

Confirmed with trunk. This should be easy to fix for me.

Changed in phatch:
assignee: nobody → stani (stani)
importance: Undecided → Critical
milestone: none → 0.2.8
status: New → Confirmed
summary: - phatch 0.2.7.1 dies on macosx during startup
+ phatch 0.2.7.1 dies on macosx when installed with python setup.py
+ install
summary: - phatch 0.2.7.1 dies on macosx when installed with python setup.py
- install
+ phatch 0.2.7.1 dies on macosx when installed with 'python setup.py
+ install'
Stani (stani)
Changed in phatch:
status: Confirmed → In Progress
Revision history for this message
Stani (stani) wrote : Re: phatch 0.2.7.1 dies on macosx when installed with 'python setup.py install'

$ bzr commit -m "merge fixes for apple"
Committing to: /home/stani/sync/python/phatch/repo/trunk/
modified setup.py
modified phatch/lib/context.py
added setup/apple
added setup/apple/uninstall
                                                                                3/5
Ran 156 license tests in 1.706s
----------------------------------------------------------------------
Ran 62 tests in 0.357s

OK
----------------------------------------------------------------------
Ran 154 PEP8 tests in 0.147s

Ran precommit tests in 5.110s

Committed revision 1827.
$ bzr push
Using saved push location: bzr+ssh://bazaar.launchpad.net/~stani/phatch/trunk/
Pushed up to revision 1827.

@robin
You can see all paths, which Phatch uses with:
$ phatch --paths

Changed in phatch:
status: In Progress → Fix Committed
Revision history for this message
robinmills (robinmills) wrote :
Download full text (5.4 KiB)

This seems to be fixed now. Great Job!

504 /Users/rmills $ cd phatch
505 /Users/rmills/phatch $ bzr update
+N setup/apple/
... stuff deleted ...
 M tests/test_suite/utils.py
All changes applied successfully.
Updated to revision 1831.

506 /Users/rmills/phatch $ ... python setup.py install
running install
running build
.... lots of stuff deleted ....
copying data/gui/preview/blender/rotation/sphere/hori_60_vert_30.jpg -> /Library/Application Support/Phatch/gui/preview/blender/rotation/sphere
copying data/gui/preview/blender/rotation/sphere/hori_60_vert_60.jpg -> /Library/Application Support/Phatch/gui/preview/blender/rotation/sphere
copying setup/linux/phatch.1 -> /usr/share/man/man1
running install_egg_info
Removing /Library/Python/2.6/site-packages/Phatch-0.2.7-py2.6.egg-info
Writing /Library/Python/2.6/site-packages/Phatch-0.2.7-py2.6.egg-info

Installation finished! You can now run Phatch by typing 'phatch'
or through your applications menu

507 /Users/rmills/phatch $ phatch --help
Usage:
  Phatch [actionlist]
  Phatch [options] [actionlist] [image folders/files/urls]
  Phatch --inspect [image files/urls]
  Phatch --droplet [actionlist/recent] [image files/urls]

Examples:
  phatch action_list.phatch
  phatch --verbose --recursive action_list.phatch image_file.png image_folder
  phatch --inspect image_file.jpg
  phatch --droplet recent

Options:
  --version show program's version number and exit
  -h, --help show this help message and exit
  -c, --console Run Phatch as console program without a gui
  -d, --droplet Run Phatch as a gui droplet
  --desktop Always save on desktop
  -f, --force Ignore errors
  --fonts Initialize fonts (only for installation scripts)
  -i, --interactive Interactive
  -k, --keep Keep existing images (don't overwrite)
  -l LOCALE Specify locale language (for example en or en_GB)
  --log=LOG_LEVEL Logging level
  -n, --inspect Inspect metadata (requires exif & iptc plugin)
  --no-save No save action required at the end
  --paths Show application paths
  -r, --recursive Include all subfolders
  -t, --trust Do not check images first
  --unsafe Allow Geek action and unsafe expressions
  -v, --verbose Verbose

508 /Users/rmills/phatch $ phatch --paths
{'app_actionlists_path': '/Library/Application Support/Phatch/actionlists',
 'app_actions_path': u'/Library/Python/2.6/site-packages/phatch/actions',
 'app_blender_path': '/Library/Application Support/Phatch/blender',
 'app_data_path': '/Library/Application Support/Phatch',
 'app_doc_dev_path': '/usr/share/doc/phatch/index.html',
 'app_doc_path': '/usr/share/doc/phatch',
 'app_extension': '.phatch',
 'app_fonts_cache_path': '/Library/Application Support/Phatch/fonts.cache',
 'app_fonts_path': '/Library/Application Support/Phatch/fonts',
 'app_gui_path': '/Library/Application Support/Phatch/gui',
 'app_highlights_path': '/Library/Applicati...

Read more...

Stani (stani)
summary: - phatch 0.2.7.1 dies on macosx when installed with 'python setup.py
+ [Mac] phatch 0.2.7.1 dies on macosx when installed with 'python setup.py
install'
Stani (stani)
Changed in phatch:
status: Fix Committed → Fix Released
Stani (stani)
tags: added: mac
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.