Chaco problem with Mac osx 10.6 : 64 bit ?

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

Chaco problem with Mac osx 10.6 : 64 bit ?

Mohammad Abdollahi
Hi,

I've installed Chaco on my OSX 10.6 and some other packages of ETS too, but when i try to run the example Chaco/advanced/spectrum.py, i get the following error :

spectrum.py:12: DeprecationWarning: The wxPython compatibility package is no longer automatically generated or actively maintained.  Please switch to the wx package as soon as possible.
  import wxPython
Traceback (most recent call last):
  File "spectrum.py", line 12, in <module>
    import wxPython
  File "//usr/local/lib/wxPython-ansi-2.8.10.1/lib/python2.6/site-packages/wx-2.8-mac-ansi/wxPython/__init__.py", line 15, in <module>
    import _wx
  File "//usr/local/lib/wxPython-ansi-2.8.10.1/lib/python2.6/site-packages/wx-2.8-mac-ansi/wxPython/_wx.py", line 3, in <module>
    from _core import *
  File "//usr/local/lib/wxPython-ansi-2.8.10.1/lib/python2.6/site-packages/wx-2.8-mac-ansi/wxPython/_core.py", line 15, in <module>
    import wx._core
  File "//usr/local/lib/wxPython-ansi-2.8.10.1/lib/python2.6/site-packages/wx-2.8-mac-ansi/wx/__init__.py", line 45, in <module>
    from wx._core import *
  File "//usr/local/lib/wxPython-ansi-2.8.10.1/lib/python2.6/site-packages/wx-2.8-mac-ansi/wx/_core.py", line 4, in <module>
    import _core_
ImportError: /usr/local/lib/wxPython-ansi-2.8.10.1/lib/python2.6/site-packages/wx-2.8-mac-ansi/wx/_core_.so: no appropriate 64-bit architecture (see "man python" for running in 32-bit mode)


I should also mention that I read somewhere that people said that if I use the following command to set the default operation to 32-bit i will not get this error any more. that was true! but then i couldnt import or use any other module that i had previously installed : scipy, numpy,...

thanks for your help in advance.

Cheers
Mohammad

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

Re: Chaco problem with Mac osx 10.6 : 64 bit ?

Robert Kern
On Fri, Feb 12, 2010 at 09:24, Mohammad Abdollahi <[hidden email]> wrote:

> I should also mention that I read somewhere that people said that if I use
> the following command to set the default operation to 32-bit i will not get
> this error any more. that was true! but then i couldnt import or use any
> other module that i had previously installed : scipy, numpy,...

wxPython is simply not available at this time for 64-bit Python. It
relies on the Carbon GUI API that Apple did not port to the 64-bit
Intel architecture. If you want to use wxPython, you must compile all
of your other extensions for 32-bit mode, too.

--
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: Chaco problem with Mac osx 10.6 : 64 bit ?

Tony S Yu

On Feb 12, 2010, at 10:56 AM, Robert Kern wrote:

On Fri, Feb 12, 2010 at 09:24, Mohammad Abdollahi <[hidden email]> wrote:

I should also mention that I read somewhere that people said that if I use
the following command to set the default operation to 32-bit i will not get
this error any more. that was true! but then i couldnt import or use any
other module that i had previously installed : scipy, numpy,...

wxPython is simply not available at this time for 64-bit Python. It
relies on the Carbon GUI API that Apple did not port to the 64-bit
Intel architecture. If you want to use wxPython, you must compile all
of your other extensions for 32-bit mode, too.


Alternatively, you could install PyQt, which is compatible with 64-bit Python and Chaco/Enable (maybe still experimental?). These are the steps that I followed to install it:

Qt4.6 from installer:
=============================

Note that the main OS X download is 32-bit (or at least it was when I last tried). You'll have to go to Qt's ftp site to get the 64-bit version. Unfortunately, they moved the dmg since I installed it, but I'm pretty sure it's the one labeled qt-mac-cocoa-opensource-4.6.0.dmg in ftp://ftp.qt.nokia.com/qt/source/.

SIP 4.10 from source:
=============================

In source directory:
$ python configure.py --arch=i386 --arch=x86_64
$ make
$ sudo make install

PyQt4.7 from source:
============================
 
In source directory:
$ python configure.py --use-arch=i386 --use-arch=x86_64
$ make
$ sudo make install

Hope that helps,
-Tony

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

Re: Chaco problem with Mac osx 10.6 : 64 bit ?

Robert Kern
On Fri, Feb 12, 2010 at 11:17, Tony S Yu <[hidden email]> wrote:

>
> On Feb 12, 2010, at 10:56 AM, Robert Kern wrote:
>
> On Fri, Feb 12, 2010 at 09:24, Mohammad Abdollahi <[hidden email]>
> wrote:
>
> I should also mention that I read somewhere that people said that if I use
>
> the following command to set the default operation to 32-bit i will not get
>
> this error any more. that was true! but then i couldnt import or use any
>
> other module that i had previously installed : scipy, numpy,...
>
> wxPython is simply not available at this time for 64-bit Python. It
> relies on the Carbon GUI API that Apple did not port to the 64-bit
> Intel architecture. If you want to use wxPython, you must compile all
> of your other extensions for 32-bit mode, too.
>
>
> Alternatively, you could install PyQt, which is compatible with 64-bit
> Python and Chaco/Enable (maybe still experimental?). These are the steps
> that I followed to install it:

Excellent! I'm glad to hear that that setup works.

--
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: Chaco problem with Mac osx 10.6 : 64 bit ?

Darren Dale
On Fri, Feb 12, 2010 at 12:19 PM, Robert Kern <[hidden email]> wrote:

> On Fri, Feb 12, 2010 at 11:17, Tony S Yu <[hidden email]> wrote:
>>
>> On Feb 12, 2010, at 10:56 AM, Robert Kern wrote:
>>
>> On Fri, Feb 12, 2010 at 09:24, Mohammad Abdollahi <[hidden email]>
>> wrote:
>>
>> I should also mention that I read somewhere that people said that if I use
>>
>> the following command to set the default operation to 32-bit i will not get
>>
>> this error any more. that was true! but then i couldnt import or use any
>>
>> other module that i had previously installed : scipy, numpy,...
>>
>> wxPython is simply not available at this time for 64-bit Python. It
>> relies on the Carbon GUI API that Apple did not port to the 64-bit
>> Intel architecture. If you want to use wxPython, you must compile all
>> of your other extensions for 32-bit mode, too.
>>
>>
>> Alternatively, you could install PyQt, which is compatible with 64-bit
>> Python and Chaco/Enable (maybe still experimental?). These are the steps
>> that I followed to install it:
>
> Excellent! I'm glad to hear that that setup works.

With the caveat that the version of freetype that ships with Enable is
not compatible with Snow Leopard.

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

Re: Chaco problem with Mac osx 10.6 : 64 bit ?

bryce hendrix-2
In reply to this post by Robert Kern
On 02/12/2010 11:19 AM, Robert Kern wrote:

> On Fri, Feb 12, 2010 at 11:17, Tony S Yu<[hidden email]>  wrote:
>    
>> On Feb 12, 2010, at 10:56 AM, Robert Kern wrote:
>>
>> On Fri, Feb 12, 2010 at 09:24, Mohammad Abdollahi<[hidden email]>
>> wrote:
>>
>> I should also mention that I read somewhere that people said that if I use
>>
>> the following command to set the default operation to 32-bit i will not get
>>
>> this error any more. that was true! but then i couldnt import or use any
>>
>> other module that i had previously installed : scipy, numpy,...
>>
>> wxPython is simply not available at this time for 64-bit Python. It
>> relies on the Carbon GUI API that Apple did not port to the 64-bit
>> Intel architecture. If you want to use wxPython, you must compile all
>> of your other extensions for 32-bit mode, too.
>>
>>
>> Alternatively, you could install PyQt, which is compatible with 64-bit
>> Python and Chaco/Enable (maybe still experimental?). These are the steps
>> that I followed to install it:
>>      
> Excellent! I'm glad to hear that that setup works.
>    

I did notice that some of the Enable examples don't work correctly with
the Qt backend, such as the scrollbar example. These are examples for
advanced use, so most would never notice, but its good to keep in mind.
And we should fix them some day...

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

Re: Chaco problem with Mac osx 10.6 : 64 bit ?

