mysterium icon indicating copy to clipboard operation
mysterium copied to clipboard

No such file or directory

Open TheAIguy-dev opened this issue 3 years ago • 4 comments

When I run mysterium, i get this message: 1 But when I run this program with python, it absolutely works.

NOTE: abi/standart.json exists.

TheAIguy-dev avatar Jun 13 '22 20:06 TheAIguy-dev

You're program is trying to use a file that doesn't exist, just create this file in the written directory './abi/standard.json'.

novakdwy avatar Jul 25 '22 12:07 novakdwy

It already exists

You're program is trying to use a file that doesn't exist, just create this file in the written directory './abi/standard.json'.

It already exists

TheAIguy-dev avatar Jul 27 '22 07:07 TheAIguy-dev

I was getting an issue where I would supply the uninspected file (zip) and then specify the obfuscated file name (script.py) and it would come back that it couldn't find modules\script.py. I have no idea why it was searching for modules as the dir structure was dist/script.py.

python: can't open file 'modules/script.py': [Errno 2] No such file or directory

eljeffeg avatar Oct 04 '22 15:10 eljeffeg

After looking at the code, looks Mysterium extracts the zip to it's modules folder and then looks for the file in question. So might make sense to also look for a dist directory before failing out, so 'file' or 'dist/file'.

After testing, it gets further along but fails to load the PyArmor with RuntimeError: Marshal loads failed

eljeffeg avatar Oct 04 '22 16:10 eljeffeg

After looking at the code, looks Mysterium extracts the zip to it's modules folder and then looks for the file in question. So might make sense to also look for a dist directory before failing out, so 'file' or 'dist/file'.

After testing, it gets further along but fails to load the PyArmor with RuntimeError: Marshal loads failed

Sorry for responding so late. Anyways, the problem is the same as Bad magic number or wrong opcode etc.... That means you're trying to run the decompiled program with a different Python version than the one used by its creator. If you want it to work, you have two solutions. The first one needs the source executable, you have to decompile it with the tool you use, for example pyinstxtractor for pyinstaller, (pyarmor compilation uses pyinstaller), and so you'll see the Python version used to compile it by the script owner in the decompilation logs in your console. The second option is to use my tool I sell on the Telegram account in Mysterium's documentation, at the end. The tool doesn't need the exe if you don't have it, but it still works with it. There are methods it uses to detect which Python version is the right one by reading some details in the encrypted code file i hope my response was able to help you, I let the issue open some weeks if you still have to get any help.

venaxyt avatar May 01 '23 12:05 venaxyt

I see that there are no more activity here so I'm going to close the issue, I guess you resolved the problem with your missing file.

venaxyt avatar Aug 01 '23 21:08 venaxyt