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

SWIG 4.0 appears to break the kiva.agg backend #360

Closed
jwiggins opened this issue Jul 11, 2019 · 3 comments · Fixed by #839
Closed

SWIG 4.0 appears to break the kiva.agg backend #360

jwiggins opened this issue Jul 11, 2019 · 3 comments · Fixed by #839

Comments

@jwiggins
Copy link
Member

See #359 for the full saga. For now, the solution is to just build with 3.0.x.

@yves-surrel
Copy link

I confirm the problem and the short-term fix

@swt2c
Copy link

swt2c commented May 7, 2020

Any progress on the long-term fix? :) Debian has upgraded to swig 4.0 and we're seeing problems there as well. It seems that _swig_setattr has been removed as well.

...
test_minimum_vertical (enable.tests.qt4.scrollbar_test.ScrollBarTest) ... Traceback (most recent call last):
  File "/build/1st/python-enable-4.8.1/.pybuild/cpython3_3.8_enable/build/enable/qt4/base_window.py", line 213, in paintEvent
    self.handler.paintEvent(event)
  File "/build/1st/python-enable-4.8.1/.pybuild/cpython3_3.8_enable/build/enable/qt4/base_window.py", line 65, in paintEvent
    self._enable_window._paint(event)
  File "/build/1st/python-enable-4.8.1/.pybuild/cpython3_3.8_enable/build/enable/abstract_window.py", line 462, in _paint
    self._gc = self._create_gc(size)
  File "/build/1st/python-enable-4.8.1/.pybuild/cpython3_3.8_enable/build/enable/qt4/image.py", line 20, in _create_gc
    gc = GraphicsContext((size[0]+1, size[1]+1), pix_format=pix_format,
  File "/build/1st/python-enable-4.8.1/.pybuild/cpython3_3.8_enable/build/kiva/agg/__init__.py", line 38, in __init__
    GraphicsContextArray.__init__(self, pixel_map.bmp_array,
  File "/build/1st/python-enable-4.8.1/.pybuild/cpython3_3.8_enable/build/kiva/agg/agg.py", line 859, in __init__
    _swig_setattr(self, GraphicsContextArray, 'this', obj)
NameError: name '_swig_setattr' is not defined
Aborted

@kalpesh94552
Copy link

I was facing a similar issue after rolling back the packages to the following version:
enable = 4.8.0
swig = 3.0.12
The issue was resolved.

@rahulporuri rahulporuri added this to Issues to be considered for upcoming sprint in Enthought OSS Q4 2020 via automation Nov 30, 2020
@rahulporuri rahulporuri moved this from Issues to be considered for upcoming sprint to Sprint 5 : Nov 30 - Dec 11 2020 in Enthought OSS Q4 2020 Nov 30, 2020
@rahulporuri rahulporuri moved this from Sprint 5 : Nov 30 - Dec 11 2020 to Sprint 6 : Dec 14 2020 - Jan 2 2021 in Enthought OSS Q4 2020 Dec 14, 2020
@rahulporuri rahulporuri removed this from Sprint 6 : Dec 14 2020 - Jan 2 2021 in Enthought OSS Q4 2020 Jan 5, 2021
@rahulporuri rahulporuri added this to To be considered in Enthought OSS Q1 2021 via automation Jan 5, 2021
@rahulporuri rahulporuri moved this from To be considered to Sprint 1 : Jan 4 2021 - Jan 15 2021 in Enthought OSS Q1 2021 Jan 5, 2021
@rahulporuri rahulporuri moved this from Sprint 1 : Jan 4 2021 - Jan 22 2021 to To be considered in Enthought OSS Q1 2021 Jan 24, 2021
denniszollo added a commit to swift-nav/piksi_tools that referenced this issue Feb 18, 2021
denniszollo added a commit to swift-nav/piksi_tools that referenced this issue Feb 18, 2021
denniszollo added a commit to swift-nav/piksi_tools that referenced this issue Feb 18, 2021
@rahulporuri rahulporuri removed this from To be considered in Enthought OSS Q1 2021 Feb 22, 2021
denniszollo added a commit to swift-nav/piksi_tools that referenced this issue Feb 23, 2021
denniszollo added a commit to swift-nav/piksi_tools that referenced this issue Feb 24, 2021
@jwiggins jwiggins changed the title SWIG 4.0 appears to break the AGG backend SWIG 4.0 appears to break the kiva.agg backend Mar 23, 2021
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

Successfully merging a pull request may close this issue.

4 participants