Python 2.7

everything about the current big update and the latest stable branch

Moderator: Moderator

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

Python 2.7

Postby Uatschitchun » Sun Dec 23, 2012 2:14 pm

Is there a way to fix python in 1.1?

Code: Select all

$ gcc -I/usr/include/python2.7 -lpython2.7 -o test.o test.c
test.c: In Funktion »main«:
test.c:2:40: Warnung: return erzeugt Ganzzahl von Zeiger ohne Typkonvertierung [standardmäßig aktiviert]
/tmp/ccx12YC7.o: In function `main':
test.c:(.text+0x7): undefined reference to `_Py_NoneStruct'
test.c:(.text+0x12): undefined reference to `_Py_NoneStruct'
test.c:(.text+0x17): undefined reference to `_Py_NoneStruct'
collect2: ld gab 1 als Ende-Status zurück
Lg
Roman

User avatar
acmelabs
Overlord
Posts: 2365
Joined: Mon Feb 20, 2006 9:18 pm
Location: Germany
Contact:

Re: Python 2.7

Postby acmelabs » Sun Dec 23, 2012 11:36 pm

Uatschitchun wrote:Is there a way to fix python in 1.1?

Code: Select all

$ gcc -I/usr/include/python2.7 -lpython2.7 -o test.o test.c
test.c: In Funktion »main«:
test.c:2:40: Warnung: return erzeugt Ganzzahl von Zeiger ohne Typkonvertierung [standardmäßig aktiviert]
/tmp/ccx12YC7.o: In function `main':
test.c:(.text+0x7): undefined reference to `_Py_NoneStruct'
test.c:(.text+0x12): undefined reference to `_Py_NoneStruct'
test.c:(.text+0x17): undefined reference to `_Py_NoneStruct'
collect2: ld gab 1 als Ende-Status zurück


Hi Roman,

it's only a warning. The undefined references come from gcc 4.6.3.
Try this:

Code: Select all

 gcc -I/usr/include/python2.7  -o test.o test.c -lpython2.7

The warning remains, but the undefined references go away.
There are plenty more such issues compiling 1.1.x with g++ 4.6.3.
Look here:http://blog.mymediasystem.net/my-media-system/mymediasystem-1-1-1-on-ubuntu-server-12-04-precise/
Note: The weather plugin is beta.

Regards

Andreas

lorenzodes
master
Posts: 772
Joined: Sun Mar 11, 2007 4:50 pm
Location: move.l 4.w,a6

Re: Python 2.7

Postby lorenzodes » Tue Dec 25, 2012 10:45 am

Interesting :)

Does the new weather service require registration? Does the license allow scraping?

btw: merry Xmas :)
"I’m not frightened of dying, anytime will do, I don’t mind. Why should I be frightened of dying? There’s no reason for it, you gotta go sometime"

User avatar
acmelabs
Overlord
Posts: 2365
Joined: Mon Feb 20, 2006 9:18 pm
Location: Germany
Contact:

Re: Python 2.7

Postby acmelabs » Tue Dec 25, 2012 12:02 pm

lorenzodes wrote:Interesting :)

Does the new weather service require registration? Does the license allow scraping?

btw: merry Xmas :)

well, you're the lawyer. Read here the terms of use: http://om.yr.no/verdata/vilkar/ (use google translate, or something)
But as far as I understand it, it's free and no registration is needed.

Yep, merry Xmas to You all also

Regards,
Andreas

PS@Roman: If you set language to English, Lorenzo could help You, too

Code: Select all

LANGUAGE=en gcc -I/usr/include/python2.7 -o test.o test.c -lpython2.7

or

Code: Select all

LANGUAGE=en make


Return to “1.1.x”

Who is online

Users browsing this forum: No registered users and 3 guests