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: 3791
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

3rd party python packages

#1 Post by Imperf3kt »

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.

Current project: GGD Mentor

Twitter

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

Re: 3rd party python packages

#2 Post by philat »

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: 3791
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: 3rd party python packages

#3 Post by Imperf3kt »

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.

Current project: GGD Mentor

Twitter

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

Re: 3rd party python packages

#4 Post by Imperf3kt »

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.

Current project: GGD Mentor

Twitter

Post Reply

Who is online

Users browsing this forum: No registered users