Closed svdhoog closed 6 years ago
Uninstall all dependencies in the package manager (using synaptic or apt-get), and use python3-pip instead. This will install the latest versions.
Install python3-pip using your package manager
Install these packages using python3 pip:
$ python3 -mpip install -U matplotlib numpy pandas scipy
Install the remaining packages using your package manager:
$ sudo apt-get install sqlite3 python3-lxml python3-yaml python3-numexp python3-tables python3-tk
Error 1
$ python3 src/visualisation_scripts/main.py src/visualisation_scripts/config
Traceback (most recent call last):
File "src/visualisation_scripts/main.py", line 137, in <module>
df = pnl.to_frame() # convert panel to Dataframe
File "/usr/lib/python3/dist-packages/pandas/core/panel.py", line 813, in to_frame
mask = com.notnull(self.values).all(axis=0)
File "/usr/lib/python3/dist-packages/pandas/core/common.py", line 276, in notnull
return -res
TypeError: The numpy boolean negative, the `-` operator, is not supported, use the `~` operator or the logical_not function instead.
Closing remaining open files:/media/sander/DataStorage1/GIT/GitHub/FLAViz@svdhoog/FLAViz/data/visualisation/CentralBank.h5...done/media/sander/DataStorage1/GIT/GitHub/FLAViz@svdhoog/FLAViz/data/visualisation/Firm.h5...done/media/sander/DataStorage1/GIT/GitHub/FLAViz@svdhoog/FLAViz/data/visualisation/Eurostat.h5...done
Solution Install pandas 0.22.0 using python3-pip:
$ sudo python3 -mpip install -U pandas
Error 2
Traceback (most recent call last):
File "/usr/lib/python3.5/tkinter/__init__.py", line 36, in <module>
import _tkinter
ImportError: No module named '_tkinter'
Solution
Install package python3-tk
This is for running the GitHub FLAViz repo with the test data included.
Installation: