List Info

Thread: pyicu with python 2.3 under windows




pyicu with python 2.3 under windows
country flaguser name
Germany
2007-02-20 02:51:43
Hello,

is there a binary release of pyicu 0.6 for python version
2.3 on windows ?

Why is there no setup.py available to support the standard
python build ?

Is it possible to use the makefile for building a version
that supports nativ
python 2.3 under windows (not cygwin) ?

Thanks.

Greetings Wolfgang
-- 
Wolfgang Langner
Dipl.-Ing.(FH)                                 phone: +49
711 782380 43
flexis AG                                        fax: +49
711 782380 78
_______________________________________________
pyicu-dev mailing list
pyicu-devosafoundation.org
http://lists.osafoundation.org/cgi-bin/mailman/
listinfo/pyicu-dev

Re: pyicu with python 2.3 under windows
country flaguser name
United States
2007-02-20 12:03:04
On Tue, 20 Feb 2007, Wolfgang Langner wrote:

> is there a binary release of pyicu 0.6 for python
version 2.3 on windows ?

I didn't build one, no.

> Why is there no setup.py available to support the
standard python build ?

Because the build used to be a lot more complicated in the
days of SWIG.
Since version 0.5, SWIG is no longer used so it should be
pretty simple to 
write one. Would you like to submit a patch ?
(on windows, be sure to use the /Zc:wchar_t compiler flag).

> Is it possible to use the makefile for building a
version that supports nativ
> python 2.3 under windows (not cygwin) ?

The PyICU Makefile is a GNU makefile.
If you don't want to install cygwin, try our minimal cygwin
package:
     http://builds.osafoundation.org/external/windows/minc
yg.zip

Andi..
_______________________________________________
pyicu-dev mailing list
pyicu-devosafoundation.org
http://lists.osafoundation.org/cgi-bin/mailman/
listinfo/pyicu-dev

Re: pyicu with python 2.3 under windows
user name
2007-02-20 12:37:09
For what it's worth, the Makefile for PyICU 0.5 built just fine for us with the native Python 2.3 under Windows against ICU 3.4 (once a few source changes were made, which have been incorporated into 0.6). ; I haven't tried building 0.6, but it doesn't look like the Makefile changed.

We did have Cygwin installed on the systems doing the build (so GNU make and the Cygwin stuff in the Makefile was present), but as long as you have VC6 as the default compiler in your path, it should build the native extension just fine.

-- David


On 2/20/07, Andi Vajda < vajdaosafoundation.org">vajdaosafoundation.org>; wrote:

On Tue, 20 Feb 2007, Wolfgang Langner wrote:

&gt; is there a binary release of pyicu 0.6 for python version 2.3 on windows ?

I didn't build one, no.

> Why is there no setup.py available to support the standard python build ?

Because the build used to be a lot more complicated in the days of SWIG.
Since version 0.5, SWIG is no longer used so it should be pretty simple to
write one. Would you like to submit a patch ?
(on windows, be sure to use the /Zc:wchar_t compiler flag).

> Is it possible to use the makefile for building a version that supports nativ
> python 2.3 under windows (not cygwin) ?

The PyICU Makefile is a GNU makefile.
If you don't want to install cygwin, try our minimal cygwin package:
 &nbsp; &nbsp; http://builds.osafoundation.org/external/windows/mincyg.zip

Andi..
_______________________________________________
pyicu-dev mailing list
pyicu-devosafoundation.org">pyicu-devosafoundation.org
http://lists.osafoundation.org/cgi-bin/mailman/listinfo/pyicu-dev

Re: pyicu with python 2.3 under windows
country flaguser name
Germany
2007-02-21 03:20:27
Hi,

David Bolen wrote:
> For what it's worth, the Makefile for PyICU 0.5 built
just fine for us
> with the native Python 2.3 under Windows against ICU
3.4 (once a few
> source changes were made, which have been incorporated
into 0.6).  I
> haven't tried building 0.6, but it doesn't look like
the Makefile changed.

