Re: [Python-Dev] __module__ not found on ported Python

2008-07-07 Thread Martin v. Löwis
> ImportError: __import__ not found > I am not sure where the initialization is going wrong for this error to > show up. > Can someone please help. This isn't really the right list to ask for help, at least without studying some source code prior to posting. The specific error message is produced

Re: [Python-Dev] __module__ not found on ported Python

2008-07-07 Thread Pree Raj
Thanks Brett. I have been able to do initmain() now. However, if I do "import sys" from the python prompt I still get ImportError: __import__ not found I am not sure where the initialization is going wrong for this error to show up. Can someone please help. On Mon, Jul 7, 2008 at 2:15 PM,

Re: [Python-Dev] __module__ not found on ported Python

2008-07-07 Thread Brett Cannon
On Mon, Jul 7, 2008 at 1:48 PM, Pree Raj <[EMAIL PROTECTED]> wrote: [SNIP] > Also, I would like to know which are the MUST HAVE built in modules to be > included for normal working of my ported version of Python. You can look at sys.builtin_module_names to see what CPython compiles in. Otherwise y

[Python-Dev] __module__ not found on ported Python

2008-07-07 Thread Pree Raj
Hi, I am trying to port Python to ThreadX. I have managed to get the prompt. However when I try "import sys" or any built in module I get an error __import__ not found. initmain() in the Initialization code is commented out at present because of some errors. Could it be because of this ? Also, I