1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Python problems

Discussion in 'GIMP for Mac' started by Auria, Mar 30, 2008.

  1. Auria

    Auria Member

    Joined:
    Mar 16, 2008
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    16
    As you might know, we had problems with python and python scripts were broken. My macports build just finished so I could look into it.

    It's now fixed in SVN :) Python scripts are back working, and also when you run GIMP from terminal there's now absolultey NO error message

    So now we really need some packagers to update our builds with all the new fixes!!
     
  2. theonehorst

    theonehorst Member

    Joined:
    Nov 29, 2007
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    6
    Home Page:
    great. I will try it :D
     
  3. Auria

    Auria Member

    Joined:
    Mar 16, 2008
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    16
    Oh crap, shipping python makes the final package 20-30 MB bigger :(

    I'll try making it smaller
     
  4. theonehorst

    theonehorst Member

    Joined:
    Nov 29, 2007
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    6
    Home Page:
    Just build the stuff like in the howto? or anything special on python?
     
  5. Auria

    Auria Member

    Joined:
    Mar 16, 2008
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    16
    I don't quite understand what you mean...

    python used to not work, simply because we did not include it. macports builds its own python and does not use the system one. so for python to work we need to ship a complete pyhton installation inside our build (i,ve updated the SVN so that's what it now does by default. but i'll probably update it again so that it only includes the bare minimal)
     
  6. Auria

    Auria Member

    Joined:
    Mar 16, 2008
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    16
    I commited a few changes to the gimpguts script... still not perfect but better (final package went from 75 MB to 63 MB... before python fix it was ~45MB)
     
  7. theonehorst

    theonehorst Member

    Joined:
    Nov 29, 2007
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    6
    Home Page:
    I just wanted to make sure, that the building process via macports hadn't changed.... :D

    So the changes are in gimpguts ok :D
     
  8. theonehorst

    theonehorst Member

    Joined:
    Nov 29, 2007
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    6
    Home Page:
    No more python errors when I start gimp-2.4 :D

    but when I start gimp via the app, dbus don't likes me:

    /Users/schroeder/src/darwingimp/skeleton/build/Gimp.app/Contents/Resources/bin/gimp
    Failed to start message bus: Failed to read directory "/tmp/skl/Gimp.app/Contents/Resources/etc/dbus-1/session.d": No such file or directory
    EOF in dbus-launch reading address from bus daemon

    the app package is now 180 mb big, but that's ok, if everything works :D
     
  9. Auria

    Auria Member

    Joined:
    Mar 16, 2008
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    16
    Hmm I don't get this :) can you check that the file /Resources/etc/dbus-1/session.d exists or not? If not, maybe just try to create it (on my computer session.d is an empty directory)
     
  10. theonehorst

    theonehorst Member

    Joined:
    Nov 29, 2007
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    6
    Home Page:
    AHHHH. Strange. Yesterday adding the directory didn't work, now it does :D

    Will upload the build this afternoon :D
     
  11. Auria

    Auria Member

    Joined:
    Mar 16, 2008
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    16
    Great, just don't forget to read my updated build instructions... there's a new ghostscript part that couldn't fit in gimpguts

    Also Clearlooks is probably still installed on your computer so it will probably get copied... You could manually remove it to not inflate the build with unused files

    Anyway great to have new builds coming  ;D

    EDIT: ha I see you're already done, never mind  :D hopefully ghostcript is still okay in your build
     
  12. theonehorst

    theonehorst Member

    Joined:
    Nov 29, 2007
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    6
    Home Page:
    I did a fesh install, so no clearlooks.

    ghostscript builds fine:
    /tmp/skl/Gimp.app/Contents/Resources/bin/gs --version
    8.62

    Ah... i just tried to open a eps:
    GPL Ghostscript 8.62: Can't find initialization file gs_init.ps.

    my macports installation is a little messed up. I will have a look at it tomorrow...
     
  13. Auria

    Auria Member

    Joined:
    Mar 16, 2008
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    16
    gs_init.ps is located inside /share/ghostscript... and /share/ghostscript is currently not included inside the bundle, probably because it takes 30 MB  :( I'm not sure why you need it, I personnaly don't... or maybe I haven't been trying enough posctscript files (especially ones with text, i haven't tested that)

    maybe we should include a trimmed down version of that too... but our build will get HUGE
     
  14. theonehorst

    theonehorst Member

    Joined:
    Nov 29, 2007
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    6
    Home Page:
  15. Auria

    Auria Member

    Joined:
    Mar 16, 2008
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    16
    I tested the files in Examples directory inside share/ghostscript

    circle.eps works fine here too
     
  16. theonehorst

    theonehorst Member

    Joined:
    Nov 29, 2007
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    6
    Home Page:
    I copied the share/ghostscript into the bundle. now it works. the file is now 200 mb big. I try to slim some ghostscript stuff down.

    It needs the lib and resources folder inside share/ghostscript/8.62. Another 20 15 mb, but it works.

    I will update the gimpguts.sh for the needed files.
     
  17. Auria

    Auria Member

    Joined:
    Mar 16, 2008
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    16
    What I don't quite get is why those files are needed on your computer but not on mine... hmm anyway it's probably better to incude them, maybe on my computer it just finds them somewhere else I forgot about
     
  18. theonehorst

    theonehorst Member

    Joined:
    Nov 29, 2007
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    6
    Home Page:
    I tested it on my wife's macbook. she has no macports or development stuff installed. the ghostscripz stuff was needed.
     

Share This Page