DebugConsole on Ubuntu 22.04
Posted: Wed Oct 18, 2023 7:33 pm
Hi, First thank you to everyone who makes Oolite possible, even if you make the tea.
I'm new so about me: I was a programmer/developer/software engineer writing my first code (basic and assembler) on an Acorn Atom in 1981.
I played the BBC version then Commodore 64 version when they first came out. I wrote Elite Cheat for the CBM64 to mangle the saved files on floppy disk.
I have played Oolite for many year off and on, but now I have the time to hopefully add something to it. I decided to play around with some oxp development and therefore was looking at the dev version 1.90-test.
I'm in Ubuntu Linux (22.04), 4 core AMD 3.80Ghz, NVIDIA GeForce RTX 2070, 32GB RAM and TBs of free spinning rust. Using Logitec rumble pad. Oolite runs very well.
So what I've read and tried so far. Downloaded and installed the dev version oolite-1.90-test.linux-x86_64.run. Only problem was it overwrites where the non-dev version goes. Tried the switch "--target NewDirectory Extract in NewDirectory" but that seemed to be ignored. Oh well, not to worry.
Found the link for Debug.oxp got that installed in AddOns. https://wiki.alioth.net/index.php/Debug_OXP that page also led to https://wiki.alioth.net/index.php/Oolit ... P_protocol.
Installed the modules for: blt python-tk tk8.6 (tk8.5 is no longer available on Ubuntu)
Downloaded OoDebugConsole1.6.zip from https://github.com/OoliteProject/oolite ... e/releases and the extracted the DebugConsole.zip (python version) into the Aplications/DebugConsole. As it seemed like a good place to put it.
When trying to execute DebugConsle.py it had Windows CRLF endings so I converted those to Linux newlines.
I received this error:
File "~GNUstep/Applications/DebugConsole/DebugConsole.py", line 438
app.listener=reactor.listenTCP(tryPort, factory)
^
IndentationError: expected an indented block
Removed that install as I saw there was a git repo so I cloned that into Applications/oolite-debug-console, reconverted the line endings.
Hmm same error. Seems that "try/except" block got messed up with the CRLF convert and save. (I think the original file had <TAB>s in the code aaahh!)
Then I needed twisted . Got that with apt install python3-twisted and get the same error as it twisted is not found.
Traceback (most recent call last):
File "~/GNUstep/Applications/oolite-debug-console/DebugConsole.py", line 20, in <module>
from ooliteConsoleServer import *
File "~/GNUstep/Applications/oolite-debug-console/ooliteConsoleServer/__init__.py", line 18, in <module>
raise ImportError("ooliteConsoleServer requires Twisted (http://twistedmatrix.com/)")
ImportError: ooliteConsoleServer requires Twisted (http://twistedmatrix.com/)
I did find a thread here viewtopic.php?f=9&t=4862 by DaddyHoggy and answered by JensAyton. With some bullet points to follow. Basically what I have already done.
I lost track of where I went from there but it seemed like a rabbit hole. I found a few sites on installing twisted and it's dependencies with pip. Tried those out too.
I need a little help as I cannot see a solution to get the console running. I have found nothing on the BB or wiki but may well have missed something as the documentation is extensive. If I've missed one or more web pages please point me at them.
Thanks for reading this far.
I'm new so about me: I was a programmer/developer/software engineer writing my first code (basic and assembler) on an Acorn Atom in 1981.
I played the BBC version then Commodore 64 version when they first came out. I wrote Elite Cheat for the CBM64 to mangle the saved files on floppy disk.
I have played Oolite for many year off and on, but now I have the time to hopefully add something to it. I decided to play around with some oxp development and therefore was looking at the dev version 1.90-test.
I'm in Ubuntu Linux (22.04), 4 core AMD 3.80Ghz, NVIDIA GeForce RTX 2070, 32GB RAM and TBs of free spinning rust. Using Logitec rumble pad. Oolite runs very well.
So what I've read and tried so far. Downloaded and installed the dev version oolite-1.90-test.linux-x86_64.run. Only problem was it overwrites where the non-dev version goes. Tried the switch "--target NewDirectory Extract in NewDirectory" but that seemed to be ignored. Oh well, not to worry.
Found the link for Debug.oxp got that installed in AddOns. https://wiki.alioth.net/index.php/Debug_OXP that page also led to https://wiki.alioth.net/index.php/Oolit ... P_protocol.
Installed the modules for: blt python-tk tk8.6 (tk8.5 is no longer available on Ubuntu)
Downloaded OoDebugConsole1.6.zip from https://github.com/OoliteProject/oolite ... e/releases and the extracted the DebugConsole.zip (python version) into the Aplications/DebugConsole. As it seemed like a good place to put it.
When trying to execute DebugConsle.py it had Windows CRLF endings so I converted those to Linux newlines.
I received this error:
File "~GNUstep/Applications/DebugConsole/DebugConsole.py", line 438
app.listener=reactor.listenTCP(tryPort, factory)
^
IndentationError: expected an indented block
Removed that install as I saw there was a git repo so I cloned that into Applications/oolite-debug-console, reconverted the line endings.
Hmm same error. Seems that "try/except" block got messed up with the CRLF convert and save. (I think the original file had <TAB>s in the code aaahh!)
Then I needed twisted . Got that with apt install python3-twisted and get the same error as it twisted is not found.
Traceback (most recent call last):
File "~/GNUstep/Applications/oolite-debug-console/DebugConsole.py", line 20, in <module>
from ooliteConsoleServer import *
File "~/GNUstep/Applications/oolite-debug-console/ooliteConsoleServer/__init__.py", line 18, in <module>
raise ImportError("ooliteConsoleServer requires Twisted (http://twistedmatrix.com/)")
ImportError: ooliteConsoleServer requires Twisted (http://twistedmatrix.com/)
I did find a thread here viewtopic.php?f=9&t=4862 by DaddyHoggy and answered by JensAyton. With some bullet points to follow. Basically what I have already done.
I lost track of where I went from there but it seemed like a rabbit hole. I found a few sites on installing twisted and it's dependencies with pip. Tried those out too.
I need a little help as I cannot see a solution to get the console running. I have found nothing on the BB or wiki but may well have missed something as the documentation is extensive. If I've missed one or more web pages please point me at them.
Thanks for reading this far.