-
Notifications
You must be signed in to change notification settings - Fork 44
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
AttributeError: type object 'Unimplemented' has no attribute 'add_path' #1002
Comments
Are you on WxPython or one of the Qt backends? Do you know which Kiva backend you are using (the default is "image" but sometimes you may get another one). I have not seen this particular issue before. My suspicion is that:
So my suspicions are that there is something wrong with the build, something unusual with the backend or environment being used, or a regression has crept in where |
The original case was with: from traits.etsconfig.api import ETSConfig
ETSConfig.toolkit = 'qt.celiagg' Changing to: ETSConfig.toolkit = 'qt.qpainter' results in a successful launch, but none of my plots are visible and the program crashes after a few minutes.
Changing to: ETSConfig.toolkit = 'qt.image' yields normal program behavior, but that includes plot titles and axis labels with unreadable small font sizes on my high DPI display Windows machine, which is what started me on this quest to begin with. :( Changing to: ETSConfig.toolkit = 'wx' results in a crash at launch w/ this backtrace:
(Did I get the syntax correct?) |
By the way, should this work?: ETSConfig.toolkit = 'qt5.celiagg' It doesn't and I'm wondering if that's a clue.
|
Does this all look correct?
|
Thanks for the feedback. I think that the It might be worth a try with Your environment looks OK - you seem to be on the most recent versions of ETS. We just released a bugfix release of TraitsUI but I don't think it should affect this issue. Chaco is in dire need of a release, hopefully we will get to that this quarter. In terms of the original problem, if you are having issues with high-dpi displays, in recent versions of enable you can use It might also be worth digging in a bit at the font size problem for the For the other errors:
|
I don't see an "image" backend in the output.
|
I just noticed this, in the first few lines of that particular backtrace:
It looks like my (locally built) Enable package has "hard coded" the selection of Qt4, as opposed to Qt5.
It all seems to be version 5. Here's my build YAML for Enable; see any problems? {% set name = "enable" %}
{% set version = "5.3.1" %}
package:
name: "{{ name|lower }}"
version: "{{ version }}"
source:
git_url: https://github.com/enthought/{{name}}.git
git_rev: {{version}}
build:
number: 1
script: "{{ PYTHON }} -m pip install . --no-deps --ignore-installed -vv "
requirements:
build:
- setuptools
- git
- cmake
- swig =3
# - {{compiler('c')}}
# - {{ compiler('cxx') }}
# - {{ cdt('xorg-x11-devel') }} # [linux]
# - vs2017_win-64
- vs2019_win-64
host:
- fonttools
- numpy
- pillow
- pip
- pyface >=7.4.2
- pyparsing
- python
- six
- traitsui
- Cython
run:
- fonttools
- numpy
- pillow
- pyface >=7.4.2
- pyparsing
- python
- six
- traitsui
test:
imports:
- enable
- enable.drawing
- enable.gadgets
- enable.layout
- enable.null
- enable.primitives
# - enable.pyglet_backend
- enable.qt4
- enable.savage
- enable.savage.compliance
- enable.savage.svg
- enable.savage.svg.backends
- enable.savage.svg.backends.kiva
- enable.savage.svg.backends.null
- enable.savage.svg.backends.wx
- enable.savage.svg.css
- enable.savage.svg.tests
- enable.savage.svg.tests.css
- enable.savage.trait_defs
- enable.savage.trait_defs.ui
- enable.savage.trait_defs.ui.qt4
- enable.savage.trait_defs.ui.wx
- enable.tests
- enable.tests.primitives
- enable.tests.qt4
- enable.tests.tools
# - enable.tests.tools.apptools
- enable.tests.wx
- enable.tools
- enable.tools.apptools
- enable.tools.pyface
- enable.tools.toolbars
- enable.trait_defs
- enable.trait_defs.ui
- enable.trait_defs.ui.qt4
- enable.trait_defs.ui.wx
# - enable.vtk_backend
- enable.wx
- kiva
- kiva.agg
- kiva.agg.tests
- kiva.fonttools
- kiva.fonttools.tests
- kiva.quartz
- kiva.tests
- kiva.tests.agg
- kiva.trait_defs
- kiva.trait_defs.ui
- kiva.trait_defs.ui.wx
about:
home: "https://github.com/enthought/enable/"
license: "BSD"
license_family: "BSD"
license_file: ""
summary: "low-level drawing and interaction"
doc_url: ""
dev_url: ""
extra:
recipe-maintainers:
- capn-freako |
I tried this, but it didn't change the size of my plot axis labels/numbers. |
You can safely ignore the The actual mapping between toolkit names and modules is now handled by more standard setuptools entrypoints. |
Sorry, yes, it is the "kiva.agg" backend. And some of the benchmarks are only in the main, not in the 5.3 release branch, so apologies for any confusion - this is probably good enough. The output of the benchmark looked normal-ish (there's one that is clearly messed up, it would be good to know which one it was, but I suspect it's not the agg/image backend). You can get more info by opening the HTML file in the output directory. I am now suspicious that this could be an issue with font selection on Windows. Do you know if the text is still small when you use a regular DPI display? |
The messed up one is |
It is not. Things look normal on a "regular" (i.e. - not high DPI) resolution display. |
Since updating as follows:
my Traits/UI GUI application yields the following error upon launch, from the
enable/savage/svg/backends/kiva/renderer.py
file:Is this a known issue?
Any ideas about what's going on here?
Thanks!
-db
Here's the full back-trace:
The text was updated successfully, but these errors were encountered: