Re: ImportError in embedded Python Interpreter

2009-01-30 Thread googler . 1 . webmaster
Hi! Thanks. Well, os.py is found and all the others which don't need a library. I tested this: I execute Py_Main(...) in my app which executes the console interpreter and i tried to execute import socket which works. So Py_Main has something what my created PyRun_SimpleString doesn't have.

Re: ImportError in embedded Python Interpreter

2009-01-30 Thread Gabriel Genellina
En Fri, 30 Jan 2009 06:54:56 -0200, googler.1.webmas...@spamgourmet.com escribió: Thanks. Well, os.py is found and all the others which don't need a library. I tested this: I execute Py_Main(...) in my app which executes the console interpreter and i tried to execute import socket which

Re: ImportError in embedded Python Interpreter

2009-01-30 Thread googler . 1 . webmaster
Hi! Okay, thats just the question. I did that what you wrote but it doesn't really works. What is, if Py_SetProgramName() gets a NULL Pointer, if argv[0] is empty? Well, the problem is, in my opinion that os.environ returns some paths in python.exe and in my embedded interpreter if I call

Re: ImportError in embedded Python Interpreter

2009-01-30 Thread Gabriel Genellina
En Fri, 30 Jan 2009 08:50:45 -0200, googler.1.webmas...@spamgourmet.com escribió: Okay, thats just the question. I did that what you wrote but it doesn't really works. What is, if Py_SetProgramName() gets a NULL Pointer, if argv[0] is empty? Why so? Are you in an embedded environment or

ImportError in embedded Python Interpreter

2009-01-29 Thread googler . 1 . webmaster
Hi, i have a problem. I compiled Python and the socket module so I got this structure. (all on windows) C:\test\dll_files\python25.dll C:\test\my_app C:\test\dll_files\DLLs\ C:\test\dll_files\python.exe If I run python I get the console and I can call import socket which succeeds. I wrote a

ImportError in embedded Python Interpreter

2009-01-29 Thread googler . 1 . webmaster
Hi, i have a problem. I compiled Python and the socket module so I got this structure. (all on windows) C:\test\dll_files\python25.dll C:\test\my_app C:\test\dll_files\DLLs\ C:\test\dll_files\python.exe If I run python.exe I get the console and I can call import socket which succeeds. I wrote a

Re: ImportError in embedded Python Interpreter

2009-01-29 Thread googler . 1 . webmaster
Hi! Okay, I checkede Py_Main(...) and called some python code there. There it works too. So I know whats missing. sys.environ.. returns nothing. How can I set the paths with the Python C API? Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: ImportError in embedded Python Interpreter

2009-01-29 Thread Gabriel Genellina
En Thu, 29 Jan 2009 17:07:01 -0200, googler.1.webmas...@spamgourmet.com escribió: i have a problem. I compiled Python and the socket module so I got this structure. (all on windows) C:\test\dll_files\python25.dll C:\test\my_app C:\test\dll_files\DLLs\ C:\test\dll_files\python.exe If I run