Addalin / cameranetwork

Software for remote sensing camera networks
Other
2 stars 0 forks source link

GUI: ImportError: No module named indexes.base #28

Closed OmerShubi closed 4 years ago

OmerShubi commented 4 years ago

In the GUI on pressing 'Query'

2019-09-24 16:18:43,463 [Thread-1    ] [ERROR]  Uncaught exception in ZMQStream callback
Traceback (most recent call last):
  File "/home/shubi/.conda/envs/cvenv2.7/lib/python2.7/site-packages/zmq/eventloop/zmqstream.py", line 438, in _run_callback
    callback(*args, **kwargs)
  File "/home/shubi/.conda/envs/cvenv2.7/lib/python2.7/site-packages/tornado/stack_context.py", line 277, in null_wrapper
    return fn(*args, **kwargs)
  File "/home/shubi/PycharmProjects/cameranetwork/CameraNetwork/mdp/client.py", line 190, in _on_message
    self.on_message(msg)
  File "/home/shubi/PycharmProjects/cameranetwork/CameraNetwork/client.py", line 163, in on_message
    status, cmd, args, kwds = cPickle.loads(msg[0])
ImportError: No module named indexes.base

Possibly related to pandas version mismatch. From stackoverflow: This error can be caused by a version mismatch between the version of pandas used to save the dataframe and the version of pandas used to load it.

Addalin commented 4 years ago

check if it is possible to convert the pkl files and open them with the GUI. might solve #42

OmerShubi commented 4 years ago

Camera was running pandas version 0.19.2, while client had pandas 0.24.2.

Issue was resolved by installing pandas 0.19.2 on client as well.

If in the future we'll want to update the pandas version, need to make sure both client and servers run the same pandas version.