error when building pys60 community edition

Asked by Luis Valente on 2009-03-27

Hello,

I'm trying to build PyS60 CE by following the instructions at http://blog.redinnovation.com/2008/09/01/introducing-python-for-series-60-community-edition/.

When I first tried to issue this command: c:\Python25\Scripts\scons, I received this error:

RuntimeError: Python SDK has not been installed. Run setup.py install:
  File "T:\workspace\pys60\pys60community\src\SConstruct", line 1111:
    PyS60Shell()
  File "T:\workspace\pys60\pys60community\src\SConstruct", line 948:
    raise RuntimeError("Python SDK has not been installed. Run setup.py install"
)

Then, I issued "setup.py install" (that's not on the guide at the blog).

Anyway, after that I issued the "c:\Python25\Scripts\scons" command, but the build failed with this error:

T:\epoc32\include\python\Python_appui.h:34: the file 'PythonCommunity.rsg' cannot be opened
winscw_udeb\_appuifw2_lib\ext\appuifw2\appuifw2module.cpp:557: warning: illegal
winscw_udeb\_appuifw2_lib\ext\appuifw2\appuifw2module.cpp:557: warning: illegal
scons: *** [winscw_udeb\_appuifw2_lib\ext\appuifw2\appuifw2module.o] Error 1

Here is the build log:

scons: Reading SConscript files ...
EPOCROOT=\
Info: SIS creation disabled
Info: Symbian OS version = 9.1
Info: UI platform = S60 3.0
Building winscw udeb
Defines []
Building internal extensions:['applicationmanager', 'appuifw2', 'calendar', 'contacts', 'e32db', 'elocation', 'gles', 'globalui', 'gps', 'graphics', 'inbox', 'keycapture', 'logs', 'messaging', 'miso', 'progressnotes', 'recorder', 'socket', 'sysinfo', 'telephone', 'topwindow', 'uikludges', 'zlib']
Building external extensions:[]
Getting dependencies for _applicationmanager.lib(0x0)
Getting dependencies for _appuifw2.lib(0x0)
Getting dependencies for _calendar.lib(0x0)
Getting dependencies for _contacts.lib(0x0)
Getting dependencies for e32db.lib(0x0)
Getting dependencies for _elocation.lib(0x0)
Getting dependencies for gles.lib(0x0)
Getting dependencies for globalui.lib(0x0)
Getting dependencies for _locationacq.lib(0x0)
Getting dependencies for _graphics.lib(0x0)
Getting dependencies for inbox.lib(0x0)
Getting dependencies for _keycapture.lib(0x0)
Getting dependencies for _logs.lib(0x0)
Getting dependencies for _messaging.lib(0x0)
Getting dependencies for miso.lib(0x0)
Getting dependencies for _progressnotes.lib(0x0)
Getting dependencies for _recorder.lib(0x0)
Getting dependencies for e32socket.lib(0x0)
Getting dependencies for _sysinfo.lib(0x0)
Getting dependencies for _telephone.lib(0x0)
Getting dependencies for _topwindow.lib(0x0)
Getting dependencies for _uikludges.lib(0x0)
Getting dependencies for zlib.lib(0x0)
Getting dependencies for pythoncommunityconfig.lib(0x0)
Allocated UID:0xe1000000
Getting dependencies for pythoncommunity.dll(0xe1000000)
Allocated UID:0xe1000001
Getting dependencies for pythoncommunity_appui.dll(0xe1000001)
Allocated UID:0xe1000002
Getting dependencies for pythoncommunity.exe(0xe1000002)
Allocated UID:0xe1000003
Getting dependencies for pythoncommunity_launcher.exe(0xe1000003)
Allocated UID:0xe1000004
Getting dependencies for helloworld_0xe1000004.exe(0xe1000004)
Allocated UID:0xe1000005
Getting dependencies for btconsole_0xe1000005.exe(0xe1000005)
Allocated UID:0xe1000006
Getting dependencies for filebrowser_0xe1000006.exe(0xe1000006)
Allocated UID:0xe1000007
Creating a distribution SIS PythonCommunity.sis with UID 0xe1000007
scons: done reading SConscript files.
scons: Building targets ...
mwccsym2 -o winscw_udeb\_appuifw2_lib\ext\appuifw2\appuifw2module.o -c -g -O0 -inline off -wchar_t off -align 4 -warnings on -w nohidevirtual,nounusedexpr -msgstyle gcc -enum int -str pool -exc ms -trigraphs on -nostdinc -cwd source -I- -I\epoc32\include -I\epoc32\include\variant -include "symbian_os_v9.1.hrh" -d "HAVE_ACTIVESCHEDULERWAIT" -d "USE_GLOBAL_DATA_HACK" -d "HAVE_HUGE_VAL" -d "PYTHON_APP_NAME=PythonCommunity" -d "BUILTIN_APPUIFW2" -d "STATIC_EXTENSION" -d "__UID3__=0x0" -d "__SYMBIAN32__" -d "_UNICODE" -d "__SUPPORT_CPP_EXCEPTIONS__" -d "__SERIES60_30__" -d "__SERIES60_3X__" -d "__SERIES60__" -d "__SYMBIAN_OS_VERSION__=91" -d "__UI_VERSION__=30" -d "_DEBUG" -d "__CW32__" -d "__WINS__" -d "__WINSCW__" -i core\Symbian -i core\Objects -i core\Parser -i core\Python -i core\include -i core\Modules -i tools\debug -i T:\epoc32\include\libc -i ext\appuifw2 -i winscw_udeb\_appuifw2_lib -i T:\epoc32\include -i T:\epoc32\include\libc -i T:\epoc32\include\python -i ext\appuifw2\inc -i appui winscw_udeb\_appuifw2_lib\ext\appuifw2\appuifw2module.cpp

T:\epoc32\include\python\Python_appui.h:34: the file 'PythonCommunity.rsg' cannot be opened
winscw_udeb\_appuifw2_lib\ext\appuifw2\appuifw2module.cpp:557: warning: illegal
empty declaration
winscw_udeb\_appuifw2_lib\ext\appuifw2\appuifw2module.cpp:557: warning: illegal
empty declaration

Errors caused tool to abort.
scons: building terminated because of errors.

Any clues?
Thanks in advance.

Question information

Language:
English Edit question
Status:
Answered
For:
PyS60 community Edit question
Assignee:
No assignee Edit question
Last query:
2009-03-27
Last reply:
2009-04-02
Jussi Toivola (jussi-toivola) said : #1

Hmm... I was able to reproduce this with SCons 1.2.0(scons-1.2.0.d20090223.win32.exe), but not with SCons 1.1.0.

The PythonCommunity.rsg should be built first and it is explicitly set as dependency in the SConstruct. Seems like the latest SCons is broken. It should build python core first anyway. At least before linking.

Try SCons 1.1.0: http://downloads.sourceforge.net/scons/scons-1.1.0.win32.exe

Blackpaw (blackpaw) said : #2

I ran into exactly this problem, including the "setup.py install" requirement and reverting to scons 1.0 solved it. I was using scons 1.3

Thanks Jussi!

Can you help with this problem?

Provide an answer of your own, or ask Luis Valente for more information if necessary.

To post a message you must log in.