Mohammad Abdollahi
In reply to this post by Tony S Yu
thank you so much tony. i followed your instructions step by step only with aslight difference in that the QT package i installed from that FTP you mentioned was more recent, qt-mac-cocoa-opensource-4.6.0.
dmg instead of 4.6.0 that you mentioned. besides i didnt installed the other file beside it with "libs" label too. anyway, the rrest was done as you mentioned. but to me it seems as nothing has changed regading my problem which was running chaco examples and getting the 64-bit error  as follows :

 File "spectrum.py", line 12, in <module>
    import wxPython
  File "/var/tmp/wxWidgets/wxWidgets-13~231/2.6/DSTROOT/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode/wxPython/__init__.py", line 15, in <module>
  File "/var/tmp/wxWidgets/wxWidgets-13~231/2.6/DSTROOT/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode/wxPython/_wx.py", line 3, in <module>
  File "/var/tmp/wxWidgets/wxWidgets-13~231/2.6/DSTROOT/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode/wxPython/_core.py", line 15, in <module>
  File "/var/tmp/wxWidgets/wxWidgets-13~231/2.6/DSTROOT/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode/wx/__init__.py", line 45, in <module>
  File "/var/tmp/wxWidgets/wxWidgets-13~231/2.6/DSTROOT/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode/wx/_core.py", line 4, in <module>
ImportError: /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode/wx/_core_.so: no appropriate 64-bit architecture (see "man python" for running in 32-bit mode)


which is exactly the same as before. it probably is atrivial mistake that i have made but can please tell me if there's still anything else that i should do.

Thanks
M.


On Fri, Feb 12, 2010 at 6:17 PM, Tony S Yu <[hidden email]> wrote:

On Feb 12, 2010, at 10:56 AM, Robert Kern wrote:

On Fri, Feb 12, 2010 at 09:24, Mohammad Abdollahi <[hidden email]> wrote:

I should also mention that I read somewhere that people said that if I use
the following command to set the default operation to 32-bit i will not get
this error any more. that was true! but then i couldnt import or use any
other module that i had previously installed : scipy, numpy,...

wxPython is simply not available at this time for 64-bit Python. It
relies on the Carbon GUI API that Apple did not port to the 64-bit
Intel architecture. If you want to use wxPython, you must compile all
of your other extensions for 32-bit mode, too.


Alternatively, you could install PyQt, which is compatible with 64-bit Python and Chaco/Enable (maybe still experimental?). These are the steps that I followed to install it:

Qt4.6 from installer:
=============================

Note that the main OS X download is 32-bit (or at least it was when I last tried). You'll have to go to Qt's ftp site to get the 64-bit version. Unfortunately, they moved the dmg since I installed it, but I'm pretty sure it's the one labeled qt-mac-cocoa-opensource-4.6.0.dmg in ftp://ftp.qt.nokia.com/qt/source/.

SIP 4.10 from source:
=============================

In source directory:
$ python configure.py --arch=i386 --arch=x86_64
$ make
$ sudo make install

PyQt4.7 from source:
============================
 
In source directory:
$ python configure.py --use-arch=i386 --use-arch=x86_64
$ make
$ sudo make install

Hope that helps,
-Tony

_______________________________________________
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
|

Re: Chaco problem with Mac osx 10.6 : 64 bit ?

Darren Dale
On Tue, Feb 16, 2010 at 9:05 AM, Mohammad Abdollahi
<[hidden email]> wrote:

> thank you so much tony. i followed your instructions step by step only with
> aslight difference in that the QT package i installed from that FTP you
> mentioned was more recent, qt-mac-cocoa-opensource-4.6.0.
> dmg instead of 4.6.0 that you mentioned. besides i didnt installed the other
> file beside it with "libs" label too. anyway, the rrest was done as you
> mentioned. but to me it seems as nothing has changed regading my problem
> which was running chaco examples and getting the 64-bit error  as follows :
>
>  File "spectrum.py", line 12, in <module>
>     import wxPython
>   File
> "/var/tmp/wxWidgets/wxWidgets-13~231/2.6/DSTROOT/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode/wxPython/__init__.py",
> line 15, in <module>
>   File
> "/var/tmp/wxWidgets/wxWidgets-13~231/2.6/DSTROOT/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode/wxPython/_wx.py",
> line 3, in <module>
>   File
> "/var/tmp/wxWidgets/wxWidgets-13~231/2.6/DSTROOT/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode/wxPython/_core.py",
> line 15, in <module>
>   File
> "/var/tmp/wxWidgets/wxWidgets-13~231/2.6/DSTROOT/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode/wx/__init__.py",
> line 45, in <module>
>   File
> "/var/tmp/wxWidgets/wxWidgets-13~231/2.6/DSTROOT/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode/wx/_core.py",
> line 4, in <module>
> ImportError:
> /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode/wx/_core_.so:
> no appropriate 64-bit architecture (see "man python" for running in 32-bit
> mode)
>
>
> which is exactly the same as before. it probably is atrivial mistake that i
> have made but can please tell me if there's still anything else that i
> should do.

ETS will default to wx. Try creating an environment variable to tell
it to use the qt backend:

export ETS_TOOLKIT=qt4

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

Re: Chaco problem with Mac osx 10.6 : 64 bit ?

Mohammad Abdollahi
thanks, i did so, but i keep getting the following error :

  File "spectrum.py", line 18, in <module>
    from enthought.enable.api import Window, Component, ComponentEditor
  File "/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/enable/api.py", line 8, in <module>
    from base import IDroppedOnHandler, TOP, VCENTER, BOTTOM, LEFT, HCENTER, RIGHT, \
  File "/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/enable/base.py", line 36, in <module>
    from enthought.kiva import font_metrics_provider
  File "/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/kiva/__init__.py", line 116, in <module>
    raise RuntimeError("no kiva backend for %s" % ETSConfig.toolkit)
RuntimeError: no kiva backend for qt4

Best
M.

On Tue, Feb 16, 2010 at 4:17 PM, Darren Dale <[hidden email]> wrote:
On Tue, Feb 16, 2010 at 9:05 AM, Mohammad Abdollahi
<[hidden email]> wrote:
> thank you so much tony. i followed your instructions step by step only with
> aslight difference in that the QT package i installed from that FTP you
> mentioned was more recent, qt-mac-cocoa-opensource-4.6.0.
> dmg instead of 4.6.0 that you mentioned. besides i didnt installed the other
> file beside it with "libs" label too. anyway, the rrest was done as you
> mentioned. but to me it seems as nothing has changed regading my problem
> which was running chaco examples and getting the 64-bit error  as follows :
>
>  File "spectrum.py", line 12, in <module>
>     import wxPython
>   File
> "/var/tmp/wxWidgets/wxWidgets-13~231/2.6/DSTROOT/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode/wxPython/__init__.py",
> line 15, in <module>
>   File
> "/var/tmp/wxWidgets/wxWidgets-13~231/2.6/DSTROOT/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode/wxPython/_wx.py",
> line 3, in <module>
>   File
> "/var/tmp/wxWidgets/wxWidgets-13~231/2.6/DSTROOT/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode/wxPython/_core.py",
> line 15, in <module>
>   File
> "/var/tmp/wxWidgets/wxWidgets-13~231/2.6/DSTROOT/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode/wx/__init__.py",
> line 45, in <module>
>   File
> "/var/tmp/wxWidgets/wxWidgets-13~231/2.6/DSTROOT/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode/wx/_core.py",
> line 4, in <module>
> ImportError:
> /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode/wx/_core_.so:
> no appropriate 64-bit architecture (see "man python" for running in 32-bit
> mode)
>
>
> which is exactly the same as before. it probably is atrivial mistake that i
> have made but can please tell me if there's still anything else that i
> should do.

ETS will default to wx. Try creating an environment variable to tell
it to use the qt backend:

export ETS_TOOLKIT=qt4

Darren
_______________________________________________
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
|

Re: Chaco problem with Mac osx 10.6 : 64 bit ?

Tony S Yu
On Feb 16, 2010, at 10:56 AM, Mohammad Abdollahi wrote:

> thanks, i did so, but i keep getting the following error :
>
>   File "spectrum.py", line 18, in <module>
>     from enthought.enable.api import Window, Component, ComponentEditor
>   File "/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/enable/api.py", line 8, in <module>
>     from base import IDroppedOnHandler, TOP, VCENTER, BOTTOM, LEFT, HCENTER, RIGHT, \
>   File "/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/enable/base.py", line 36, in <module>
>     from enthought.kiva import font_metrics_provider
>   File "/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/kiva/__init__.py", line 116, in <module>
>     raise RuntimeError("no kiva backend for %s" % ETSConfig.toolkit)
> RuntimeError: no kiva backend for qt4

