CANFestivino
CANFestivino copied to clipboard
dictionary generation
First of all thanks for the effort to make this possible :)
Second: I'm not able to open objdictgen.py.
After the command: alessio@alessio-VGN-NS21M-W:~/Documents/Lavoro/UNIBS/CANBUS/CANOPEN/Firmware/CANFestivino/objdictgen$ python objdictgen.py Node.od Node.c
Traceback (most recent call last):
File "objdictgen.py", line 27, in
ImportError: No module named gnosis.xml.pickle
I got an error like: "No module named gnosis.xml.pickle"
I'm using Ubuntu 16.04 (64 bits)
Thanks in advance
Alessio
I guess you need to install some additional python package. I suggest you google for "gnosis python package"
Yes thanks, gnosis was missing
cd /tmp wget http://gnosis.cx/download/Gnosis_Utils.More/Gnosis_Utils-1.2.2.tar.gz tar xzf Gnosis_Utils-1.2.2.tar.gz cd Gnosis_Utils-1.2.2/ sudo python setup.py install_all
C:\Users\user\Python\Scripts\python.exe C:/Users/user/Desktop/CanFestival-3/objdictgen/objdictedit.py
C:\Users\user\Desktop\CanFestival-3\objdictgen\objdictedit.py:38: DeprecationWarning: np.long
is a deprecated alias for np.compat.long
. To silence this warning, use np.compat.long
by itself. In the likely event your code does not need to work on Python 2 you can use the builtin int
for which np.compat.long
is itself an alias. Doing this will not modify any behaviour and is safe. When replacing np.long
, you may wish to use e.g. np.int64
or np.int32
to specify the precision. If you wish to review your current use, check the release note link for additional information.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
from numpy import long
C:\Users\user\Desktop\CanFestival-3\objdictgen\objdictedit.py:59: wxPyDeprecationWarning: Using deprecated class PySimpleApp. Use :class:App
instead.
app = wx.PySimpleApp()
Traceback (most recent call last):
File "C:\Users\user\Desktop\CanFestival-3\objdictgen\objdictedit.py", line 86, in
Process finished with exit code 1
I'm afraid that fixing this would take me too long.
I'm not using this anymore, sorry.
Feel free to fork, fix and send me a pull request.