[pyicu-dev] Problem installing PyICU on Cygwin

Andi Vajda vajda at osafoundation.org
Wed Apr 9 15:23:25 PDT 2008


On Apr 9, 2008, at 14:09, "Steven R. Loomis" <srl at icu-project.org>  
wrote:

> Did you build ICU with Cygwin or with MSVC?  I'm not quite clear on  
> the actual error here, but you might want to take a hard look at the  
> DLLs and see if they are named/installed correctly.  Are they  
> icuucXX.dll where it is looking for libicuuc-X.X.dll, for instance?

And of course, even once named correctly, windows has to be able to  
find them. Their directories need to be on PATH.

Andi..


>
>
> -steven ( ICU Project )
>
>
> Andi Vajda wrote:
>>
>> On Apr 9, 2008, at 13:51, Andi Vajda <vajda at osafoundation.org <mailto:vajda at osafoundation.org 
>> >> wrote:
>>
>>>
>>> On Apr 9, 2008, at 13:32, "Brian Quistorff" <bquistorff at gmail.com <mailto: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 ?
>>
>> I should add that you can use that regular windows python on  
>> cygwinjust fine as long as you set your PATH right.
>> Andi..
>>
>>
>


More information about the pyicu-dev mailing list