enable/kiva question

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

enable/kiva question

Mike Sarahan

Hello,

I'm working on getting the Enthought tools working on WinPython (http://code.google.com/p/winpython/)

I built each tool from source using "python setup.py bdist_wininst":

casuarius

chaco

enable

enaml

pyface

traits

traitsui

I built these on a computer with EPD 7.3.2 installed.  WinPython with these modules works great on this machine.

I moved WinPython to another computer without EPD (it is nicely self-contained.)  I now get an error when attempting to start up my application that uses Chaco (traceback at the end of this message.)

I have done a little further investigation to find that the import that isn't occurring correctly is when kiva's _agg is imported.  I have both PyQt4 and PySide installed.  I have tried setting ETS_TOOLKIT to qt4, and set QT_API to both pyside and qt4 - neither work, same error.

What library am I missing here?  kiva/agg/_agg.pyd was my best guess, but it is in place and looks fine. Do I need to rebuild Enable/Kiva on a machine that EPD is not installed on?

Thanks,

Mike

Traceback (most recent call last):

  File "analyzarr", line 2, in <module>

    analyzarr_gui.main()

  File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\analyzarr\analyzarr_gui.py", line 19, in main

    from main_view import Main

  File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\enaml\core\import_hooks.py", line 131, in load_module

    exec code in mod.__dict__

  File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\analyzarr\main_view.enaml", line 30, in

    from controllers import HighSeasAdventure, CellCropController

  File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\analyzarr\controllers.py", line 25, in <module>

    from chaco.api import ArrayPlotData, BasePlotContainer, Plot

  File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\chaco\api.py", line 37, in <module>

    from abstract_plot_renderer import AbstractPlotRenderer

  File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\chaco\abstract_plot_renderer.py", line 7, in <module>

    from plot_component import PlotComponent

  File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\chaco\plot_component.py", line 4, in <module>

    from enable.api import Component

  File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\enable\api.py", line 21, in <module>

    from markers import MarkerTrait, marker_trait, MarkerNameDict, marker_names,

 \

  File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\enable\markers.py", line 18, in <module>

    from compiled_path import CompiledPath

  File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\enable\compiled_path.py", line 17, in <module>

    from toolkit import toolkit_object

  File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\enable\toolkit.py", line 47, in <module>

    _init_toolkit()

  File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\enable\toolkit.py", line 40, in _init_toolkit

    format_exception_only(t, v))

ImportError: Unable to import the image backend for the qt4 toolkit (reason: ['ImportError: DLL load failed: The specified module could not be found.\n']).


_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: enable/kiva question

John Wiggins
There is also kiva/agg/_plat_support.pyd. Both _agg.pyd and _plat_support.pyd are linked against OpenGL and GLU, so make sure that's not a problem. I would recommend using Dependency Walker to find out what's missing.

-- John

On Feb 6, 2013, at 12:28 AM, Mike Sarahan wrote:

> Hello,
>
> I'm working on getting the Enthought tools working on WinPython (http://code.google.com/p/winpython/)
> I built each tool from source using "python setup.py bdist_wininst":
>
> casuarius
>
> chaco
>
> enable
>
> enaml
>
> pyface
>
> traits
>
> traitsui
>
> I built these on a computer with EPD 7.3.2 installed.  WinPython with these modules works great on this machine.
>
> I moved WinPython to another computer without EPD (it is nicely self-contained.)  I now get an error when attempting to start up my application that uses Chaco (traceback at the end of this message.)
>
> I have done a little further investigation to find that the import that isn't occurring correctly is when kiva's _agg is imported.  I have both PyQt4 and PySide installed.  I have tried setting ETS_TOOLKIT to qt4, and set QT_API to both pyside and qt4 - neither work, same error.
> What library am I missing here?  kiva/agg/_agg.pyd was my best guess, but it is in place and looks fine. Do I need to rebuild Enable/Kiva on a machine that EPD is not installed on?
>
> Thanks,
>
> Mike
>
> Traceback (most recent call last):
>
>   File "analyzarr", line 2, in <module>
>
>     analyzarr_gui.main()
>
>   File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\analyzarr\analyzarr_gui.py", line 19, in main
>
>     from main_view import Main
>
>   File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\enaml\core\import_hooks.py", line 131, in load_module
>
>     exec code in mod.__dict__
>
>   File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\analyzarr\main_view.enaml", line 30, in
>
>     from controllers import HighSeasAdventure, CellCropController
>
>   File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\analyzarr\controllers.py", line 25, in <module>
>
>     from chaco.api import ArrayPlotData, BasePlotContainer, Plot
>
>   File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\chaco\api.py", line 37, in <module>
>
>     from abstract_plot_renderer import AbstractPlotRenderer
>
>   File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\chaco\abstract_plot_renderer.py", line 7, in <module>
>
>     from plot_component import PlotComponent
>
>   File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\chaco\plot_component.py", line 4, in <module>
>
>     from enable.api import Component
>
>   File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\enable\api.py", line 21, in <module>
>
>     from markers import MarkerTrait, marker_trait, MarkerNameDict, marker_names,
>
>  \
>
>   File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\enable\markers.py", line 18, in <module>
>
>     from compiled_path import CompiledPath
>
>   File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\enable\compiled_path.py", line 17, in <module>
>
>     from toolkit import toolkit_object
>
>   File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\enable\toolkit.py", line 47, in <module>
>
>     _init_toolkit()
>
>   File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\enable\toolkit.py", line 40, in _init_toolkit
>
>     format_exception_only(t, v))
>
> ImportError: Unable to import the image backend for the qt4 toolkit (reason: ['ImportError: DLL load failed: The specified module could not be found.\n']).
>
> _______________________________________________
> Enthought-Dev mailing list
> [hidden email]
> https://mail.enthought.com/mailman/listinfo/enthought-dev

_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

enable/kiva question

Mike Sarahan
In reply to this post by Mike Sarahan

Hello,

I'm working on getting the Enthought tools working on WinPython (http://code.google.com/p/winpython/)

I built each tool from source using "python setup.py bdist_wininst":

casuarius

chaco

enable

enaml

pyface

traits

traitsui

I built these on a computer with EPD 7.3.2 installed.  WinPython with these modules works great on this machine.

I moved WinPython to another computer without EPD (it is nicely self-contained.)  I now get an error when attempting to start up my application that uses Chaco (traceback at the end of this message.)

I have done a little further investigation to find that the import that isn't occurring correctly is when kiva's _agg is imported.  I have both PyQt4 and PySide installed.  I have tried setting ETS_TOOLKIT to qt4, and set QT_API to both pyside and qt4 - neither work, same error.

What library am I missing here?  kiva/agg/_agg.pyd was my best guess, but it is in place and looks fine. Do I need to rebuild Enable/Kiva on a machine that EPD is not installed on?

Thanks,

Mike

Traceback (most recent call last):

  File "analyzarr", line 2, in <module>

    analyzarr_gui.main()

  File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\analyzarr\analyzarr_gui.py", line 19, in main

    from main_view import Main

  File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\enaml\core\import_hooks.py", line 131, in load_module

    exec code in mod.__dict__

  File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\analyzarr\main_view.enaml", line 30, in

    from controllers import HighSeasAdventure, CellCropController

  File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\analyzarr\controllers.py", line 25, in <module>

    from chaco.api import ArrayPlotData, BasePlotContainer, Plot

  File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\chaco\api.py", line 37, in <module>

    from abstract_plot_renderer import AbstractPlotRenderer

  File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\chaco\abstract_plot_renderer.py", line 7, in <module>

    from plot_component import PlotComponent

  File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\chaco\plot_component.py", line 4, in <module>

    from enable.api import Component

  File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\enable\api.py", line 21, in <module>

    from markers import MarkerTrait, marker_trait, MarkerNameDict, marker_names,

 \

  File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\enable\markers.py", line 18, in <module>

    from compiled_path import CompiledPath

  File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\enable\compiled_path.py", line 17, in <module>

    from toolkit import toolkit_object

  File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\enable\toolkit.py", line 47, in <module>

    _init_toolkit()

  File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\enable\toolkit.py", line 40, in _init_toolkit

    format_exception_only(t, v))

ImportError: Unable to import the image backend for the qt4 toolkit (reason: ['ImportError: DLL load failed: The specified module could not be found.\n']).


_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: enable/kiva question

Mike Sarahan
My apologies for the noise, my "smart" phone is on the fritz.  I think GLU is the problem.  Thanks for the valuable tip about Dependency Walker!

Mike


On Wed, Feb 6, 2013 at 7:30 AM, Mike Sarahan <[hidden email]> wrote:

Hello,

I'm working on getting the Enthought tools working on WinPython (http://code.google.com/p/winpython/)

I built each tool from source using "python setup.py bdist_wininst":

casuarius

chaco

enable

enaml

pyface

traits

traitsui

I built these on a computer with EPD 7.3.2 installed.  WinPython with these modules works great on this machine.

I moved WinPython to another computer without EPD (it is nicely self-contained.)  I now get an error when attempting to start up my application that uses Chaco (traceback at the end of this message.)

I have done a little further investigation to find that the import that isn't occurring correctly is when kiva's _agg is imported.  I have both PyQt4 and PySide installed.  I have tried setting ETS_TOOLKIT to qt4, and set QT_API to both pyside and qt4 - neither work, same error.

What library am I missing here?  kiva/agg/_agg.pyd was my best guess, but it is in place and looks fine. Do I need to rebuild Enable/Kiva on a machine that EPD is not installed on?

