can't load pysense library
-
Hi,
i updated pysense firmware and uploaded the libraries to the lib folder.
When importing the pysense library i get the error:>>> from pysense import Pysense Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/flash/lib/pysense.py", line 5, in <module> TypeError: cannot create 'module' instances
placing
pycoproc.py
at the same level aspysense.py
does not help (i then getno module named 'pycoproc.Pycoproc'
)Any idea what i'm doing wrong?
-
I'm glad it works, the documentation is off in a lot of places.
-
I read the docs here: https://docs.pycom.io/chapter/pytrackpysense/installation/libraries.html and created a lib folder inside my project - so in the end the stuff was placed in /flash/lib where the documentation says /lib so reading carefully helps.
I now have everything in /flash as you suggested and that works.Thanks
Jan
-
Place pycoproc.py at the same level as your main.py