OOLiteInfo v0.2 Released.

General discussion for players of Oolite.

Moderators: winston, another_commander

User avatar
maaarcooose
---- E L I T E ----
---- E L I T E ----
Posts: 397
Joined: Sun May 29, 2011 9:36 pm
Location: Devon, UK
Contact:

OOLiteInfo v0.2 Released.

Post by maaarcooose »

I have now re-written OOliteInfo to be cross platform, using Python and wxwidgets.

Please download and report and bugs/problems to me.

Enjoy.

http://www.theramist.co.uk/blog/?p=113


!m!
Trading computers and writing stuff....
Website: http://www.theramist.co.uk/
OOliteInfo: http://www.theramist.co.uk/ooliteinfo/oo.php
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Re: OOLiteInfo v0.2 Released.

Post by Eric Walch »

It works well on my mac under OSX 10.6.

Not initially because the code throws an error about 32 bits mode. The error report points to the manual how to set python from 64 bit, back to 32 bit mode:

Code: Select all

defaults write com.apple.versioner.python Prefer-32-Bit -bool yes
After that it works perfect with me.
m4r35n357
---- E L I T E ----
---- E L I T E ----
Posts: 296
Joined: Wed Jan 19, 2011 4:00 pm

Re: OOLiteInfo v0.2 Released.

Post by m4r35n357 »

maaarcooose wrote:
Please download and report and bugs/problems to me.
!m!
Runs OK on an Ubuntu Natty (11.04) system after installing python-wxgtk2.8 and python-numpy. Nice one, thanks!
User avatar
Gimi
---- E L I T E ----
---- E L I T E ----
Posts: 2073
Joined: Tue Aug 29, 2006 5:02 pm
Location: Norway

Re: OOLiteInfo v0.2 Released.

Post by Gimi »

maaarcooose wrote:
I have now re-written OOliteInfo to be cross platform, using Python and wxwidgets.
Please download and report and bugs/problems to me.
Enjoy.
http://www.theramist.co.uk/blog/?p=113
!m!
I'm somewhat unfamiliar with Python, and I'm having problems running this on Windows 7, 64 bit.
I have tried using both the 2.7.1 and the 3.2.2 64bit versions of Python. I suspect that I need the 32 bit version and will try that now, or doesn't it matter. If not, Eric, where do I put that line of yours if I'm getting the same problem on Windows.

Maaarcooose, what version did you develop this with? Might be useful to include Python requirements in the zip-file and also on you web page.

Edit: Tried them all, and no joy. Py 2.7 & Py 3.2, 32bit and 64bit. Hmm. I'll test some more.
Last edited by Gimi on Wed Nov 23, 2011 8:49 am, edited 1 time in total.
"A brilliant game of blasting and trading... Truly a mega-game... The game of a lifetime."
(Gold Medal Award, Zzap!64 May 1985).
User avatar
Gimi
---- E L I T E ----
---- E L I T E ----
Posts: 2073
Joined: Tue Aug 29, 2006 5:02 pm
Location: Norway

Re: OOLiteInfo v0.2 Released.

Post by Gimi »

Ok, I'm exploring and learning a little.

I get a "SyntaxError, Invalid Syntax" on this piece of code. No idea why, since it works for other users.

Code: Select all

        # Add the galaxy number indicator
        self.galaxyIndicator = wx.StaticText(self, wx.TE_READONLY,"Galaxy Number: ")
        font1 = wx.Font(10,wx.SWISS, wx.NORMAL, wx.NORMAL, False, u'Arial')
        self.galaxyIndicator.SetFont(font1)
        self.gButtons.Add(self.galaxyIndicator,0, wx.EXPAND)
It's the apostrophe after u'Ariel' that is highlighted in red.
When I remove it, it all goes even more wrong.

Edit: Ok, done some more testing (and learning). I get all sorts of errors and missing modules etc, so there is most likely something wrong with my installation or my skill set, the latter being more plusible. Will test more and bring back results.
Last edited by Gimi on Wed Nov 23, 2011 9:09 am, edited 1 time in total.
"A brilliant game of blasting and trading... Truly a mega-game... The game of a lifetime."
(Gold Medal Award, Zzap!64 May 1985).
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Re: OOLiteInfo v0.2 Released.

