[pyicu-dev] Problem installing PyICU on Cygwin

Andi Vajda vajda at osafoundation.org
Wed Apr 9 13:51:54 PDT 2008


On Apr 9, 2008, at 13:32, "Brian Quistorff" <bquistorff at gmail.com>  
wrote:

> Hello,
>      I'm having trouble using PyICU. I have Cygwin with the Python  
> 2.5 module(s) installed on a WinXP machine. I downloaded ICU, built  
> and installed the dll files w/o a problem. I then built PyICU (after  
> a bit of fiddling) and installed it. However I'm having trouble  
> loading the dll file. From a python shell I get:
> >from PyICU import Locale
> > Traceback (most recent call last):
> >  File "<stdin>", Line 1, in <module>
> >  File "PyICU.py", line 38, in <module>
> >   from _PyICU import *
> >ImportError: No such file or directory
>
> I tried moving PyICU.py and _PyICU.dll to my working directory but  
> that didn't fix it. I saw that the installed egg file said the  
> platform was UNKNOWN, so I tried changing it to both WIN and WINDOWS  
> with no luck. FYI here's what I added to setup.py to get it to build  
> on cygwin
> >INCLUDES - ['/usr/local/include/']
> >CFLAGS - []
> >LFLAGS - []
> >LIBRARIES - ['icuin', 'icuuc', 'icudt']
>
> and here's also the output while installing:
> > python setup.py install
> >/usr/lib/python2.5/distutils/dist.py:263: UserWarning: Unknown  
> distribution option: 'test_suite'
> >  warnings.warn(msg)
> >running install
> >running build
> >running build_py
> >running build_ext
> >running install_lib
> >running install_egg_info\
> >Removing /usr/lib/python2.5/site-packages/PyICU-0.8.1-py2.5.egg-info
> >Writing /usr/lib/python2.5/site-packages/PyICU-0.8.1-py2.5.egg-info
>
> I checked sys.path and it did include the directory where the egg  
> (and the other files) where installed. Any idea what's the problem?  
> I can provide more info if that's helpful.

I have never used cygwin's python on windows. How about using the  
'regular' one instead ?

Andi..

>
>
> Cheers,
> Brian
>
>
> _______________________________________________
> pyicu-dev mailing list
> pyicu-dev at osafoundation.org
> http://lists.osafoundation.org/cgi-bin/mailman/listinfo/pyicu-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osafoundation.org/pipermail/pyicu-dev/attachments/20080409/c05618e0/attachment.htm


More information about the pyicu-dev mailing list