skinner
skinner copied to clipboard
Marshal loads failed
Hi, latest v1.1.8 is giving me this error. v1.1.7 was fine. Thanks for sharing. Cheers
Error: RuntimeError: file <[...]\skinner\window.py> line 1: Marshal loads failed
I've seen similar errors before: 100% of the time (so far) this means you're trying to run it in a Maya that's in Python 2.x, not 3.x. Similar issue/error here: https://github.com/AKEric/skinner/issues/2
The 1.1.8 update was a single line bugfix to a print statement. My guess would be, if you reverted back to 1.1.7 you'd see the exact same error. I've confirmed the 1.1.8 code works on multiple different machines with different Maya versions (2022 + the current 2024 beta).
Can you confirm your python version by running this in the Script Editor?
import sys print(sys.version)
I've confirmed it works on 3.7.7 -> 3.9.7
Also: What you provided above is the 'short version' of a Maya error: In the Script Editor, can you enable : History -> Show Line Numbers In Errors & Show Stack Trace : If this is a legit error somehow, this will give me better debug info by re-running it.
Umm, ok. I was testing on Maya 2023 so the python 2.x is ruled out. I tried on a fresh prefs Maya and getting the same error. The stack trace does not give any more meaningful output. I attach a couple of videos on Maya 2022.3. Thanks
https://user-images.githubusercontent.com/2865181/163122672-c6587fea-943f-415c-acf9-e37526aac6b4.mp4
https://user-images.githubusercontent.com/2865181/163122677-89ca131a-891e-4720-8802-7fad8e775b6c.mp4
.
Could it be the numpy or scipy versions?
Really weird, I have no explanation. Both videos are on the same machine, same Maya, just two different versions of the tool?
I recently updated the Maya beta to a new version, and I was getting a numpy/scipy import error: I had to uninstall them/reinstall them via pip, and everything started working correctly again. Not sure if this is somehow related to you too?
But like I said.... I've tested this update on multiple machines now and cannot repro your issue :S
Yeah, same Maya, same machine, different versions of the tool (1.1.7 and 1.1.8), it really seems weird. Anyway, I'll let you know in case I find the issue. Thanks.
I'm just installing for the first time but experienced the same issue. 1.7 works but not 1.8. Some searching suggests it is pyarmor related.
https://pyarmor.readthedocs.io/en/latest/questions.html#marshal-loads-failed-when-running-xxx-py
thanks for the feedback tcwilsonart & that link, I'll see if that has any bearing here.
Same here, Maya2022 -pythonver 3
import numpy as np
import scipy as sp
print(np.__file__)
print(sp.__file__)
C:\Program Files\Autodesk\Maya2022\Python37\lib\site-packages\numpy\__init__.py
C:\Program Files\Autodesk\Maya2022\Python37\lib\site-packages\scipy\__init__.py
import skinner.core as skinCore
skinCore.test()
# Error: RuntimeError: file ..\skinner\__init__.py> line 3: Marshal loads failed #