473,395 Members | 1,488 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Python "decompyle"

Hi.

If I try to use decompyle (decompyle-2.3) for pyc-files < version 2.0, I
get an error with marshal_20 (ImportError: dynamic module does not define
init function (initmarshal_20) ). marshal_20 was compiled to a so-file
using gcc.

Does anybody know where this error could come from and how to solve it?

Thanks,
dave
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Jul 18 '05 #1
2 5081

"David Dürrenmatt" <dd@guv.ethz.ch> wrote in message
news:op**************@news.swissonline.ch...
If I try to use decompyle (decompyle-2.3) for pyc-files < version 2.0, I
get an error with marshal_20 (ImportError: dynamic module does not define
init function (initmarshal_20) ). marshal_20 was compiled to a so-file
using gcc.

Does anybody know where this error could come from and how to solve it?


Your post suggests that your build does work for .pyc files >= version 2.0.
Is this correct? Does the doc for decompyle say it should work for earlier
versions?

The creation of .pyc files is a CPython implementation detail and the
format is version specific. So it is easy to imagine that dycompyle might
give up or occasionally misfire with ancient .pycs. But maybe the answer
lies elsewhere.

Terry J. Reedy

Jul 18 '05 #2
On Sun, 15 Aug 2004 15:57:30 -0400, Terry Reedy <tj*****@udel.edu> wrote:
"David Dürrenmatt" <dd@guv.ethz.ch> wrote in message
news:op**************@news.swissonline.ch...
If I try to use decompyle (decompyle-2.3) for pyc-files < version 2.0, I
get an error with marshal_20 (ImportError: dynamic module does not
define
init function (initmarshal_20) ). marshal_20 was compiled to a so-file
using gcc.

Does anybody know where this error could come from and how to solve it?


Your post suggests that your build does work for .pyc files >= version
2.0.
Is this correct? Does the doc for decompyle say it should work for
earlier
versions?


Yes, it does work. And documentation says, it should.

Fact is, marshal_20 is used to read the marshaled data in the pyc files <
2.0 (different version of marshal). And the problem doesn't really lie in
decompyle itsself: if I try to import marshal_20 from python prompt, I get
the error mentioned above.
Thanks,
dave
Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Irmen de Jong | last post by:
QOTW: "Giving full access rights to a secretary or new programmer ought to insure an occasional random file deletion." -- Raymond Hettinger "I always use join, but that's probably because that...
0
by: Irmen de Jong | last post by:
QOTW: "Confronting the Martellibot is like flirting with an encyclopedia, I'd rather not do it myself, but I respect those who do, because it produces knowledge." -- Anton...
0
by: Irmen de Jong | last post by:
QOTW: "I'll claim without proof that how mixed-type comparisons work with Python classes is also beyond wizard prediction in all cases: the implementation of comparison in Python is crushingly...
0
by: Irmen de Jong | last post by:
QOTW: "To make the instructions even friendlier it would also help if 'but Whatever You Do DON'T UNZIP THE FREAKIN' THING - This Means YOU John Latter!' were in large, bold, and underlined type. ...
0
by: Irmen de Jong | last post by:
QOTW: "What can I do with Python that I can't do with C#? You can go home on time at the end of the day." -- Daniel Klein "Python lends itself to playing with it and to discussing the merits of...
0
by: Irmen de Jong | last post by:
QOTW: "The best use for a bug report on comp.lang.python is as an object lesson for your grandchildren: 40 years from now you can search the archives for it, and tell the little darlings 'see? ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.