Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [SOLVED] AGK For Python - Error: No module named 'appgamekit._x64'

Author
Message
Qugurun
Valued Member
9
Years of Service
User Offline
Joined: 8th Dec 2014
Playing: AppGameKit
Posted: 29th May 2022 16:49 Edited at: 29th May 2022 17:52
https://fascimania.itch.io/appgamekit-for-python

Windows 10 x64
Python 3.9.1

Hi! Using the example for pyinstaller from the examples folder, after transferring the appgamekit folder there beforehand, after assembly I get this message. Help with solving the problem.


adambiser, help!

Attachments

Login to view attachments

The author of this post has marked a post as an answer.

Go to answer

adambiser
AGK Developer
8
Years of Service
User Offline
Joined: 16th Sep 2015
Location: US
Posted: 31st May 2022 04:49 Edited at: 31st May 2022 06:38
This post has been marked by the post author as the answer.
Hey, I recently discovered this problem, too.

Take a look at this example:
https://github.com/adambiser/ascension/blob/master/onedir.spec
This line in particular:

That points to a folder where I keep my hooks and I made one for appgamekit:
https://github.com/adambiser/ascension/blob/master/_pyinstaller/hook-appgamekit.py
(file name is important!)

That hook:
1) Makes appgamekit available for import,
2) Adds the "media" folder and Plugins folder (if available) to the dist folder
3) Also adds "icon.ico" if available

Essentially, add and use that hook file and it should include everything you need for you.

EDIT:
Also, for AppGameKit for Python problems, it would be better to post at https://fascimania.itch.io/appgamekit-for-python
The TGC forum doesn't email notify me for some reason even though I have it set up to do so.
Qugurun
Valued Member
9
Years of Service
User Offline
Joined: 8th Dec 2014
Playing: AppGameKit
Posted: 31st May 2022 11:46
Thank you for the prompt reply and thank you very much for solving the issue. AppGameKit for python is amazing!
adambiser
AGK Developer
8
Years of Service
User Offline
Joined: 16th Sep 2015
Location: US
Posted: 31st May 2022 13:24
I'm glad that helped you solve your problem and happy that you're enjoying AppGameKit for Python.
Qugurun
Valued Member
9
Years of Service
User Offline
Joined: 8th Dec 2014
Playing: AppGameKit
Posted: 31st May 2022 13:25
adambiser, do you plan to update the core to a new version? Or is there no need?
adambiser
AGK Developer
8
Years of Service
User Offline
Joined: 16th Sep 2015
Location: US
Posted: 31st May 2022 14:46 Edited at: 31st May 2022 14:47
I rely on the AGKTier2 code found on github.
They haven't updated it since 2021.06.14.
There are a couple of commits since then, one containing TextShader commands that aren't actually in AppGameKit yet, and a virtually empty commit adding unnecessary binary files.
I asked them about it, but haven't heard back.

EDIT:
I'd have to check, but I don't recall anything being added since 2021.06.14 that would actually be compiled into AppGameKit for Python.

Login to post a reply

Server time is: 2024-04-25 07:33:18
Your offset time is: 2024-04-25 07:33:18