Did you rebuild Enable after installing qt4? If so, were there any build errors?

-Tony

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

Re: Chaco problem with Mac osx 10.6 : 64 bit ?

Darren Dale
On Tue, Feb 16, 2010 at 11:53 AM, Tony S Yu <[hidden email]> wrote:

> On Feb 16, 2010, at 10:56 AM, Mohammad Abdollahi wrote:
>
>> thanks, i did so, but i keep getting the following error :
>>
>>   File "spectrum.py", line 18, in <module>
>>     from enthought.enable.api import Window, Component, ComponentEditor
>>   File "/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/enable/api.py", line 8, in <module>
>>     from base import IDroppedOnHandler, TOP, VCENTER, BOTTOM, LEFT, HCENTER, RIGHT, \
>>   File "/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/enable/base.py", line 36, in <module>
>>     from enthought.kiva import font_metrics_provider
>>   File "/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/kiva/__init__.py", line 116, in <module>
>>     raise RuntimeError("no kiva backend for %s" % ETSConfig.toolkit)
>> RuntimeError: no kiva backend for qt4
>
> Did you rebuild Enable after installing qt4? If so, were there any build errors?

Probably he needs to install TraitsBackendQt, not rebuild Enable.

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

Re: Chaco problem with Mac osx 10.6 : 64 bit ?

Mohammad Abdollahi
Thanks for the comments. I did what you both said now, first i re-installed TraitsBackendQt and i still had the Errors and then I re-built the Enable package and it worked fine too except that somewhere in the beginning printed in red the following lines (which relates to wx that i dont import any more):
package init file './enthought/savage/traits/ui/wx/data/__init__.py' not found (or not a regular file)


apart from that i went fine and i didnt have any errors from rebuilding Enable. but I'm still getting the same set of errors :

Traceback (most recent call last):
  File "/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/kiva/__init__.py", line 66, in _try_backend
    mod = _dotted_import('backend_%s' % name)
  File "/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/kiva/__init__.py", line 54, in _dotted_import
    mod = __import__(name, globals(), locals(), [])
  File "/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/kiva/backend_qt4.py", line 28, in <module>
    from backend_image import GraphicsContextSystem as GraphicsContext
  File "/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/kiva/backend_image.py", line 21, in <module>
    from agg import GraphicsContextArray as GraphicsContext
  File "/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/kiva/agg/__init__.py", line 4, in <module>
    from agg import *
  File "/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/kiva/agg/agg.py", line 7, in <module>
    import _agg
ImportError: dlopen(/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/kiva/agg/_agg.so, 2): Symbol not found: _ft_stub_set_char_sizes
  Referenced from: /Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/kiva/agg/_agg.so
  Expected in: flat namespace
 in /Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/kiva/agg/_agg.so
Traceback (most recent call last):
  File "spectrum.py", line 18, in <module>
    from enthought.enable.api import Window, Component, ComponentEditor
  File "/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/enable/api.py", line 8, in <module>
    from base import IDroppedOnHandler, TOP, VCENTER, BOTTOM, LEFT, HCENTER, RIGHT, \
  File "/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/enable/base.py", line 36, in <module>
    from enthought.kiva import font_metrics_provider
  File "/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/kiva/__init__.py", line 116, in <module>
    raise RuntimeError("no kiva backend for %s" % ETSConfig.toolkit)
RuntimeError: no kiva backend for qt4
 

Best
M.

On Tue, Feb 16, 2010 at 5:57 PM, Darren Dale <[hidden email]> wrote:
On Tue, Feb 16, 2010 at 11:53 AM, Tony S Yu <[hidden email]> wrote:
> On Feb 16, 2010, at 10:56 AM, Mohammad Abdollahi wrote:
>
>> thanks, i did so, but i keep getting the following error :
>>
>>   File "spectrum.py", line 18, in <module>
>>     from enthought.enable.api import Window, Component, ComponentEditor
>>   File "/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/enable/api.py", line 8, in <module>
>>     from base import IDroppedOnHandler, TOP, VCENTER, BOTTOM, LEFT, HCENTER, RIGHT, \
>>   File "/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/enable/base.py", line 36, in <module>
>>     from enthought.kiva import font_metrics_provider
>>   File "/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/kiva/__init__.py", line 116, in <module>
>>     raise RuntimeError("no kiva backend for %s" % ETSConfig.toolkit)
>> RuntimeError: no kiva backend for qt4
>
> Did you rebuild Enable after installing qt4? If so, were there any build errors?

Probably he needs to install TraitsBackendQt, not rebuild Enable.

Darren
_______________________________________________
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
|

Re: Chaco problem with Mac osx 10.6 : 64 bit ?

bryce hendrix-2
>From your exception, here is the meaningful bit:

ImportError: dlopen(/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/kiva/agg/_agg.so, 2): Symbol not found: _ft_stub_set_char_sizes

Looks like its a problem with Freetype. Not being a heavy OS X user, I'll step aside now...

Bryce

Mohammad Abdollahi wrote:
Thanks for the comments. I did what you both said now, first i re-installed TraitsBackendQt and i still had the Errors and then I re-built the Enable package and it worked fine too except that somewhere in the beginning printed in red the following lines (which relates to wx that i dont import any more):
package init file './enthought/savage/traits/ui/wx/data/__init__.py' not found (or not a regular file)


apart from that i went fine and i didnt have any errors from rebuilding Enable. but I'm still getting the same set of errors :

Traceback (most recent call last):
  File "/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/kiva/__init__.py", line 66, in _try_backend
    mod = _dotted_import('backend_%s' % name)
  File "/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/kiva/__init__.py", line 54, in _dotted_import
    mod = __import__(name, globals(), locals(), [])
  File "/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/kiva/backend_qt4.py", line 28, in <module>
    from backend_image import GraphicsContextSystem as GraphicsContext
  File "/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/kiva/backend_image.py", line 21, in <module>
    from agg import GraphicsContextArray as GraphicsContext
  File "/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/kiva/agg/__init__.py", line 4, in <module>
    from agg import *
  File "/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/kiva/agg/agg.py", line 7, in <module>
    import _agg
ImportError: dlopen(/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/kiva/agg/_agg.so, 2): Symbol not found: _ft_stub_set_char_sizes
  Referenced from: /Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/kiva/agg/_agg.so
  Expected in: flat namespace
 in /Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/kiva/agg/_agg.so
Traceback (most recent call last):
  File "spectrum.py", line 18, in <module>
    from enthought.enable.api import Window, Component, ComponentEditor
  File "/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/enable/api.py", line 8, in <module>
    from base import IDroppedOnHandler, TOP, VCENTER, BOTTOM, LEFT, HCENTER, RIGHT, \
  File "/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/enable/base.py", line 36, in <module>
    from enthought.kiva import font_metrics_provider
  File "/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/kiva/__init__.py", line 116, in <module>
    raise RuntimeError("no kiva backend for %s" % ETSConfig.toolkit)
RuntimeError: no kiva backend for qt4
 

Best
M.

On Tue, Feb 16, 2010 at 5:57 PM, Darren Dale <[hidden email]> wrote:
On Tue, Feb 16, 2010 at 11:53 AM, Tony S Yu <[hidden email]> wrote:
> On Feb 16, 2010, at 10:56 AM, Mohammad Abdollahi wrote:
>
>> thanks, i did so, but i keep getting the following error :
>>
>>   File "spectrum.py", line 18, in <module>
>>     from enthought.enable.api import Window, Component, ComponentEditor
>>   File "/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/enable/api.py", line 8, in <module>
>>     from base import IDroppedOnHandler, TOP, VCENTER, BOTTOM, LEFT, HCENTER, RIGHT, \
>>   File "/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/enable/base.py", line 36, in <module>
>>     from enthought.kiva import font_metrics_provider
>>   File "/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/kiva/__init__.py", line 116, in <module>
>>     raise RuntimeError("no kiva backend for %s" % ETSConfig.toolkit)
>> RuntimeError: no kiva backend for qt4
>
> Did you rebuild Enable after installing qt4? If so, were there any build errors?

Probably he needs to install TraitsBackendQt, not rebuild Enable.

Darren
_______________________________________________
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


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

Re: Chaco problem with Mac osx 10.6 : 64 bit ?

Mohammad Abdollahi
So I gave up on 64-bit installation and I decided to install everything from the beginning in 32-bit mode. so i first used the command :

and then i installed the superpack_10.6_2009.12.16.sh file which includes scipy, numpy,.. packages and then installed wxpython.