Thanks,

Mike

Traceback (most recent call last):

  File "analyzarr", line 2, in <module>

    analyzarr_gui.main()

  File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\analyzarr\analyzarr_gui.py", line 19, in main

    from main_view import Main

  File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\enaml\core\import_hooks.py", line 131, in load_module

    exec code in mod.__dict__

  File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\analyzarr\main_view.enaml", line 30, in

    from controllers import HighSeasAdventure, CellCropController

  File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\analyzarr\controllers.py", line 25, in <module>

    from chaco.api import ArrayPlotData, BasePlotContainer, Plot

  File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\chaco\api.py", line 37, in <module>

    from abstract_plot_renderer import AbstractPlotRenderer

  File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\chaco\abstract_plot_renderer.py", line 7, in <module>

    from plot_component import PlotComponent

  File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\chaco\plot_component.py", line 4, in <module>

    from enable.api import Component

  File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\enable\api.py", line 21, in <module>

    from markers import MarkerTrait, marker_trait, MarkerNameDict, marker_names,

 \

  File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\enable\markers.py", line 18, in <module>

    from compiled_path import CompiledPath

  File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\enable\compiled_path.py", line 17, in <module>

    from toolkit import toolkit_object

  File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\enable\toolkit.py", line 47, in <module>

    _init_toolkit()

  File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\enable\toolkit.py", line 40, in _init_toolkit

    format_exception_only(t, v))

ImportError: Unable to import the image backend for the qt4 toolkit (reason: ['ImportError: DLL load failed: The specified module could not be found.\n']).



_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: enable/kiva question

Mike Sarahan
Update: I rebuilt enable so that it would link to the OpenGL included with WinPython, and I'm now in business.  I also had to rebuild Casuarius.  Thank you, John!

Mike


On Wed, Feb 6, 2013 at 7:55 AM, Mike Sarahan <[hidden email]> wrote:
My apologies for the noise, my "smart" phone is on the fritz.  I think GLU is the problem.  Thanks for the valuable tip about Dependency Walker!

Mike


On Wed, Feb 6, 2013 at 7:30 AM, Mike Sarahan <[hidden email]> wrote:

Hello,

I'm working on getting the Enthought tools working on WinPython (http://code.google.com/p/winpython/)

I built each tool from source using "python setup.py bdist_wininst":

casuarius

chaco

enable

enaml

pyface

traits

traitsui

I built these on a computer with EPD 7.3.2 installed.  WinPython with these modules works great on this machine.

I moved WinPython to another computer without EPD (it is nicely self-contained.)  I now get an error when attempting to start up my application that uses Chaco (traceback at the end of this message.)

I have done a little further investigation to find that the import that isn't occurring correctly is when kiva's _agg is imported.  I have both PyQt4 and PySide installed.  I have tried setting ETS_TOOLKIT to qt4, and set QT_API to both pyside and qt4 - neither work, same error.

What library am I missing here?  kiva/agg/_agg.pyd was my best guess, but it is in place and looks fine. Do I need to rebuild Enable/Kiva on a machine that EPD is not installed on?

Thanks,

Mike

Traceback (most recent call last):

  File "analyzarr", line 2, in <module>

    analyzarr_gui.main()

  File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\analyzarr\analyzarr_gui.py", line 19, in main

    from main_view import Main

  File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\enaml\core\import_hooks.py", line 131, in load_module

    exec code in mod.__dict__

  File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\analyzarr\main_view.enaml", line 30, in

    from controllers import HighSeasAdventure, CellCropController

  File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\analyzarr\controllers.py", line 25, in <module>

    from chaco.api import ArrayPlotData, BasePlotContainer, Plot

  File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\chaco\api.py", line 37, in <module>

    from abstract_plot_renderer import AbstractPlotRenderer

  File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\chaco\abstract_plot_renderer.py", line 7, in <module>

    from plot_component import PlotComponent

  File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\chaco\plot_component.py", line 4, in <module>

    from enable.api import Component

  File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\enable\api.py", line 21, in <module>

    from markers import MarkerTrait, marker_trait, MarkerNameDict, marker_names,

 \

  File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\enable\markers.py", line 18, in <module>

    from compiled_path import CompiledPath

  File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\enable\compiled_path.py", line 17, in <module>

    from toolkit import toolkit_object

  File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\enable\toolkit.py", line 47, in <module>

    _init_toolkit()

  File "C:\Users\Mike\Desktop\WinPython-64bit-2.7.3.3\python-2.7.3.amd64\lib\site-packages\enable\toolkit.py", line 40, in _init_toolkit

    format_exception_only(t, v))

ImportError: Unable to import the image backend for the qt4 toolkit (reason: ['ImportError: DLL load failed: The specified module could not be found.\n']).




_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev