BlocksTower doesn't find the file recursive_solver.py

4 views
Skip to first unread message

Stefano

unread,
Dec 5, 2011, 8:38:59 PM12/5/11
to opennero
I was finally able to install and execute OpenNERO on Win7 64 bit, and
see the Maze working well.
But when I try to start BlocksTower it stops at line 79 in agent.py,
complaining about the missing file 'BlocksTower/recursive_solver.py'.
The file exists in C:\OpenNERO\BlocksTower\recursive_solver.py.
I tried to change the line 79 of agent.py in the full address 'C:/
OpenNERO/BlocksTower/recursive_solver.py', I tried any combination
of /, \, \/, \\ with full and with relative address, but it doesn't
work.

Any idea why it doesn't work?

This is the first time I play with Python.
Am I supposed to use a generic text editor to edit the sources, or is
there an IDE or an environment that helps with the editing and
debugging?

Thanks,
Stefano

Stefano

unread,
Dec 5, 2011, 8:46:52 PM12/5/11
to opennero
Same problem with "NERO_Battle/menu.py"

Igor Karpov

unread,
Dec 5, 2011, 9:21:40 PM12/5/11
to open...@googlegroups.com
Hmm... Is it really recursive_solver it is not finding, or the python
executable? Remember you have to have python.exe in your %PATH%. Once
you do this, you should be able to e.g. open a command line prompt and
type in "python" to get the prompt. There you should be able to say
import wx and not see any errors. What openero is doing with solver
and menu is starting a separate python process - it it cannot find
"python.exe", it will say something like "system cannot find the file
specified" in nero_log.txt

As far as editing Python files, there are IDEs that do it, but IMO the
easiest thing to do is to use a regular text editor with syntax
highlighting. On Windows, I use notepad++. One caveat with Python is
that it is indentation-sensitive, so you can't mix tabs and spaces. We
use four spaces per indent level in all of our files.

Stefano

unread,
Dec 5, 2011, 9:37:29 PM12/5/11
to opennero
From a Command prompt window Python starts, and import wx works.
And the Maze ant the Rumba work too.
When I run the BlockTower, I see the dialog with the Start, Pause and
Help buttons, but I don't see the dialog with the 3 buttons with 3, 4
or 5 layers that I see in the snapshot.
This is the content of nero_log.txt after starting the program,
selecting BlocksTower, clicking Start, clicking Start again:


