Search code examples
pythonpython-2.6

Using a python 2.6 package in python 3.10


Background

I want to learn python through creating an isometric RPG computer game. To make it a little more fun at the start, I thought I would instead of starting from scratch, alter another very basic isometric RPG and bit by bit make it my own*. I thought this game would be a suitable candidate. The problem is that it was made with python 2.6. I have already converted all the code to python 3, but when starting the debug process, I encountered the issue that the package ocempgui does not exist anymore. I cannot seem to install it with either pip or conda, because it is not in the repositories.

Question

Is there any way that I can use the ocempgui package in python 3? (link)

PS

If someone knows another basic isometric RPG written in python 3, please let me know.

*Some of you might say that it is better to start from scratch, but I think it is more important to stay motivated to work on it.


Solution

  • Well unless you're going to find the source code for that library ocempgui and rebuild it to run in your current version of python you're out of luck. Library versioning is a large portion of working in any language python included.