Open AdamDenoon opened 4 years ago
Did you get this to work? Sadly, I wasn't monitoring this. On my Mac, I don't have this problem:
Python 3.6.8 |Anaconda custom (64-bit)| (default, Dec 29 2018, 19:04:46)
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from greeksyntax.lowfat import *
>>> q = lowfat("nestle1904lowfat")
Database 'nestle1904lowfat' was opened in 13.82 ms.
I think that bad magic number normally means that you (or someone else) compiled the library with one version of Python and are now importing it using a different version of Python.
See this explanation:
https://stackoverflow.com/questions/514371/whats-the-bad-magic-number-error?rq=1
So if you compile the library with your current Python and install it, you should be able to import without difficulty. Let me know if that fixes the error for you.
On macOS 10.14.6, using python 3.7.4, I'm receiving the following error when I attempt to run the first block of code:
Any clues?