xulunfan / opennero

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

no gui on windows due to lack of correct python DLL in release package #77

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. click.EXE
2.wait for start up
3.no GUI :(

What is the expected output? What do you see instead?

i expect some kind of menu or GUI. but all i see is a pale blue screen this 
seemingly random 3-digit #'s.

What version of the product are you using? On what operating system?

the one released on may 30th windows XP
Please provide any additional information below.

when i started nero it said that python26.dll was missing so i downloaded a 
copy of the internet and put it in the opennero folder.

2011-Jul-21 22:15:51.984375 (!) [scripting] initialized path
2011-Jul-21 22:15:52 (!) [scripting] OpenNero Python module initialized
2011-Jul-21 22:15:52 (M) [scripting] scripting engine initialized
2011-Jul-21 22:15:52 (!) [scripting] executing script: logConfig.py
2011-Jul-21 22:15:52 (M) Ignoring messages of type: game
2011-Jul-21 22:15:52.015625 (M) Ignoring messages of type: ai.tick
2011-Jul-21 22:15:52.015625 (M) Starting OpenNero
2011-Jul-21 22:15:53.500000 (!) [scripting] executing script: hub/main.py
2011-Jul-21 22:15:53.515625 (!) [scripting] error executing script: hub/main.py

Original issue reported on code.google.com by Che.Wood...@gmail.com on 22 Jul 2011 at 3:17

GoogleCodeExporter commented 9 years ago
I have exactly the same problem with windows 7.
Same error with the python26.dll.
Downloaded it in opennero main folder , same error log

Original comment by dearc...@gmail.com on 22 Aug 2011 at 10:53

GoogleCodeExporter commented 9 years ago
Yes, there should be a GUI =), but it starts only after the embedded Python 
interpreter is able to run the scripts, which in your cases it isn't.

This seems to be yet another packaging issue for the executable releases - we 
should package the version of Python DLL we are using with the release so that 
people don't have to find exactly the same one (which I think may be the reason 
for failing to execute even when the DLL is present).

The binary release from may is broken in several other ways as well, so I have 
deprecated it. We will be releasing a better version soon. In the meantime, you 
could try building the project from source - this will require a lot more 
dependencies, but eventually should give you something you can run.

Original comment by ikarpov on 25 Aug 2011 at 3:36

GoogleCodeExporter commented 9 years ago

Original comment by ikarpov on 25 Aug 2011 at 3:37

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
This is also related to Issue #98 - while we can add the DLL, the supporting 
libraries, and the module archive to the download package, that still doesn't 
allow us to use wxPython and/or Tkinter! The proper steps to get things running 
are:

1) Download and install Python 2.7.2 (32 bit)
2) Download and install wxPython 2.8 for Python 2.7
3) Add the path for python.exe to System "Path" Variable.

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

GoogleCodeExporter commented 9 years ago

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

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

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

GoogleCodeExporter commented 9 years ago
It launches, but still something is missing:

2011-Nov-14 20:50:55.215409 (M) Ignoring messages of type: ai.tick
2011-Nov-14 20:50:55.222410 (M) Starting OpenNero
Irrlicht Engine version 1.7.2-beta
Microsoft Windows 7 Home Premium Edition Service Pack 1 (Build 7601)
Using renderer: OpenGL 4.0.10188
ATI Mobility Radeon HD 5650  : ATI Technologies Inc.
OpenGL driver version is 1.2 or better.
GLSL version: 4.0
Loaded texture: D:/Development/Home/Experiments/OpenNERO-2011.11.11-win32/hub/da
ta/gui/nero_background.png
Resizing window (800 600)
2011-Nov-14 20:50:57.985568 (M) [python] openWiki: RunningOpenNero
2011-Nov-14 20:51:07.913136 (M) [ai] AI Engine disabled
2011-Nov-14 20:51:07.923136 (M) [scripting] scripting engine initialized
2011-Nov-14 20:51:07.938137 (!) [scripting] error executing script: NERO_Battle/
main.py
2011-Nov-14 20:51:07.984140 (M) [python] Traceback (most recent call last):
  File "NERO_Battle/main.py", line 2, in <module>
    from NERO.RTNEATAgent import *
