Jump to content
  • 0

'Bad Magic Number' error with dwfimports when updating from Python 2.7.10 to 3.7


spri

Question

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...