Stefan

Thanks. I have it working now. It was my fault as it was still running 
0.10 as I was spawning Python to do the build and it adds all its stuff
in front of what I was setting. I just explicitly added to the beginning
of sys.path in the setup file if its a Linux build and that seems to do
the trick. Probably a much better way to do that.

Apologies for posting to the wrong list. I didn't look carefully enough
at the subscribe page and just scrolled to the bottom.

Regards
Bob

On 27/07/2010 13:12, Stefan Behnel wrote:
> Bob Cowdery, 27.07.2010 12:16:
>> I have something strange happening with a plain python module compiled
>> with Cython.
>>
>> The import statement:
>>
>> import xml.dom as dom
>>
>> is causing the following error:
>>
>> TypeError: Item in ''from list'' not a string.  (Note these are single
>> quote marks and the first set are the slanting variety)
>
> This works for me in a wide build of Python 2.5, 2.7 and 3.2 as well
> as a narrow build of Python 2.6, using the latest cython-devel branch
> (i.e. Cython 0.13). We also have a similar test case in our regression
> test suite.
>
> http://hg.cython.org/cython-devel/archive/tip.tar.gz
>
> Please try that version and provide the Python version that you are
> using and the exact error output, including traceback.
>
> Stefan

_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to