spri Posted June 14, 2019 Share Posted June 14, 2019 I just updated Python from version 2.7.10.3 to 3.7.3 (a big jump, I know... but it was time). Now, when I try to run an application I created using the WaveForms SDK, I get the error, from dwfconstants import * ImportError: bad magic number in 'dwfconstants': b'\x03\xf3\r\n' I just updated WaveForms, and the error persists. What does it mean? How do I fix it? Link to comment Share on other sites More sharing options...
spri Posted June 14, 2019 Author Share Posted June 14, 2019 After spending more time digging around on this, I discovered that this is an issue with residual files in the pycache after a python version update, and has nothing to do with the WaveForms SDK. If anyone else encounters this error, clear the cache and see this post for more details: https://stackoverflow.com/questions/514371/whats-the-bad-magic-number-error> Link to comment Share on other sites More sharing options...
JColvin Posted June 14, 2019 Share Posted June 14, 2019 Hi @spri, I have moved your question to a more appropriate section of the forum where the engineer much more familiar with WaveForms SDK will be able to see and respond to your question. Thanks, JColvin Link to comment Share on other sites More sharing options...
Question
spri
I just updated Python from version 2.7.10.3 to 3.7.3 (a big jump, I know... but it was time).
Now, when I try to run an application I created using the WaveForms SDK, I get the error,
from dwfconstants import * ImportError: bad magic number in 'dwfconstants': b'\x03\xf3\r\n'
I just updated WaveForms, and the error persists.
What does it mean? How do I fix it?
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.