source install on linux mistakenly errors out looking in /usr/share/phatch instead of /usr/local/share/phatch for data/geek.txt

Bug #832492 reported by Scott Stensland
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Phatch
New
Undecided
Unassigned

Bug Description

the source install for linux :

http://photobatch.stani.be/download/package/phatch-0.2.7.1.tar.gz

installs OK yet upon launch has fatal error
mistakenly looking for file

/usr/share/phatch/data/geek.txt

when by default it should look at

/usr/local/share/phatch/data/geek.txt

Here is actual cut N paste :

scott@khamchatka ~/src/phatch-0.2.7 $ phatch
Traceback (most recent call last):
  File "/usr/local/bin/phatch", line 16, in <module>
    main(config_paths, app_file = __file__)
  File "/usr/local/lib/python2.7/dist-packages/phatch/app.py", line 216, in main
    _init_fonts()
  File "/usr/local/lib/python2.7/dist-packages/phatch/app.py", line 168, in _init_fonts
    config.verify_app_user_paths()
  File "/usr/local/lib/python2.7/dist-packages/phatch/core/config.py", line 100, in verify_app_user_paths
    USER_GEEK_PATH)
  File "/usr/lib/python2.7/shutil.py", line 81, in copyfile
    with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory: '/usr/share/phatch/data/geek.txt'
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 14636, in <lambda>
    lambda event: event.callable(*event.args, **event.kw) )
  File "/usr/local/lib/python2.7/dist-packages/phatch/pyWx/gui.py", line 1219, in show_frame
    api.init()
  File "/usr/local/lib/python2.7/dist-packages/phatch/core/api.py", line 93, in init
    verify_app_user_paths()
  File "/usr/local/lib/python2.7/dist-packages/phatch/core/config.py", line 100, in verify_app_user_paths
    USER_GEEK_PATH)
  File "/usr/lib/python2.7/shutil.py", line 81, in copyfile
    with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory: '/usr/share/phatch/data/geek.txt'

SOLUTION - a temporary repair is to issue cmd :

cd /usr/share && sudo ln -s /usr/local/share/phatch

Revision history for this message
Stani (stani) wrote :

On which Linux distro is this?

Revision history for this message
Scott Stensland (scottstensland) wrote : Re: [Bug 832492] Re: source install on linux mistakenly errors out looking in /usr/share/phatch instead of /usr/local/share/phatch for data/geek.txt

Stani

 Description: Ubuntu oneiric (development branch)
 Release: 11.10

 g++ --version
g++ (Ubuntu/Linaro 4.6.1-7ubuntu2) 4.6.1

 uname -a
Linux khamchatka 3.0.0-9-generic #14-Ubuntu SMP Tue Aug 23 17:02:50
UTC 2011 i686 i686 i386 GNU/Linux

python --version
Python 2.7.2+

Scott Stensland

On Fri, Aug 26, 2011 at 12:22 PM, Stani <email address hidden> wrote:
> On which Linux distro is this?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/832492
>
> Title:
>  source install on linux mistakenly errors out looking in
>  /usr/share/phatch instead of /usr/local/share/phatch for data/geek.txt
>
> Status in Phatch = Photo & Batch!:
>  New
>
> Bug description:
>  the source install for linux :
>
>  http://photobatch.stani.be/download/package/phatch-0.2.7.1.tar.gz
>
>  installs OK yet upon launch has fatal error
>  mistakenly looking for file
>
>  /usr/share/phatch/data/geek.txt
>
>  when by default it should look at
>
>  /usr/local/share/phatch/data/geek.txt
>
>  Here is actual cut N paste :
>
>  scott@khamchatka ~/src/phatch-0.2.7 $ phatch
>  Traceback (most recent call last):
>    File "/usr/local/bin/phatch", line 16, in <module>
>      main(config_paths, app_file = __file__)
>    File "/usr/local/lib/python2.7/dist-packages/phatch/app.py", line 216, in main
>      _init_fonts()
>    File "/usr/local/lib/python2.7/dist-packages/phatch/app.py", line 168, in _init_fonts
>      config.verify_app_user_paths()
>    File "/usr/local/lib/python2.7/dist-packages/phatch/core/config.py", line 100, in verify_app_user_paths
>      USER_GEEK_PATH)
>    File "/usr/lib/python2.7/shutil.py", line 81, in copyfile
>      with open(src, 'rb') as fsrc:
>  IOError: [Errno 2] No such file or directory: '/usr/share/phatch/data/geek.txt'
>  Traceback (most recent call last):
>    File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 14636, in <lambda>
>      lambda event: event.callable(*event.args, **event.kw) )
>    File "/usr/local/lib/python2.7/dist-packages/phatch/pyWx/gui.py", line 1219, in show_frame
>      api.init()
>    File "/usr/local/lib/python2.7/dist-packages/phatch/core/api.py", line 93, in init
>      verify_app_user_paths()
>    File "/usr/local/lib/python2.7/dist-packages/phatch/core/config.py", line 100, in verify_app_user_paths
>      USER_GEEK_PATH)
>    File "/usr/lib/python2.7/shutil.py", line 81, in copyfile
>      with open(src, 'rb') as fsrc:
>  IOError: [Errno 2] No such file or directory: '/usr/share/phatch/data/geek.txt'
>
>  SOLUTION - a temporary repair is to issue cmd :
>
>  cd  /usr/share && sudo ln -s /usr/local/share/phatch
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/phatch/+bug/832492/+subscriptions
>

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.