erikw / taiga-stats

Generate statistics from Taiga and produce burnup diagrams, CFDs, dependency graphs and more.
BSD 3-Clause "New" or "Revised" License
41 stars 6 forks source link

ImportError: No module named 'taiga' #1

Closed tititestor closed 7 years ago

tititestor commented 7 years ago

Hello, I'm on ubuntu 16.04 LTS server. My Taiga system works fine, so I installed taiga-stats and i have following error.

Could you help me? BR, Titi

 ./taiga-stats -h
Traceback (most recent call last):
  File "./taiga-stats", line 12, in <module>
    import taiga
ImportError: No module named 'taiga'
erikw commented 7 years ago

So apparently taiga module can't be found in your python path. Make sure that taiga-stats and taiga are using the same python version (should be py3 both). Did you install the dependencies with pip3 install -r requirements.txt? Using virtualenv? :)

tititestor commented 7 years ago

Hi Erik, Thanks for your help. I don't use virtualenv. So, I launched "pip3 install -r requirements.txt" instead of "pip install -r requirements.txt" and now, I have `./taiga-stats -h Traceback (most recent call last): File "/usr/lib/python3.5/tkinter/init.py", line 36, in import _tkinter ImportError: No module named '_tkinter'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "./taiga-stats", line 15, in import matplotlib.pyplot as plt File "/home/taiga/.local/lib/python3.5/site-packages/matplotlib/pyplot.py", line 115, in _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup() File "/home/taiga/.local/lib/python3.5/site-packages/matplotlib/backends/init.py", line 32, in pylab_setup globals(),locals(),[backend_name],0) File "/home/taiga/.local/lib/python3.5/site-packages/matplotlib/backends/backend_tkagg.py", line 6, in from six.moves import tkinter as Tk File "/home/taiga/.local/lib/python3.5/site-packages/six.py", line 92, in get result = self._resolve() File "/home/taiga/.local/lib/python3.5/site-packages/six.py", line 115, in _resolve return _import_module(self.mod) File "/home/taiga/.local/lib/python3.5/site-packages/six.py", line 82, in _import_module import(name) File "/usr/lib/python3.5/tkinter/init.py", line 38, in raise ImportError(str(msg) + ', please install the python3-tk package') ImportError: No module named '_tkinter', please install the python3-tk package `

erikw commented 7 years ago

Hmm this could be a missing requirement possibly. Could you try using the virtualenv approach found in the README, just to make sure that it's really a missing dependency in a clean environment? :)

tititestor commented 7 years ago

Ok, I will try monday.

Best regards, Titi

tititestor commented 7 years ago

Thanks

tititestor commented 7 years ago

Same problem on virtual env. (ImportError: No module named '_tkinter', please install the python3-tk package) So, I install python3-tk package and WORKS !!!!

Thanks for you help.