On Thursday, November 22, 2012 7:01:28 PM UTC, argon wrote:
>
> Hi all
>
> Can anyone please explain or point me to a  source  how to use Cython in 
> combination with Spyder on Mac OS X?
>
> I am new to Cython but managed to the following hello-world from the 
> command line (outside of Spyder):
>
> ==
> python setup.py build_ext --inplace
> running build_ext
> cythoning hello.pyx to hello.c
> building 'hello' extension
> creating build
> creating build/temp.macosx-10.5-x86_64-2.7
> ....
> ==
>
> However, doing this say from within Spyder results in the error message:
>
> ==
> *** ImportError: No module named Cython.Distutils
> ==
>
> I understand that the Spyder terminal is of no use (according to the FAQ) 
> and does not have access to my .bashrc?
>
> Spyder  has the option "Execute in an external system terminal". However, 
> if I try to run a program with that option nothing happens. There is no 
> external system terminal that would pop up.
>
> My details on Mac OS X 10.6.8 and Spyder 2.2.0dev (fetched from the net 
> precompiled):
>
> ==
> Enthought Python Distribution -- www.enthought.com
> Version: 7.1-2 (64-bit)
>
> Python 2.7.2 |EPD 7.1-2 (64-bit)| (default, Jul 27 2011, 14:50:45) 
> [GCC 4.0.1 (Apple Inc. build 5493)] on darwin
> Type "packages", "demo" or "enthought" for more information.
> ==
>
>
>
Let me add. Finishing off the Cython hello world example 
(http://docs.cython.org/src/quickstart/build.html) from within Spyder leads 
to:

==
from hello import say_hello_to

print say_hello_to('me')
==

==
runfile(r'/do.py', wdir=r'/cy')
*** ImportError: No module named nonmultipart
== 

However, it works from the Mac OS X Terminal (outside of Spyder):

==
python do.py
Hello me!
None
==

By the way: Using Spyder on Mac OS X on a daily basis would be impossible 
due the cursor speed (particularly when using the delete/backspace key). My 
cursor and keyboard speed is set to max in Mac OS X Preferences but has no 
effect in Spyder whatsoever. Everything is fine on Ubuntu though. I haven't 
found a option which would let me adjust the cursor speed in Spyder.


Thanks for any input

-- 
You received this message because you are subscribed to the Google Groups 
"spyder" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/spyderlib/-/fIwUiq5M-agJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/spyderlib?hl=en.

Reply via email to