Now, wxpython works but i can not import scipy,numpy,... even though i re-installed them. I re-installed the python 2.6 again too but i'm not sure if all the packages are installed in 32-bit mode. how can i make sure of that ? can someone come up with a hint please ?
this 64-bit isue of mac osx 10.6 is really tiring me now.

thanks in advance. M.
 

On Tue, Feb 16, 2010 at 6:58 PM, bryce hendrix <[hidden email]> wrote:
>From your exception, here is the meaningful bit:


ImportError: dlopen(/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/kiva/agg/_agg.so, 2): Symbol not found: _ft_stub_set_char_sizes

Looks like its a problem with Freetype. Not being a heavy OS X user, I'll step aside now...

Bryce

Mohammad Abdollahi wrote:
Thanks for the comments. I did what you both said now, first i re-installed TraitsBackendQt and i still had the Errors and then I re-built the Enable package and it worked fine too except that somewhere in the beginning printed in red the following lines (which relates to wx that i dont import any more):
package init file './enthought/savage/traits/ui/wx/data/__init__.py' not found (or not a regular file)


apart from that i went fine and i didnt have any errors from rebuilding Enable. but I'm still getting the same set of errors :

Traceback (most recent call last):
  File "/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/kiva/__init__.py", line 66, in _try_backend
    mod = _dotted_import('backend_%s' % name)
  File "/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/kiva/__init__.py", line 54, in _dotted_import
    mod = __import__(name, globals(), locals(), [])
  File "/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/kiva/backend_qt4.py", line 28, in <module>
    from backend_image import GraphicsContextSystem as GraphicsContext
  File "/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/kiva/backend_image.py", line 21, in <module>
    from agg import GraphicsContextArray as GraphicsContext
  File "/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/kiva/agg/__init__.py", line 4, in <module>
    from agg import *
  File "/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/kiva/agg/agg.py", line 7, in <module>
    import _agg
ImportError: dlopen(/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/kiva/agg/_agg.so, 2): Symbol not found: _ft_stub_set_char_sizes
  Referenced from: /Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/kiva/agg/_agg.so
  Expected in: flat namespace
 in /Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/kiva/agg/_agg.so
Traceback (most recent call last):
  File "spectrum.py", line 18, in <module>
    from enthought.enable.api import Window, Component, ComponentEditor
  File "/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/enable/api.py", line 8, in <module>
    from base import IDroppedOnHandler, TOP, VCENTER, BOTTOM, LEFT, HCENTER, RIGHT, \
  File "/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/enable/base.py", line 36, in <module>
    from enthought.kiva import font_metrics_provider
  File "/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/kiva/__init__.py", line 116, in <module>
    raise RuntimeError("no kiva backend for %s" % ETSConfig.toolkit)
RuntimeError: no kiva backend for qt4
 

Best
M.

On Tue, Feb 16, 2010 at 5:57 PM, Darren Dale <[hidden email]> wrote:
On Tue, Feb 16, 2010 at 11:53 AM, Tony S Yu <[hidden email]> wrote:
> On Feb 16, 2010, at 10:56 AM, Mohammad Abdollahi wrote:
>
>> thanks, i did so, but i keep getting the following error :
>>
>>   File "spectrum.py", line 18, in <module>
>>     from enthought.enable.api import Window, Component, ComponentEditor
>>   File "/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/enable/api.py", line 8, in <module>
>>     from base import IDroppedOnHandler, TOP, VCENTER, BOTTOM, LEFT, HCENTER, RIGHT, \
>>   File "/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/enable/base.py", line 36, in <module>
>>     from enthought.kiva import font_metrics_provider
>>   File "/Library/Python/2.6/site-packages/Enable-3.2.1.dev_r25203-py2.6-macosx-10.6-universal.egg/enthought/kiva/__init__.py", line 116, in <module>
>>     raise RuntimeError("no kiva backend for %s" % ETSConfig.toolkit)
>> RuntimeError: no kiva backend for qt4
>
> Did you rebuild Enable after installing qt4? If so, were there any build errors?

Probably he needs to install TraitsBackendQt, not rebuild Enable.

Darren
_______________________________________________
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


_______________________________________________
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
|

Re: Chaco problem with Mac osx 10.6 : 64 bit ?