ImportError: No module named RTNEATAgent
2011-Nov-14 20:51:08.045143 (M) [python] KeyError: 'ModMain'
2011-Nov-14 20:53:12.661271 (M) [ai] AI Engine disabled
2011-Nov-14 20:53:12.674272 (M) Killing OpenNero

And this is what I have on the screen (attached)

Original comment by bogdan.w...@gmail.com on 14 Nov 2011 at 6:56

Attachments:

GoogleCodeExporter commented 9 years ago
fixed in r1385 of trunk, binary updates forthcoming.

Original comment by ikarpov on 14 Nov 2011 at 7:42

GoogleCodeExporter commented 9 years ago
the problem and the fix mentioned above actually have nothing to do with Python 
on Windows, and so are off-topic for this issue. This still remains a problem. 
Two alternative solutions exist: packaging the installers for Python and 
wxPython or packaging the required libraries. So far I was unsuccessful at 
getting Tkinter and wxPython to run correctly from the custom directory with 
OpenNERO executable without being installed on the host system. Any suggestions?

Original comment by ikarpov on 14 Nov 2011 at 11:48

GoogleCodeExporter commented 9 years ago
For the time being, because there is not much time before Peter Norvig and 
Sebastian Thrun will decide to start competition using OpenNERO, I think 
extensive doc that describes how to correctly run it will be enough. At least 
that would give time to think about how to solve dependency issues without time 
pressure.

Original comment by bogdan.w...@gmail.com on 15 Nov 2011 at 12:17

GoogleCodeExporter commented 9 years ago
I updated RunningOpenNero with hopefully more thorough instructions on how to 
get things running.

Original comment by ikarpov on 15 Nov 2011 at 2:21

GoogleCodeExporter commented 9 years ago
I have Windows 7 and I did the following installtion steps:
1) Download and install Python 2.7.2 (64 bit)
2) Download and install wxPython 2.8 for Python 2.7
3) Add the path for python.exe to System "Path" Variable.

When using the OpenNero without Python included I get: "The program can't start 
because python27.dll is missing from your computer. Try reinstalling the 
program to fix this problem.

When using the OpenNero packaged with Python, the program starts, but I get 
different errors depending on the mod I choose on the welcome screen.

Maze: "ImportError: No module named Tkinter"
NERO or NERO_Battle: "ImportError: No module named tkMessageBox"
BlocksTower and Roomba seem to work fine

Original comment by leo.ardj...@gmail.com on 17 Nov 2011 at 4:01

GoogleCodeExporter commented 9 years ago
I think 64-bit Python won't work because we link against the 32-bit library. 
Can you install a 32-bit version? If not, you could always [BuildingOpenNero 
build from source] though that takes a bit of time...

The Tkinter and wxPython problem is unfortunate - I think maybe I will make the 
"-with-python" package not featured until that's figured out, since people have 
to install Python to get it to work anyway...

Original comment by ikarpov on 17 Nov 2011 at 6:34

GoogleCodeExporter commented 9 years ago
I uninstalled the 64-bit versions of both Python and wxPython and installed the 
32-bit versions of those packages. Now everything seems to work fine!

Thank you for the lightning-fast answer.

Original comment by leo.ardj...@gmail.com on 17 Nov 2011 at 7:12

GoogleCodeExporter commented 9 years ago
You can now also install everything in 64-bit world if you are on Windows...

Original comment by ikarpov on 7 Dec 2011 at 1:03

GoogleCodeExporter commented 9 years ago

Original comment by ikarpov on 1 Sep 2013 at 7:00

GoogleCodeExporter commented 9 years ago
Owning this again since I am building binaries soon.

Original comment by ikarpov on 1 Sep 2013 at 7:24