Is there a step by step startup guide?

57 views
Skip to first unread message

Stefano

unread,
Dec 5, 2011, 12:08:44 AM12/5/11
to opennero
In my computer I have Win 7 64 bit and VS2010. In the last 30 years I
programmed in many different languages, environments, operating
systems, but I never used Python.
I spent 2 hours reading all the pages about installation,
prerequisites, building and running Opennero, I installed all the
prerequisites, now I have ActivePython, CMake, VS2010,
OpenNERO-2011.12.04-win32.zip, but I still don't know what my
expectations should be.
Is it going to be a stand alone environment?
Is it going to run inside ActivePython?
Is it going to run inside VS2010?
Do I need to build it with CMake?

When I run OpenNERO.exe I get an error message for the missing
python27.dll.
When I use CMake to build I get an error message for the missing
CMakeLists.txt.

Is there a quick start guide for people new to Python?

Thanks,
Stefano

Igor Karpov

unread,
Dec 5, 2011, 12:19:08 AM12/5/11
to open...@googlegroups.com
If you are using the binary we built, you really have to use the same
version of Python we linked against, which is 32-bit Python 2.7.2. If
you are building your own version, any python 2.x should work, but
because we are using boost-python libraries to embed, the boost
library has to be built to link with it. I have only had experience
installing python 2.7.2 and then boost libraries from boostpro.org,
that combination seems to work fine.

If you are building your own binary, you should be able to follow
directions here:

http://code.google.com/p/opennero/wiki/BuildingOpenNero

If something on there is giving you trouble, please either reply to
this email with the specific step you are getting stuck at or post a
comment on that page - either myself or someone else might be able to
help you.

Sorry the system is so complicated to install - it is always a
headache to support so many platforms that are constantly changing.
Hopefully together we can figure out these steps.

Stefano

unread,
Dec 5, 2011, 12:46:42 AM12/5/11
to opennero
Thanks for your quick answer.

But you start with an "if", and I don't know the answer.
Do I need to build?
Should I use the binary?
What is the difference?

I started from the prerequisites for Windows section on your link.
I installed cmake, I already had VS2010, I installed the boost
libraries, I installed ActivePython 2.7 (I have the folder C:
\Python27), I installed wxPython (import wx works in ActivePython).

I think so far everything works the way it should. The only way to
test it is the "import wx" that I found in one of the many pages I
read, and that works.
What is the next step?
The CMake doesn't work, the OpenNero.exe doesn't work, OpenNERO.sln
doesn't exist, what do I do now?

Shawn Garner

unread,
Dec 5, 2011, 9:30:25 AM12/5/11
to open...@googlegroups.com
The problem is the 64 bit python and 64 bit wxPython.
I had same issue. You need to uninstall wxPython and uninstall python.
Then install 32 bit python and 32 bit wxPython and the exe in OpenNero
should work fine.

I tried all day yesterday trying to build a 64 bit version of boost
libraries with CMake and then use it in OpenNero with CMake
I had two boost libraries that wouldn't even build with CMake. And
then I couldn't figure out how to make CMake find my boost libraries
and stop complaining.
CMake for OpenNero wouldn't let me generate a Visual Studio 10 64 bit
solution file until I resolved the boost libraries so your page is not
very helpful as it says to link in the boost after opening in Visual
Studio with the solution file.
I tried updating paths in the CMake to point to boost locations.
It would be nice if it was a little more detailed with the step to
step. I haven't done anything but Java for about 8 years so this all
seems insane to me.

Shawn

bill.mybiz

unread,
Dec 5, 2011, 9:31:23 AM12/5/11
to opennero
The short of it that worked for me (I get their console):
1. Uninstall 64-bit version of python 2.7.2 if you have it.
2. Install 32-bit version of python 2.7.2 (http://www.python.org/ftp/
python/2.7.2/python-2.7.2.msi)
3. Download (DL only, see next step) wxPython for Windows (unicode is
what I did as per recommendations:
http://downloads.sourceforge.net/wxpython/wxPython2.8-win32-unicode-2.8.12.1-py27.exe)
4. Install wxPython with "Run as Administrator" (*****IMPORTANT******)
5. Right-click on OpenNERO.exe > Properties > Compatibility > Run As
Administrator.
6. Execute OpenNERO.exe

The long of it:

Ahhhhh Jeeez. I also have Win 7 64-bit, and I only have a little
experience programming with python and more experience with VS world/
Delphi. I already had the Python 2.7 64-bit version installed. I
also ran into the "missing python.dll" message. That is resolved with
changing to the 32-bit version of python 2.7.2. To do this you have
to uninstall python 64-bit and install the 32-bit version. It will
NOT work with the 64-bit version. If you already had wxPython
installed, you are going to have to **reinstall** wxPython. But make
sure that you run it as administrator first, otherwise at the end it
does something with some scripts (configures or compiles, I don't
remember) that won't work because it requires elevation. Once you
have successfully installed wxPython (no errors), you can get to
running the OpenNERO executable. However, if you run it without
elevating privelages the console will freak out and it won't start
properly. So, right-click on the OpenNERO.exe file, go to Properties
> Compatibility, and make sure the "Run as Administrator" option is
checked. With all of that done, I am now able to at least run it to
the point of being able to add little teams and watch them go at it
like in the demo video on the OpenNERO page. Whew! Nothing to it.

-Bill

Stefano

unread,
Dec 5, 2011, 8:03:36 PM12/5/11
to opennero
It worked!

I uninstalled:
- CMake (described as prerequisite, but according to Bill not
required)
- Boostpro (described as prerequisite, but according to Bill not
required)
- ActivePython 64 bit
- Python 64 bit
- wxPython 64 bit

Then I:
- Installed http://www.python.org/ftp/python/2.7.2/python-2.7.2.msi
- Downloaded
http://sourceforge.net/projects/wxpython/files/wxPython/2.8.12.1/wxPython2.8-win32-unicode-2.8.12.1-py27.exe/download
- Ran the file just installed as administrator
- I checked the "run as administrator" property on OpenNERO.exe

Thanks,
Stefano


On Dec 5, 8:31 am, "bill.mybiz" <bill.my...@gmail.com> wrote:
> The short of it that worked for me (I get their console):
> 1. Uninstall 64-bit version of python 2.7.2 if you have it.
> 2. Install 32-bit version of python 2.7.2  (http://www.python.org/ftp/
> python/2.7.2/python-2.7.2.msi)
> 3. Download (DL only, see next step) wxPython for Windows (unicode is

> what I did as per recommendations:http://downloads.sourceforge.net/wxpython/wxPython2.8-win32-unicode-2...)

bill.mybiz

unread,
Dec 5, 2011, 8:17:29 PM12/5/11
to opennero
Weeeeeeeeeeeeeeeee dogieeeeee heh! Glad it helped. I think those
prereqs are for building your own from source. I have a hard enough
time matching up versions of precompiled binaries, let alone the
version matching problems with source libraries! LOL

On Dec 5, 7:03 pm, Stefano <stefano.me...@gmail.com> wrote:
> It worked!
>
> I uninstalled:
> - CMake (described as prerequisite, but according to Bill not
> required)
> - Boostpro (described as prerequisite, but according to Bill not
> required)
> - ActivePython 64 bit
> - Python 64 bit
> - wxPython 64 bit
>
> Then I:
> - Installedhttp://www.python.org/ftp/python/2.7.2/python-2.7.2.msi

> - Downloadedhttp://sourceforge.net/projects/wxpython/files/wxPython/2.8.12.1/wxPy...

Stefano

unread,
Dec 5, 2011, 9:08:22 PM12/5/11
to opennero
Mmmmh... It works, but I'm having problems with some mods.
Maze and Roomba work well, but the others start, then they don't find
a file, I think it's the file that shows the menu.
Did you have this kind of problems?

Igor Karpov

unread,
Dec 5, 2011, 9:26:50 PM12/5/11
to open...@googlegroups.com
NERO and Blocks mods start a separate Python process to use wx (which
has to run as the central thread). Most likely what you are seeing is
that opennero cannot find your python executable. Make sure your
python directory is added to %PATH% Environment Variable and that you
can run python from command line and import wx from it.

Stefano

unread,
Dec 5, 2011, 9:53:51 PM12/5/11
to opennero
Found the problem.
Python runs and imports wx as myself, but doesn't as administrator.
I removed the "run as administrator" from opennero.exe and now
everything seems to work well.
If I will see something weird happening I will put it back and change
the PATH for the administrator.

Thanks for your help, and for your work,
Stefano

Reply all
Reply to author
Forward
0 new messages