[pyicu-dev] Problem installing PyICU on Cygwin
Brian Quistorff
bquistorff at gmail.com
Wed Apr 9 13:32:50 PDT 2008
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.
Cheers,
Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osafoundation.org/pipermail/pyicu-dev/attachments/20080409/9ec7c480/attachment.html
More information about the pyicu-dev
mailing list