I tried building version 0.6 (I need ICU 3.6) against python
2.3.
It doesn't build. The makefile seems ok, but I get compile
errors.
I have installed cygwin and msvc6.

I get the following error. (german system!)

bases.cpp
bases.cpp(2468) : error C2440: 'type cast' : 'enum ' kann
nicht in 'void *'
konvertiert werden
        Es gibt keinen Kontext, in dem diese Konvertierung
moeglich ist

Can't convert enum to void *. No context to do this
conversion.

That's the first output. I have done no further checks.

> We did have Cygwin installed on the systems doing the
build (so GNU make
> and the Cygwin stuff in the Makefile was present), but
as long as you
> have VC6 as the default compiler in your path, it
should build the
> native extension just fine.

I will test version 0.5 and verify this. Thanks.

_______________________________________________
pyicu-dev mailing list
pyicu-devosafoundation.org
http://lists.osafoundation.org/cgi-bin/mailman/
listinfo/pyicu-dev

Re: pyicu with python 2.3 under windows
country flaguser name
United States
2007-02-21 12:45:19
On Wed, 21 Feb 2007, Wolfgang Langner wrote:

> I tried building version 0.6 (I need ICU 3.6) against
python 2.3.
> It doesn't build. The makefile seems ok, but I get
compile errors.
> I have installed cygwin and msvc6.
>
> I get the following error. (german system!)
>
> bases.cpp
> bases.cpp(2468) : error C2440: 'type cast' : 'enum '
kann nicht in 'void *'
> konvertiert werden
>        Es gibt keinen Kontext, in dem diese
Konvertierung moeglich ist
>
> Can't convert enum to void *. No context to do this
conversion.

It looks like msvc 6 is not happy with casting the
UObject_ID enum value to 
UClassID. Try using a newer msvc compiler. There is a free
one now (called 
msvc express ?). Maybe there is a compiler flag you can use
to let that cast 
through ? This code compiles fine with msvc 7.1.

Andi..
_______________________________________________
pyicu-dev mailing list
pyicu-devosafoundation.org
http://lists.osafoundation.org/cgi-bin/mailman/
listinfo/pyicu-dev

Re: pyicu with python 2.3 under windows
user name
2007-02-21 13:12:23
I just gave 0.6 a shot, and to be honest, my problem was getting a working build of ICU 3.6 with VC6 and not PyICU.&nbsp;  So I reverted to ICU 3.4.

PyICU 0.6 did introduce some hardcoded dependencies on ICU 3.6 for the charset support, but after removing the include of ucsdet.h in common.h, excluding charset from the Makefile targets, and removing the init_charset from the main entry point, it seems to build fine under VC6, with Python 2.3 and ICU 3.4.  E.g., about the same as what I was using with 0.5 plus patches.

I'm not involved with the project that used PyICU/ICU any longer, so have limited time to figure out how to get ICU 3.6 built with VC6.  When I tried I was getting access errors (public/private) in brkiter.cpp - first error:

brkiter.cpp
brkiter.cpp(125) : error C2248: 'validLocale' : cannot access private member declared in class 'icu_3_6::BreakIterator'
 &nbsp; &nbsp;   ; unicode/brkiter.h(537) : see declaration of 'validLocale'
brkiter.cpp(125) : error C2248: 'actualLocale'; : cannot access private member declared in class 'icu_3_6::BreakIterator'
 &nbsp; &nbsp;   ; unicode/brkiter.h(536) : see declaration of 'actualLocale';
