Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

AppGameKit for Python

Create games using AppGameKit and Python! 路 By Fascimania

libpython issue on PyCharm with Ubuntu 20.04 and Python 3.8

A topic by Bozzanator created Jun 07, 2021 Views: 298 Replies: 8
Viewing posts 1 to 2

Good morning all

Up front, I apologise for any noobie nonsensical questions I may ask.


I am running Ubuntu 20.04, which has Python 3.8.5 already installed. This is a fresh install, whereby I haven't installed any other versions of Python, however, when I try to run just a basic "Hello world" in PyCharm (AGK files copied into project folder) I keep receiving an import error advising me that libpython3.7 so (or something along those lines) package is unavailable. I cannot figure out why it's looking for 3.7 though. I have tried running in a virtual environment, and tried different interpreters, but all with the same error message.


Does anyone have any advice as to what I could investigate further?


Thanking you all, and wishing you a fantastic day further.


Stay safe


Bozz

Developer

Hi Bozzanator, I'll try setting up a Ubuntu 20.04 VM and see whether I can duplicate.  I have an idea about what the problem could be and it's not on your side of things.  This project shouldn't be restricted to 3.7.

Hi Fascimania.


Thanks for your input and willingness to assist, it's greatly appreciated. I was a bit surprised, as it was a fresh OS install, so I know there shouldn't be any Python conflicts. I've had the classic AGK that I've played with for a while, but am looking to try learn some python, so this project looks bloody perfect for my aspirations 馃憤馃徎馃榾


I'll await your thoughts and feedback when you have a chance

Developer

I was able to duplicate and after many hours of digging through things, I think I've figured out how to make it work as expected with Python 3.4 and up on Linux.  The Windows module worked properly.  The Linux module wasn't compiled correctly.

Will be testing a bit more before posting.

Sounding good, sounding good, and again, just thanks for all the time and effort you're spending on this.

Developer (1 edit)

Would you try this build for me?

  1. Open your appgamekit/_x64 folder
  2. Delete appgamekit.so or rename it so it has a different extension.
  3. Download this file and place it in that folder: <link removed>

This works for me on Ubuntu 20.04 with Python 3.8.5 and Ubuntu 18.04 with Python 3.6.9.

Hi Fascimania

I must admit, it is an unusual user name ;).

Ok, feedback from my side...... SUCCESS. I ran your "Hello World" example, and up pops the "emulator" displaying the text. I'm hoping to start exploring AGK for Python this weekend, and will report back with any issues, but so far other than the import issue, all is running exactly as you have indicated in your tutorials that it should.

Please stay safe

Regards

Bozzanator

Developer

Great!  Glad to hear this.  Thanks for bringing this problem to my attention so it could be fixed.

Only a pleasure, and thank you for your work. I'm looking forward to using it.