sheldonrobinson / shedskin

Automatically exported from code.google.com/p/shedskin
0 stars 0 forks source link

Can't compile examples/c64_main.py #198

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Is that standard behaviour ?
$ py2cpp c64_main.py 
*** SHED SKIN Python-to-C++ Compiler 0.9.4 ***
Copyright 2005-2011 Mark Dufour; License GNU GPL version 3 (See LICENSE)

*ERROR* c64_main.py:4: cannot locate module: pygtk
py2cpp is renamed scripts/shedskin copied one directory up (named shedskin, so 
name can't be the same) and aliased in shell.

Everything is fine with my python instalation:
>>> from sys import path as ptSys
>>> ptSys
['', '/usr/lib64/python2.7/site-packages/uniconvertor/app/modules', 
'/usr/lib64/python27.zip', '/usr/share/python2.7', 
'/usr/share/python2.7/plat-linux2', '/usr/share/python2.7/lib-tk', 
'/usr/share/python2.7/lib-old', '/usr/lib64/python2.7/lib-dynload', 
'/usr/lib64/python2.7/site-packages', 
'/usr/lib64/python2.7/site-packages/gtk-2.0', 
'/usr/share/python2.7/site-packages']
>>> import pygtk, gtk
>>> help()
help> modules

Please wait a moment while I gather a list of all available modules...

[...]
array               gnomevfs            pygtk               whichdb
[...]
atom                gtk                 pyrra               xdg
[...]
Instaled python-devel-2.7.6-1.x86_64

Original issue reported on code.google.com by LordBlick on 5 Feb 2014 at 11:34

GoogleCodeExporter commented 9 years ago
thanks for the feedback. please see examples/README for compilation 
instructions. the 'main' program cannot be compiled, because shedskin doesn't 
support modules such as pygtk.

Original comment by mark.duf...@gmail.com on 6 Feb 2014 at 7:07

GoogleCodeExporter commented 9 years ago
Thanks for fast reply. Most of my python application is pygtk based. Is there 
some manual to force shedskin like in c64 example ?
BTW.
if module_name not(in suported_module_list):
    print("*ERROR* %s module not suported yet" % (module_name))
    sys.exit(1)
# ;)

Original comment by LordBlick on 6 Feb 2014 at 10:01