Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gtk namespace error when executing kfit.py on Windows 10 #3

Open
rhroberts opened this issue Aug 30, 2019 · 0 comments
Open

Gtk namespace error when executing kfit.py on Windows 10 #3

rhroberts opened this issue Aug 30, 2019 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@rhroberts
Copy link
Owner

rhroberts commented Aug 30, 2019

I've tested the following with Windows 10 and Anaconda's python3 distribution. After installing conda and opening up a conda prompt:

  • Create a conda env
conda create -n kfit python=3.7
conda activate kfit
  • Install dependencies
conda install numpy matplotlib pandas pycairo
conda install -c conda-forge pygobject
pip install lmfit
  • Download and unzip kfit source code
  • Navigate to the project root
  • Run python kfit/kfit.py

Currently, this produces the following error:

Traceback (most recent call last): File "C:\Users\rhrob\Anaconda3\envs\kfit\lib\site-packages\matplotlib\backends\backend_gtk3.py", line 25, in gi.require_version("Gtk", "3.0") File "C:\Users\rhrob\Anaconda3\envs\kfit\lib\site-packages\gi_init_.py", line 129, in require_version raise ValueError('Namespace %s not available' % namespace) ValueError: Namespace Gtk not available
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "kfit.py", line 7, in from matplotlib.backends.backend_gtk3cairo import ( File "C:\Users\rhrob\Anaconda3\envs\kfit\lib\site-packages\matplotlib\backends\backend_gtk3cairo.py", line 1, in from . import backend_cairo, backend_gtk3 File "C:\Users\rhrob\Anaconda3\envs\kfit\lib\site-packages\matplotlib\backends\backend_gtk3.py", line 29, in raise ImportError from e ImportError

@rhroberts rhroberts added bug Something isn't working good first issue Good for newcomers labels Aug 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant