gladex team mailing list archive
-
gladex team
-
Mailing list archive
-
Message #00063
[Bug 422977] Re: RuntimeError: Bad magic number in .pyc file
Hi, I had the same problem here with the .deb package.
A solution is download the source and just click on the gladex.py file.
If you are using python 2.5 it will work.
python 2.6 is not compatible with gladex, so pay attention to this.
when run in python 2.6 I have got this error:
(gladex.py:3665): libglade-WARNING **: could not find glade file '/gladex.glade'
Traceback (most recent call last):
File "gladex.py", line 66, in <module>
someclass = GladexClass()
File "gladex.py", line 38, in __init__
self.wTree = gtk.glade.XML(self.gladefile)
RuntimeError: could not create GladeXML object
and there is another error in callbacks.py:
__import__("plugins/"+inspect.getmodulename(plugs[i]+".py"))
this does not work anymore in python2.6
give this error.
ImportError: Import by filename is not supported.
I do not know if someone going to fix this, if you just want to use
gladex for now :
download the source,
and run:
python2.5 gladex.py
or change the first line of gladex.py from:
#!/usr/bin/env python
to
#!/usr/bin/env python2.5
--
RuntimeError: Bad magic number in .pyc file
https://bugs.launchpad.net/bugs/422977
You received this bug notification because you are a member of Gladex
Developers, which is subscribed to Gladex.
References