Post by Eric Walch »

Gimi wrote:
Eric, where do I put that line of your if I'm getting the same prolem on Windows.
On my mac was python 2.5.4 and 2.6.1 installed by default. The script ran on both. The error I get is from the internal libraries:

Code: Select all

ImportError: /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode/wx/_core_.so: no appropriate 64-bit architecture (see "man python" for running in 32-bit mode)
So I guess one of the internal libraries that this script uses was not ported to 64 bit yet. Strange as snow leopard claims to be 64 bit and python was preinstalled.
This could be quite different on an other OS or with a newer version. wxwidges is not needed on the mac as that is integrated in the mac version of python since version 2.5.
User avatar
Gimi
---- E L I T E ----
---- E L I T E ----
Posts: 2073
Joined: Tue Aug 29, 2006 5:02 pm
Location: Norway

Re: OOLiteInfo v0.2 Released.

Post by Gimi »

Thanks Eric. I'll try and test some more. 2.7.1 32bit seems to be the best baseline to test with until I get some more information on Maaarcooose's development environment.
"A brilliant game of blasting and trading... Truly a mega-game... The game of a lifetime."
(Gold Medal Award, Zzap!64 May 1985).
User avatar
maaarcooose
---- E L I T E ----
---- E L I T E ----
Posts: 397
Joined: Sun May 29, 2011 9:36 pm
Location: Devon, UK
Contact:

Re: OOLiteInfo v0.2 Released.

Post by maaarcooose »

I developed it with Python 2.7.2 64bit version and a special wx widgets install for 64bit windows, as there aren't any 64 bit versions on Win7 64 Bit.

The 32bit / 64bit thing shouldn't matter though, it's not a compiled program and once you have wxwidgets installed it should work fine.

I will put up some links on the page to the windows versions of what I've installed, but as yet I haven't had a chance to test on Linux or Mac.

I'll do some tests on Linux and see what gives.

Can anyone with problems let me know what OS, version, Python version and wxwidgets version they are running?

Thanks

!m!
Trading computers and writing stuff....
Website: http://www.theramist.co.uk/
OOliteInfo: http://www.theramist.co.uk/ooliteinfo/oo.php
User avatar
maaarcooose
---- E L I T E ----
---- E L I T E ----
Posts: 397
Joined: Sun May 29, 2011 9:36 pm
Location: Devon, UK
Contact:

Re: OOLiteInfo v0.2 Released.

Post by maaarcooose »

Sorry, there are some windows dependencies to the setup.

I chose the following packages as they were a simple install that all should be able to do.
I'll setup a space on my site with downloads to them all.

Windows Python version 2.7.2 64 bit:
http://www.python.org/ftp/python/2.7.2/ ... .amd64.msi

WXPython 2.8.12.1 64 bit for Python 2.7:
http://downloads.sourceforge.net/wxpyth ... 1-py27.exe

Numpy (forgot about that) 1.6.1 - 64 Bit for Windows 64
It's an unofficial Windows 64 bit build available from:
http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy
Download
numpy-MKL-1.6.1.win-amd64-py2.7.‌exe (Don;t seem to be able to do a direct link to this file)


See how you go.

!m!
Trading computers and writing stuff....
Website: http://www.theramist.co.uk/
OOliteInfo: http://www.theramist.co.uk/ooliteinfo/oo.php
User avatar
maaarcooose
---- E L I T E ----
---- E L I T E ----
Posts: 397
Joined: Sun May 29, 2011 9:36 pm
Location: Devon, UK
Contact:

Re: OOLiteInfo v0.2 Released.

Post by maaarcooose »

Updated website with links to 64 bit windows downloads.

!m!
Trading computers and writing stuff....
Website: http://www.theramist.co.uk/
OOliteInfo: http://www.theramist.co.uk/ooliteinfo/oo.php
User avatar
Kaks
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 3009
Joined: Mon Jan 21, 2008 11:41 pm
Location: The Big Smoke

