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

TypeError on import of chaco.chaco_plot_editor #182

Closed
SavinaRoja opened this issue Mar 3, 2014 · 3 comments
Closed

TypeError on import of chaco.chaco_plot_editor #182

SavinaRoja opened this issue Mar 3, 2014 · 3 comments

Comments

@SavinaRoja
Copy link

>>> import chaco.chaco_plot_editor
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/pablo/Desktop/chaco-4.4.1/chaco/chaco_plot_editor.py", line 52, in <module>
    color_editor = RGBAColorEditor()
TypeError: 'NoneType' object is not callable

Python version is 2.7.3
Chaco version is 4.4.1
Enable version is 4.3.0
GCC version is 4.6.3

Was trying to import ChacoPlotItem in a new build of 4.4.1 (was working with 4.0.0 in Ubuntu repository).

@AndreBarrancos97
Copy link

Hi!
I'm having the same issue... How did you solve it?

@rahulporuri
Copy link
Contributor

This issue can happen if no toolkit is installed into the python environment. The solution is to install a supported toolkit e.g. pyqt5, pyqt4, wxpython into the python env. If that doesn't solve the issue fully, you will need to manually set the ETS_TOOLKIT environment variable appropriately e.g. ETS_TOOLKIT=qt if the toolkit is pyqt4/pyqt5 and wx if wxpython is installed.

With that, im closing this issue. Please reopen if that doesn't actually solve the issue or if a new issue comes up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants