Skip to content
This repository was archived by the owner on Nov 20, 2025. It is now read-only.

WIP: Upgrade to Python 3#86

Draft
leikin wants to merge 1 commit into
eu07:masterfrom
leikin:python3
Draft

WIP: Upgrade to Python 3#86
leikin wants to merge 1 commit into
eu07:masterfrom
leikin:python3

Conversation

@leikin

@leikin leikin commented Aug 26, 2025

Copy link
Copy Markdown

Alright, I started working on this, but then Life Happened (and the attention span of a dog), so I'm just leaving it here for now. Maybe someone picks it up (myself or otherwise), maybe someone tells me I'm wasting my time ;)

Getting Python 2.7 on Linux is getting increasingly annoying, and I doubt it's going to get improve. I wanted to see how much work would have to be done to update MaSzyna to Python 3. Turns out---not much, but the devil is in the details.

For now, I've got the simulator to build with GCC. Haven't tried building on Windows yet, I have to get a VM for that and install Visual Studio. Which I kind of dread, but YGDWYGD. I've left a few TODOs in the comments, too.

I've also tried porting a few of the scripts to Python 3. Thankfully, most of them are stupid simple, so it was mostly a matter of changing the print syntax and replacing sys.maxint with sys.maxsize.

This commit mostly just fixes compiler errors that popped out after
changing Python version.  I managed to get the radiotelephone display
(scripts/koliber.py) working after converting the scripts to Python 3.

I haven't tried to build this on Windows yet.  It probably won't work.
@Hirek193

Hirek193 commented Sep 5, 2025

Copy link
Copy Markdown
Contributor

I've tried converting python version from 2.7 to 3.13 - finished it but many simulator-side scripts needs rewrite as some pillow functions changed it's behaviour.

Here BR186 screens running on python 3.13:
image

Basically this idea died as nobody wants to rewrite 130+ scripts which are currently working under python 2.7.

@leikin

leikin commented Sep 11, 2025

Copy link
Copy Markdown
Author

Boring as it may be, I feel like upgrading the scripts is the easiest part. I'd be happy to tackle it, as it won't require too much focus (again, attention span of a puppy ;)). I'll need some guidance in the beginning---I already have cloned the SVN repository, but I had trouble starting the simulator (also it took very long, because I have no idea (yet) how to convert t3d to e3d).

For now, I made a local Git repository on top of my clone of the SVN and started versioning the upgraded Python scripts in that.

@Hirek193

Copy link
Copy Markdown
Contributor

DM me on discord - I'll provide you with all the necessary information. My username: hirek_exe

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants