Circuitpython with CPhyton Libraries

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
jjopp02
 
Posts: 1
Joined: Tue Sep 27, 2022 2:00 am

Circuitpython with CPhyton Libraries

Post by jjopp02 »

Hello

I'm cutting straight to the case.

Can I use CPhython Modules in Circuitpython?

I'm working on a Project which needs python-socket.io support. plus i need to use the Phidget22 Python Module.

Kind Regards

JJ

User avatar
dastels
 
Posts: 15674
Joined: Tue Oct 20, 2015 3:22 pm

Re: Circuitpython with CPhyton Libraries

Post by dastels »

It depends on what the CPython module depends on, how big it is, etc. Try it. It might need to be tweaked or reworked in some cases.

Dave

User avatar
danhalbert
 
Posts: 4655
Joined: Tue Aug 08, 2017 12:37 pm

Re: Circuitpython with CPhyton Libraries

Post by danhalbert »

Neither of these would work on a CircuitPython board. The python-socket.io module uses a lot of underlying network stuff that's not necessarily available. The Phidget libraries appear to assume they are running on a machine that is a USB host (e.g. a regular desktop computer).

Are you intending to use these on a board or with Blinka on a host computer?

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”