bad magic number in 'HologramAuth'

Hi, this error occurs after I install cli/sdk per Nova user manual. It occurs on all Hologram commands that I’ve tried. RPI buster with python 3.7.3. I also installed the 5.19 update to the SARA R4. Thanks.

pi@pi:~ $ sudo hologram modem connect
Traceback (most recent call last):
File “/usr/local/bin/hologram”, line 19, in
from scripts.hologram_send import parse_hologram_send_args
File “/usr/local/lib/python3.7/dist-packages/scripts/”, line 14, in
from Hologram.HologramCloud import HologramCloud
File “/usr/local/lib/python3.7/dist-packages/Hologram/”, line 15, in
from HologramAuth import TOTPAuthentication, SIMOTPAuthentication
ImportError: bad magic number in ‘HologramAuth’: b’a\r\r\n’

This is related to newest raspbian releasing with python 3.9. You will need to install the correct version of the auth library which you can do but doing pip install python-sdk-auth==0.3.7

I don’t understand. I am using python 3.7.3. Anyway that didn’t help. Thanks again.

Exactly, the auth library we include is compiled for specfic python versions, python-sdk-auth 3.9 only works on python 3.9 hence the bad magic number. You will have to install the correct auth library for your version of python.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.