3rd party python packages

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 2709
Joined: Mon Dec 14, 2015 5:05 am
Location: Your monitor
Contact:

3rd party python packages

#1 Post by Imperf3kt » Tue Nov 19, 2019 12:27 am

I'm trying to install RPi.GPIO which is a pure python library used for controlling the general purpose input output pins on a Raspberry Pi.

I'm reading through the documentation and I'm having some difficulty deciphering the cryptic lore, specifically the part about where to install the module.
Ren'Py can import pure-Python modules and packages. First-party modules and packages – ones written for the game – can be placed directly into the game directory. Third party packages can be placed into the game/python-packages directory.

Can anyone give me some pointers what this actually means?
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Todo list:
Actually finish a project

philat
Eileen-Class Veteran
Posts: 1653
Joined: Wed Dec 04, 2013 12:33 pm
Contact:

Re: 3rd party python packages

#2 Post by philat » Tue Nov 19, 2019 4:01 am

Like, what it says? Create a folder python-packages under game and install the package to that folder. For instance, I have dropped numpy into that folder before and can use it with import numpy.

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 2709
Joined: Mon Dec 14, 2015 5:05 am
Location: Your monitor
Contact:

Re: 3rd party python packages

#3 Post by Imperf3kt » Tue Nov 19, 2019 4:55 am

thanks, just wanted some second opinion about it before I got home to try.

I wasn't sure if it meant the renpy game folder or the project's game folder and why there's a distinction between first and third party modules.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Todo list:
Actually finish a project

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 2709
Joined: Mon Dec 14, 2015 5:05 am
Location: Your monitor
Contact:

Re: 3rd party python packages

#4 Post by Imperf3kt » Thu Nov 21, 2019 5:46 pm

It looks like RPI.GPIO may not be able to be used anyway :(
https://www.raspberrypi.org/forums/view ... 2&t=257353

I appreciate the help I did receive.

Back to the drawing bang head here board
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Todo list:
Actually finish a project

Post Reply

Who is online

Users browsing this forum: Ace94, Google [Bot]