#6 GTKRawGallery doesn't start

open
nobody
None
5
2009-06-09
2009-06-09
Anonymous
No

here is the terminal output:

rhen@rhen-desktop:~/Letöltések/gtkrawgallery-0.9.4$ gtkrawgallery %f
Traceback (most recent call last):
File "/usr/local/bin/gtkrawgallery", line 8, in <module>
import gtkrawgallery
File "/usr/local/lib/python2.6/dist-packages/gtkrawgallery.py", line 17, in <module>
import loader
ImportError: No module named loader

Discussion

  • Tamas Nehr

    Tamas Nehr - 2009-06-09

    I've posted the bug report, but I forgot to login.

     
  • Daniele Isca

    Daniele Isca - 2009-06-10

    Hi,
    the module loader.py should be into the /usr/local/share/gtkrawgallery directory.
    Install from source and look at that directory permissions too.

     
  • Tamas Nehr

    Tamas Nehr - 2009-06-14

    I try to use the version I've downloaded from sourceforge.net.
    I installed as described in the read me file.

    The loader.py is in /usr/local/share/gtkrawgallery

    when I tried to start with sudo, it give me the same error message. So I think it's not caused by wrong permissions.

     
  • Nobody/Anonymous

    try to launch grg with the following command:

    $> PYTHONPATH=/usr/local/share/gtkrawgallery gtkrawgallery

    Otherwise, you should edit /usr/local/lib/python2.6/dist-packages/gtkrawgallery.py and change the following lines:

    if os.path.join(sys.prefix, 'share', 'gtkrawgallery') not in sys.path:
    sys.path.append(os.path.join(sys.prefix, 'share', 'gtkrawgallery'))

    with

    if os.path.join(sys.prefix, 'local', 'share', 'gtkrawgallery') not in sys.path:
    sys.path.append(os.path.join(sys.prefix, 'local', 'share', 'gtkrawgallery'))

     
  • Tamas Nehr

    Tamas Nehr - 2009-06-30

    The problem is solved.

    So. If you use ubuntu you need to install dcraw and exiftool from source. (the packages in the repo is old for gtkrawgallery)
    You need to replace all "if os.path.join(sys.prefix, 'share'" statement with "if os.path.join(sys.prefix, 'local', 'share'".

    I suggest that you need to release a 9.4.1 version with the modified gtkrawgallery.py.

     
  • Daniele Isca

    Daniele Isca - 2009-07-05

    Hi,
    the problem is that sys.prefix does not return the right path.
    The solution is more simple, because sys.prefix is writable, edit gtkrawgallery.py
    and loader.py inserting the line
    sys.prefix = "/usr/local"
    after the 'import sys' statement and reinstall.
    Next gtkrawgallery version will fix the bug.
    Regards

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks