ggazzo / opennero

Automatically exported from code.google.com/p/opennero
Other
0 stars 0 forks source link

ImportError: No module named site (Windows 7 x64) #98

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Copy python27.dll into the root folder of OpenNERO (otherwise it will 
complain about missing dll)
2. execute OpenNERO.exe
3. Nothing in the nero_log.txt

What is the expected output? What do you see instead?
Expected: OpenNERO starts
Instead: error in console “ImportError: No module named site”

What version of the product are you using? On what operating system?
OpenNERO-2011.11.11-win32.zip / Windows 7 x64

Please provide any additional information below.

Original issue reported on code.google.com by bogdan.w...@gmail.com on 14 Nov 2011 at 11:17

GoogleCodeExporter commented 9 years ago
In order to allow OpenNERO to use a version of Python other than one installed 
on the host operating system, a lot more files than just the DLL need to be 
made available to it. In particular, this includes all the supporting libraries 
and an archive, python27.zip, made up of the python core libraries and modules.

I will add these files and upload an executable that will be easier for windows 
users to get started with, but unfortunately even that does not allow some 
parts of the functionality to work properly (namely the external user 
interface, wxPython). The proper way to get things running is to:

1) Install Python 2.7.2 (32 bit) on the host OS
2) Install wxPython 2.8 for Python 2.7
3) Add the Python folder to the System Variable "Path".

Original comment by ikarpov on 14 Nov 2011 at 2:01

GoogleCodeExporter commented 9 years ago

Original comment by ikarpov on 14 Nov 2011 at 2:01

GoogleCodeExporter commented 9 years ago
also need to address issue #77 when fixing this

Original comment by ikarpov on 14 Nov 2011 at 2:17

GoogleCodeExporter commented 9 years ago
I added the OpenNERO-2011.11.11-win32-with-python.zip package which should 
include the needed libraries.

Original comment by ikarpov on 14 Nov 2011 at 2:55

GoogleCodeExporter commented 9 years ago
Somehow it does gives me an error when I'm trying to run trunk version.

file: scripting.cpp, 
function: void ScriptingEngine::reinitialize()
line: 162, _main_module = python::import("__main__");

plz help anyone

Original comment by rusyas...@gmail.com on 26 Dec 2011 at 1:42