Re: OOLiteInfo v0.2 Released.

Post by Kaks »

maaarcooose wrote:
Numpy (forgot about that) 1.6.1 - 64 Bit for Windows 64
It's an unofficial Windows 64 bit build available from:
http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy
Download
numpy-MKL-1.6.1.win-amd64-py2.7.‌exe (Don;t seem to be able to do a direct link to this file)
Seems to be

http://www.lfd.uci.edu/~gohlke/pythonli ... -py2.7.exe

but no idea if it's just a temporary address. (for firefox users, look at the downloads list & right click > copy download link)
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
User avatar
Gimi
---- E L I T E ----
---- E L I T E ----
Posts: 2073
Joined: Tue Aug 29, 2006 5:02 pm
Location: Norway

Re: OOLiteInfo v0.2 Released.

Post by Gimi »

Thank you all, downloading all necessary files. Will resume testing when all has been installed.

Edit: With all necessary files installed, all is well on Win7 64bit. Will do the same on my Win7 32bit at home later this evening.
"A brilliant game of blasting and trading... Truly a mega-game... The game of a lifetime."
(Gold Medal Award, Zzap!64 May 1985).
User avatar
Gimi
---- E L I T E ----
---- E L I T E ----
Posts: 2073
Joined: Tue Aug 29, 2006 5:02 pm
Location: Norway

Re: OOLiteInfo v0.2 Released.

Post by Gimi »

Have now got this up and running on my 32bit Win7 machine as well. It's quite cumbersome to get this up and going on windows, requires a lot of Python packages. Seems to be much easier and more elegant on Mac's and Linux. Are Python files difficult to compile into executables on Windows? Will Additional coding be required?
"A brilliant game of blasting and trading... Truly a mega-game... The game of a lifetime."
(Gold Medal Award, Zzap!64 May 1985).
User avatar
maaarcooose
---- E L I T E ----
---- E L I T E ----
Posts: 397
Joined: Sun May 29, 2011 9:36 pm
Location: Devon, UK
Contact:

Re: OOLiteInfo v0.2 Released.

Post by maaarcooose »

Not sure about packing up python stuff.
It's still something I need to learn how to do.

How many packages did you need on 32 bit windows? Should only be python, wxpython and numpy.

When I have a bit more time, I'm going to try making an rpm, deb, dmg, exe and maybe others.
Attraction for the next release.
I'm already thinking about putting in planet images instead of just circles.
I need to have a closer look at the main oolite code to see how the planet image is picked and match up in ooliteinfo.
So many ideas at the moment.


!m!
Trading computers and writing stuff....
Website: http://www.theramist.co.uk/
OOliteInfo: http://www.theramist.co.uk/ooliteinfo/oo.php
User avatar
Gimi
---- E L I T E ----
---- E L I T E ----
Posts: 2073
Joined: Tue Aug 29, 2006 5:02 pm
Location: Norway

Re: OOLiteInfo v0.2 Released.

Post by Gimi »

maaarcooose wrote:
Not sure about packing up python stuff.
It's still something I need to learn how to do.
When I have a bit more time, I'm going to try making an rpm, deb, dmg, exe and maybe others.
Attraction for the next release.
I'm already thinking about putting in planet images instead of just circles.
I need to have a closer look at the main oolite code to see how the planet image is picked and match up in ooliteinfo.
So many ideas at the moment.
!m!
Thanks, and please prioritise functionality and features in OOliteInfo over lazy windoze users like myself. I would much rather have more features. I took it upon myself to get the py version of the debug console to run as well, and that required even more packages and learning what .egg packages are, so I probably have myself to blame.

I like your idea about planet images. If that turns out to be impossible or impractical, just terminating the trade routes underneath the current red circles will make it look at lot tidier when zoomed in. Also, making the circles slightly smaller then they are currently would help.

Good work, this makes my setup look nice when I have this on my right screen, Oolite running in the middle and the Wiki or IRC chat on the right screen. :D
"A brilliant game of blasting and trading... Truly a mega-game... The game of a lifetime."
(Gold Medal Award, Zzap!64 May 1985).
Post Reply