* building Genshi
@ 2017-03-19 14:29 Catonano
2017-03-19 21:05 ` Ludovic Courtès
0 siblings, 1 reply; 4+ messages in thread
From: Catonano @ 2017-03-19 14:29 UTC (permalink / raw
To: help-guix
[-- Attachment #1: Type: text/plain, Size: 1930 bytes --]
In building Genshi, an extension in C fails t build
writing manifest file 'Genshi.egg-info/SOURCES.txt'
running build_ext
building 'genshi._speedups' extension
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3
-Wall -Wstrict-prototypes -fPIC
-I/gnu/store/alk9r3rir93pjmv8im20f8xrvv90219z-python-3.5.2/include/python3.5m
-c genshi/_speedups.c -o build/temp.linux-x86_64-3.5/genshi/_speedups.o
genshi/_speedups.c: In function ‘escape’:
genshi/_speedups.c:89:13: error: ‘PyUnicodeObject’ has no member named ‘str’
inp = in->str;
^
genshi/_speedups.c:90:24: error: ‘PyUnicodeObject’ has no member named
‘length’
while (*(inp) || in->length > inp - in->str) {
^
genshi/_speedups.c:90:43: error: ‘PyUnicodeObject’ has no member named ‘str’
while (*(inp) || in->length > inp - in->str) {
^
genshi/_speedups.c:120:13: error: ‘PyUnicodeObject’ has no member named
‘str’
inp = in->str;
^
...
a looong list of missing PyUnicodeObject attributes follows
I managed to build with -K, I cded to the /tmp/build-folder and retried to
build
And this is it
...
running build_ext
building 'genshi._speedups' extension
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3
-Wall -Wstrict-prototypes -fPIC
-I/gnu/store/alk9r3rir93pjmv8im20f8xrvv90219z-python-3.5.2/include/python3.5m
-c genshi/_speedups.c -o build/temp.linux-x86_64-3.5/genshi/_speedups.o
genshi/_speedups.c: In function ‘escape’:
genshi/_speedups.c:89:13: error: ‘PyUnicodeObject’ has no member named ‘str’
inp = in->str;
^
genshi/_speedups.c:90:24: error: ‘PyUnicodeObject’ has no member named
‘length’
while (*(inp) || in->length > inp - in->str) {
...
Am I missing anything or is Genshi at faut ?
[-- Attachment #2: Type: text/html, Size: 2272 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: building Genshi
2017-03-19 14:29 building Genshi Catonano
@ 2017-03-19 21:05 ` Ludovic Courtès
2017-03-19 21:33 ` Catonano
0 siblings, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2017-03-19 21:05 UTC (permalink / raw
To: Catonano; +Cc: help-guix
Hi,
Catonano <catonano@gmail.com> skribis:
> genshi/_speedups.c: In function ‘escape’:
> genshi/_speedups.c:89:13: error: ‘PyUnicodeObject’ has no member named ‘str’
> inp = in->str;
> ^
I don’t know much about Python, but to me that suggests that Genshi
expects a different CPython version than the one it has here. Maybe a
2.x vs. 3.x issue?
HTH,
Ludo’.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: building Genshi
2017-03-19 21:05 ` Ludovic Courtès
@ 2017-03-19 21:33 ` Catonano
2017-03-28 8:39 ` Catonano
0 siblings, 1 reply; 4+ messages in thread
From: Catonano @ 2017-03-19 21:33 UTC (permalink / raw
To: Ludovic Courtès; +Cc: help-guix
[-- Attachment #1: Type: text/plain, Size: 606 bytes --]
Ludo,
2017-03-19 22:05 GMT+01:00 Ludovic Courtès <ludo@gnu.org>:
> Hi,
>
> Catonano <catonano@gmail.com> skribis:
>
> > genshi/_speedups.c: In function ‘escape’:
> > genshi/_speedups.c:89:13: error: ‘PyUnicodeObject’ has no member named
> ‘str’
> > inp = in->str;
> > ^
>
> I don’t know much about Python, but to me that suggests that Genshi
> expects a different CPython version than the one it has here. Maybe a
> 2.x vs. 3.x issue?
>
I found it, it's here
https://genshi.edgewall.org/ticket/555
I didn't find it earlier :-/
Thanks, anyway
[-- Attachment #2: Type: text/html, Size: 1189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: building Genshi
2017-03-19 21:33 ` Catonano
@ 2017-03-28 8:39 ` Catonano
0 siblings, 0 replies; 4+ messages in thread
From: Catonano @ 2017-03-28 8:39 UTC (permalink / raw
Cc: help-guix
[-- Attachment #1: Type: text/plain, Size: 814 bytes --]
2017-03-19 22:33 GMT+01:00 Catonano <catonano@gmail.com>:
> Ludo,
>
> 2017-03-19 22:05 GMT+01:00 Ludovic Courtès <ludo@gnu.org>:
>
>> Hi,
>>
>> Catonano <catonano@gmail.com> skribis:
>>
>> > genshi/_speedups.c: In function ‘escape’:
>> > genshi/_speedups.c:89:13: error: ‘PyUnicodeObject’ has no member named
>> ‘str’
>> > inp = in->str;
>> > ^
>>
>> I don’t know much about Python, but to me that suggests that Genshi
>> expects a different CPython version than the one it has here. Maybe a
>> 2.x vs. 3.x issue?
>>
>
> I found it, it's here
> https://genshi.edgewall.org/ticket/555
>
> I didn't find it earlier :-/
>
> Thanks, anyway
>
O, naive question: say that I want to try to build genshi only for python2
How would I do that ?
Thanks
[-- Attachment #2: Type: text/html, Size: 1734 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-03-28 8:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-19 14:29 building Genshi Catonano
2017-03-19 21:05 ` Ludovic Courtès
2017-03-19 21:33 ` Catonano
2017-03-28 8:39 ` Catonano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).