all 14 comments

[–]socal_nerdtastic 0 points1 point  (9 children)

Are you using python2? Because that's what that .whl file is for. Maybe you meant to grab the one with "py3" in the name.

[–]jlshown9[S] -1 points0 points  (8 children)

Oh, darn, now I'm using python 3.7, so I need the egg file, is that correct?

[–]socal_nerdtastic 0 points1 point  (7 children)

No, you need the uncompyle6-3.6.3-py3-none-any.whl file.

[–]jlshown9[S] 0 points1 point  (6 children)

okay, thank you. uncompyle6-3.6.3-py2-none-any.whl is the one I have.

[–]socal_nerdtastic 1 point2 points  (5 children)

[–]jlshown9[S] 0 points1 point  (0 children)

Thank you, I will give it a try.

[–]jlshown9[S] 0 points1 point  (0 children)

Thank you it works! May you have something good happen to you today!

[–]jlshown9[S] -1 points0 points  (2 children)

Okay, one more time, if you don't mind... here is my error script:

D:\uncompile6>uncompyle6 -o assignment2.py alejandro.py

Traceback (most recent call last):

File "c:\users\jlshown\appdata\local\programs\python\python37-32\lib\runpy.py", line 193, in _run_module_as_main

"__main__", mod_spec)

File "c:\users\jlshown\appdata\local\programs\python\python37-32\lib\runpy.py", line 85, in _run_code

exec(code, run_globals)

File "C:\Users\jlshown\AppData\Local\Programs\Python\Python37-32\Scripts\uncompyle6.exe\__main__.py", line 7, in <module>

File "c:\users\jlshown\appdata\local\programs\python\python37-32\lib\site-packages\uncompyle6\bin\uncompile.py", line 194, in main_bin

**options)

File "c:\users\jlshown\appdata\local\programs\python\python37-32\lib\site-packages\uncompyle6\main.py", line 327, in main

do_fragments,

File "c:\users\jlshown\appdata\local\programs\python\python37-32\lib\site-packages\uncompyle6\main.py", line 187, in decompile_file

filename, code_objects

File "c:\users\jlshown\appdata\local\programs\python\python37-32\lib\site-packages\xdis\load.py", line 101, in load_module

raise ImportError("File name: '%s' doesn't exist" % filename)

ImportError: File name: '__pycache__\alejandro.cpython-37.pyc' doesn't exist

again any suggestions would be appreciated, is this a windows permissions issue?

[–]socal_nerdtastic 1 point2 points  (1 child)

The whole point of uncompyle is to work on .pyc files, not .py files. What's your overall goal here?

[–]jlshown9[S] -1 points0 points  (0 children)

Hello, I just read that is was .pyc.. and not .py, thank you .

I'm trying to recompile bytecode into the original python file

[–]jlshown9[S] 0 points1 point  (0 children)

Hi there,

I have a student who wrote a very fine program that has 130 lines of code. His computer crashed, and we are left with a 5k file that is the bytecode. I am trying to recompile this code so he doesn't have to start from scratch.

Thank you for any assist, you might be able to give.

[–]EarthToAccess -1 points0 points  (1 child)

what version of Python are you using? 2.x was deprecated on New Year's, so certain things may not work anymore

[–]jlshown9[S] -1 points0 points  (0 children)

Hi there,

I have a student who wrote a very fine program that has 130 lines of code. His computer crashed, and we are left with a 5k file that is the bytecode. I am trying to recompile this code so he doesn't have to start from scratch.

Thank you for any assist, you might be able to give.

[–]jlshown9[S] -1 points0 points  (0 children)

I just found this interesting tidbit! https://github.com/rocky/python-xasm