make[1]: *** [brkiter.o] Error 2
make[1]: Leaving directory `/cygdrive/s/dist/icu-3.6/icu/source/common'
make: *** [all-recursive] Error 2


If you can let me know how you got ICU 3.6 built, I could probably peek further at the PyICU part.

-- David

On 2/21/07, Wolfgang Langner < wlflexis.de">wlflexis.de> wrote:
Hi,

David Bolen wrote:
&gt; For what it's worth, the Makefile for PyICU 0.5 built just fine for us
> with the native Python 2.3 under Windows against ICU 3.4 (once a few
> source changes were made, which have been incorporated into 0.6).&nbsp; I
> haven't tried building 0.6, but it doesn't look like the Makefile changed.

I tried building version 0.6 (I need ICU 3.6) against python 2.3.
It doesn't build. The makefile seems ok, but I get compile errors.
I have installed cygwin and msvc6.

I get the following error. (german system!)

bases.cpp
bases.cpp(2468) : error C2440: 'type cast' : 'enum ' kann nicht in 'void *'
konvertiert werden
&nbsp;   ; &nbsp; &nbsp;Es gibt keinen Kontext, in dem diese Konvertierung moeglich ist

Can&#39;t convert enum to void *. No context to do this conversion.

That';s the first output. I have done no further checks.

> We did have Cygwin installed on the systems doing the build (so GNU make
> and the Cygwin stuff in the Makefile was present), but as long as you
> have VC6 as the default compiler in your path, it should build the
> native extension just fine.

I will test version 0.5 and verify this. Thanks.


Re: pyicu with python 2.3 under windows
country flaguser name
Germany
2007-03-02 04:02:44
Hello,

David Bolen wrote:
> I just gave 0.6 a shot, and to be honest, my problem
was getting a
> working build of ICU 3.6 with VC6 and not PyICU.   So I
reverted to ICU 3.4.

I have the same problem. I reverted to ICU 3.4 with pyicu
0.5 with patches to
build agains python 2.3.
This runs fine for me. I have no time to investigate version
0.6 against
python 2.3 build problems.

Because python 2.3 is a little bit outdated I hope I can
switch to
an newer python version in the near future.

Thank you all for your help.


-- 
Wolfgang Langner
Dipl.-Ing.(FH)                                 phone: +49
711 782380 43
flexis AG                                        fax: +49
711 782380 78
_______________________________________________
pyicu-dev mailing list
pyicu-devosafoundation.org
http://lists.osafoundation.org/cgi-bin/mailman/
listinfo/pyicu-dev

Re: pyicu with python 2.3 under windows
country flaguser name
Germany
2007-03-02 04:07:00
Andi Vajda wrote:
> 
> On Wed, 21 Feb 2007, Wolfgang Langner wrote:
> 
>> I tried building version 0.6 (I need ICU 3.6)
against python 2.3.
>> It doesn't build. The makefile seems ok, but I get
compile errors.
>> I have installed cygwin and msvc6.
>>
>> I get the following error. (german system!)
>>
>> bases.cpp
>> bases.cpp(2468) : error C2440: 'type cast' : 'enum
' kann nicht in
>> 'void *'
>> konvertiert werden
>>        Es gibt keinen Kontext, in dem diese
Konvertierung moeglich ist
>>
>> Can't convert enum to void *. No context to do this
conversion.
> 
> It looks like msvc 6 is not happy with casting the
UObject_ID enum value
> to UClassID. Try using a newer msvc compiler. There is
a free one now
> (called msvc express ?). Maybe there is a compiler flag
you can use to
> let that cast through ? This code compiles fine with
msvc 7.1.

Python 2.3 is build with msvc 6. It is not recommended to
build extensions
for this version with a newer msvc compiler.
You can get into trouble with incompatible object
signatures. See file object.

I hope I can switch to a newer python version in near
future.

Thanks for your help.
-- 
Wolfgang Langner
Dipl.-Ing.(FH)                                 phone: +49
711 782380 43
flexis AG                                        fax: +49
711 782380 78
_______________________________________________
pyicu-dev mailing list
pyicu-devosafoundation.org
http://lists.osafoundation.org/cgi-bin/mailman/
listinfo/pyicu-dev

[1-8]

about | contact  Other archives ( Real Estate discussion Medical topics )