2011-Dec-05 20:31:51.358502 (M) [scripting] scripting engine
initialized
2011-Dec-05 20:31:51.364503 (M) Ignoring messages of type: game
2011-Dec-05 20:31:51.368503 (M) Ignoring messages of type: ai.tick
2011-Dec-05 20:31:51.372503 (M) Starting OpenNero
2011-Dec-05 20:31:57.502854 (M) [ai] AI Engine disabled
2011-Dec-05 20:31:57.507854 (M) [scripting] scripting engine
initialized
2011-Dec-05 20:31:57.662863 (M) [render] Added terrain with heightmap:
data/terrain/terrain-heightmap-flat.bmp
2011-Dec-05 20:31:57.670863 (M) [render] Dim: (960, 0, 960)
2011-Dec-05 20:31:57.675864 (M) [render] Volume: 0
2011-Dec-05 20:31:57.772869 (M) [python] Creating TowerMod
2011-Dec-05 20:31:57.778869 (M) [render] Loaded animated mesh data/
shapes/cube/white_cube.obj with custom scale (2 2 2)
2011-Dec-05 20:31:57.787870 (M) [render] Dim: (4, 4, 4)
2011-Dec-05 20:31:57.792870 (M) [render] Volume: 64
2011-Dec-05 20:31:57.797871 (M) [python] CreateGui
2011-Dec-05 20:31:57.802871 (M) [python] Speedup set to 0
2011-Dec-05 20:31:57.806871 (M) [python] Speedup set to 0.0
2011-Dec-05 20:32:15.144863 (M) [python] Starting Problem reduction
2011-Dec-05 20:32:15.149863 (M) [ai] AI Engine disabled
2011-Dec-05 20:32:15.152863 (M) [python] CLEANUP
2011-Dec-05 20:32:15.256869 (M) [render] Loaded animated mesh data/
shapes/steve/steve_red_unarmed.md2 with custom scale (0.2 0.2 0.2)
2011-Dec-05 20:32:15.266870 (M) [render] Dim: (2.61202, 3.00653,
1.63514)
2011-Dec-05 20:32:15.271870 (M) [render] Volume: 12.841
2011-Dec-05 20:32:15.276870 (M) [ai] AI Engine enabled
2011-Dec-05 20:32:16.005912 (M) [python] Traceback (most recent call
last):
File "C:\OpenNERO\BlocksTower\agent.py", line 96, in start
self.display_planner()
File "C:\OpenNERO\BlocksTower\agent.py", line 79, in display_planner
subproc = subprocess.Popen(['python', 'BlocksTower/
recursive_solver.py'], stdout=subprocess.PIPE)
File "C:\Python27\Lib\subprocess.py", line 679, in __init__
errread, errwrite)
File "C:\Python27\Lib\subprocess.py", line 893, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
2011-Dec-05 20:32:16.055915 (M) [render] Loaded animated mesh data/
shapes/cube/blue_cube.obj with custom scale (1 1 1)
2011-Dec-05 20:32:16.069916 (M) [render] Dim: (2, 2, 2)
2011-Dec-05 20:32:16.073916 (M) [render] Volume: 8
2011-Dec-05 20:32:16.080916 (M) [render] Loaded animated mesh data/
shapes/cube/green_cube.obj with custom scale (1 1 1)
2011-Dec-05 20:32:16.090917 (M) [render] Dim: (2, 2, 2)
2011-Dec-05 20:32:16.094917 (M) [render] Volume: 8
2011-Dec-05 20:32:16.101917 (M) [render] Loaded animated mesh data/
shapes/cube/yellow_cube.obj with custom scale (1 1 1)
2011-Dec-05 20:32:16.111918 (M) [render] Dim: (2, 2, 2)
2011-Dec-05 20:32:16.117918 (M) [render] Volume: 8
2011-Dec-05 20:32:16.122919 (M) [python] Initialized TowerEnvironment
2011-Dec-05 20:32:16.127919 (M) [python] init_rot: 0 0 0 <class
'OpenNero.Vector3f'>
2011-Dec-05 20:34:02.516004 (M) [python] Deleting TowerMod
2011-Dec-05 20:34:02.522004 (M) [ai] AI Engine disabled
2011-Dec-05 20:34:02.526005 (M) [python] CLEANUP
2011-Dec-05 20:34:02.532005 (M) [scripting] scripting engine
initialized
2011-Dec-05 20:34:07.510290 (M) [ai] AI Engine disabled
2011-Dec-05 20:34:07.515290 (M) [scripting] scripting engine
initialized
2011-Dec-05 20:34:07.649298 (M) [render] Added terrain with heightmap:
data/terrain/terrain-heightmap-flat.bmp
2011-Dec-05 20:34:07.657298 (M) [render] Dim: (960, 0, 960)
2011-Dec-05 20:34:07.661298 (M) [render] Volume: 0
2011-Dec-05 20:34:07.667299 (M) [python] Creating TowerMod
2011-Dec-05 20:34:07.672299 (M) [render] Loaded animated mesh data/
shapes/cube/white_cube.obj with custom scale (2 2 2)
2011-Dec-05 20:34:07.681299 (M) [render] Dim: (4, 4, 4)
2011-Dec-05 20:34:07.686300 (M) [render] Volume: 64
2011-Dec-05 20:34:07.691300 (M) [python] CreateGui
2011-Dec-05 20:34:07.696300 (M) [python] Speedup set to 0
2011-Dec-05 20:34:07.699300 (M) [python] Speedup set to 0.0
2011-Dec-05 20:34:30.148585 (M) [python] Starting Problem reduction
2011-Dec-05 20:34:30.152585 (M) [ai] AI Engine disabled
2011-Dec-05 20:34:30.156585 (M) [python] CLEANUP
2011-Dec-05 20:34:30.162585 (M) [render] Loaded animated mesh data/
shapes/steve/steve_red_unarmed.md2 with custom scale (0.2 0.2 0.2)
2011-Dec-05 20:34:30.172586 (M) [render] Dim: (2.67086, 3.60136,
2.10188)
2011-Dec-05 20:34:30.177586 (M) [render] Volume: 20.2174
2011-Dec-05 20:34:30.183587 (M) [ai] AI Engine enabled
2011-Dec-05 20:34:30.586610 (M) [python] Traceback (most recent call
last):
File "C:\OpenNERO\BlocksTower\agent.py", line 96, in start
self.display_planner()
File "C:\OpenNERO\BlocksTower\agent.py", line 79, in display_planner
subproc = subprocess.Popen(['python', 'BlocksTower/
recursive_solver.py'], stdout=subprocess.PIPE)
File "C:\Python27\Lib\subprocess.py", line 679, in __init__
errread, errwrite)
File "C:\Python27\Lib\subprocess.py", line 893, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
2011-Dec-05 20:34:30.632612 (M) [render] Loaded animated mesh data/
shapes/cube/blue_cube.obj with custom scale (1 1 1)
2011-Dec-05 20:34:30.640613 (M) [render] Dim: (2, 2, 2)
2011-Dec-05 20:34:30.645613 (M) [render] Volume: 8
2011-Dec-05 20:34:30.651613 (M) [render] Loaded animated mesh data/
shapes/cube/green_cube.obj with custom scale (1 1 1)
2011-Dec-05 20:34:30.660614 (M) [render] Dim: (2, 2, 2)
2011-Dec-05 20:34:30.664614 (M) [render] Volume: 8
2011-Dec-05 20:34:30.670614 (M) [render] Loaded animated mesh data/
shapes/cube/yellow_cube.obj with custom scale (1 1 1)
2011-Dec-05 20:34:30.681615 (M) [render] Dim: (2, 2, 2)
2011-Dec-05 20:34:30.686615 (M) [render] Volume: 8
2011-Dec-05 20:34:30.691616 (M) [python] Initialized TowerEnvironment
2011-Dec-05 20:34:30.697616 (M) [python] init_rot: 0 0 0 <class
'OpenNero.Vector3f'>
2011-Dec-05 20:34:32.833738 (M) [python] Deleting TowerMod
2011-Dec-05 20:34:32.838738 (M) [ai] AI Engine disabled
2011-Dec-05 20:34:32.842739 (M) [python] CLEANUP
2011-Dec-05 20:34:32.847739 (M) [scripting] scripting engine
initialized
2011-Dec-05 20:34:35.079867 (M) [ai] AI Engine disabled
2011-Dec-05 20:34:35.091867 (M) Killing OpenNero

Stefano

unread,
Dec 5, 2011, 9:55:00 PM12/5/11
to opennero

Igor Karpov

unread,
Dec 5, 2011, 10:46:28 PM12/5/11
to open...@googlegroups.com
We also now have a 64-bit build - hopefully that will make it easier
for the windows 64 bitters.
Reply all
Reply to author
Forward
0 new messages