Darren Dale
On Thu, Feb 18, 2010 at 7:15 AM, Mohammad Abdollahi
<[hidden email]> wrote:

> So I gave up on 64-bit installation and I decided to install everything from
> the beginning in 32-bit mode. so i first used the command :
>
> and then i installed the superpack_10.6_2009.12.16.sh file which includes
> scipy, numpy,.. packages and then installed wxpython.
>
> Now, wxpython works but i can not import scipy,numpy,... even though i
> re-installed them. I re-installed the python 2.6 again too but i'm not sure
> if all the packages are installed in 32-bit mode. how can i make sure of
> that ? can someone come up with a hint please ?
> this 64-bit isue of mac osx 10.6 is really tiring me now.

Did you replace the freetype in Enable like Tony suggested in your
other thread?Hopefully Enable will be updated to use a newer version
of freetype before the next release.
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: Chaco problem with Mac osx 10.6 : 64 bit ?

Mohammad Abdollahi
yes i did, but it didnt help fixing my problem. thanks anyway.

On Thu, Feb 18, 2010 at 1:42 PM, Darren Dale <[hidden email]> wrote:
On Thu, Feb 18, 2010 at 7:15 AM, Mohammad Abdollahi
<[hidden email]> wrote:
> So I gave up on 64-bit installation and I decided to install everything from
> the beginning in 32-bit mode. so i first used the command :
>
> and then i installed the superpack_10.6_2009.12.16.sh file which includes
> scipy, numpy,.. packages and then installed wxpython.
>
> Now, wxpython works but i can not import scipy,numpy,... even though i
> re-installed them. I re-installed the python 2.6 again too but i'm not sure
> if all the packages are installed in 32-bit mode. how can i make sure of
> that ? can someone come up with a hint please ?
> this 64-bit isue of mac osx 10.6 is really tiring me now.

Did you replace the freetype in Enable like Tony suggested in your
other thread?Hopefully Enable will be updated to use a newer version
of freetype before the next release.
_______________________________________________
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
|

Re: Chaco problem with Mac osx 10.6 : 64 bit ?

Michael Aye
In reply to this post by Tony S Yu

On 2010-02-12 18:17:06 +0100, Tony S Yu said:


SIP 4.10 from source:

=============================


Download and unpack source from http://www.riverbankcomputing.co.uk/software/sip/download

In source directory:

$ python configure.py --arch=i386 --arch=x86_64

$ make

$ sudo make install


Hi all!


I try to install SIP like this, having a 64-bit EPD distribution.

The configure, that I launch with the EPD python:


aye@paradigm: sip-4.11.1$ which python

/Library/Frameworks/EPD64.framework/Versions/Current/bin/python


fails with:


aye@paradigm: sip-4.11.1$ python configure.py --arch=i386 --arch=x86_64

This is SIP 4.11.1 for Python 2.6.5 on darwin.

The SIP code generator will be installed in

/Library/Frameworks/EPD64.framework/Versions/6.2/bin.

The SIP module will be installed in

/Library/Frameworks/EPD64.framework/Versions/6.2/lib/python2.6/site-packages.

The SIP header file will be installed in

/Library/Frameworks/EPD64.framework/Versions/6.2/include/python2.6.

The default directory to install .sip files in is

/Library/Frameworks/EPD64.framework/Versions/6.2/share/sip.

The platform/compiler configuration is macx-g++.

MacOS/X binaries will be created for i386, x86_64.

MacOS/X universal binaries will be created using

/Developer/SDKs/MacOSX10.6.sdk.

Creating sipconfig.py...

Creating top level Makefile...

Creating sip code generator Makefile...

Creating sip module Makefile...

Error: SIP requires Python to be built as a framework


which I don't get, because clearly my python is in a framework.

What am I missing?


Thanks for your help!


BR,

Michael


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

Re: Chaco problem with Mac osx 10.6 : 64 bit ?

Robert Kern
On Tue, Sep 7, 2010 at 2:26 AM, K.-Michael Aye <[hidden email]> wrote:

> Error: SIP requires Python to be built as a framework
>
> which I don't get, because clearly my python is in a framework.
>
> What am I missing?

SIP's configure.py script is expecting to find "Python.framework".
However, we have named our 64-bit build "EPD64.framework". You will
have to modify the configure.py to look for "EPD64.framework" instead.

--
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev