Global defpaths error while building Python

View: New views
2 Messages — Rating Filter:   Alert me  

Global defpaths error while building Python

by rajashekhar v :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Group,

I have download pythonce source, and try to build it to generate CAB file.

I have downloaded and installed all the below requirements which are mentioned in the readme-wince.txt.
- Python 2.5 for Windows, installed on your PC
- Microsoft eMbedded Visual C++ 4.0 with Service Pack 4
- Pocket PC 2003 SDK

As per the readme.txt , i executed the scons cab, but i'm getting the below errors.
Please help me to resolve this.


>> > C:\Source\python-wince\PCbuild\WinCE>scons
>> > scons: Reading SConscript files ...
>> > <type 'exceptions.NameError'>: global name
>> 'defpaths'
>>
> is not defined:


In the pythonce group some one has faced the same problem and reply was like this.
I got the same problem trying to compile PythonCE.
I resolved it by creating en empty 'defpaths' list on line 365 of msevc.py
and manually added 'include_path', 'lib_path' and 'exe_path' to it.


As per this suggestion, manually add the paths of what ??
include_path = ??
lib_path = ??
exe_path = ??

Please help me .


Thanks,
Rajashekhar


_______________________________________________
PythonCE mailing list
PythonCE@...
http://mail.python.org/mailman/listinfo/pythonce

Re: Global defpaths error while building Python

by Sini Mäkelä :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

> As per the readme.txt , i executed the scons cab, but i'm getting the below
> errors.
>
> Please help me to resolve this.
>
>
>>> > C:\Source\python-wince\PCbuild\WinCE>scons
>>> > scons: Reading SConscript files ...
>>> > <type 'exceptions.NameError'>: global name
>
>>> 'defpaths'
>>> > is not defined:

I'm sure there is some proper way to fix that problem and somebody
might tell us how, but I just ended up setting the exe_path as
follows:

exe_path = r'C:\Program Files\Microsoft eMbedded C++ 4.0\EVC\wce420\bin'

I didn't have to set the other paths, as the script was able to find
the other registry values and didn't end up in those exception
handlers that would have called for non-existing defpaths.

HTH,

- Sini
_______________________________________________
PythonCE mailing list
PythonCE@...
http://mail.python.org/mailman/listinfo/pythonce