FreePIE and pySerial ("port COM3 access denied")

Official forum for open source FreePIE discussion and development.
Post Reply
AmpBu
One Eyed Hopeful
Posts: 1
Joined: Tue Dec 06, 2016 11:27 am

FreePIE and pySerial ("port COM3 access denied")

Post by AmpBu »

Hello,

I'm trying to read potentiometer values from Arduino using pySerial-library. I managed to install the library (or at least FreePIE doesn't give any errors when I run "import serial"), but when I run command "serial.Serial("COM3", 9600)" (which should open the port), FreePIE gives me this error: "access to port COM3 is denied". (Or something like that. I'm not sure how it's exactly in English, because my computer's language is Finnish...) But when I use this same library in Python, it works just fine.

So my guestion is, have anyone here managed to use pySerial with FreePIE? Or is there any better ways to read values from Arduino?

Thanks

Aaro
flo2
One Eyed Hopeful
Posts: 14
Joined: Thu Dec 01, 2016 7:36 pm

Re: FreePIE and pySerial ("port COM3 access denied")

Post by flo2 »

I had a lot of trouble importing the numpy module because it uses certain system files that FreePIE doesn't have access to. FreePIE can't read from the local Python install's system path, you have to include everything inside FreePIE's folder, and even then I've only had success with pure python files. Hope this helps
Adream
One Eyed Hopeful
Posts: 3
Joined: Thu Dec 22, 2016 3:30 pm

Re: FreePIE and pySerial ("port COM3 access denied")

Post by Adream »

How did you install pySerial ??
I can't make it work with freePie and cant find any guide on how to do it.
CyberVillain
Petrif-Eyed
Posts: 2166
Joined: Mon Jun 22, 2009 8:36 am
Location: Stockholm, Sweden

Re: FreePIE and pySerial ("port COM3 access denied")

Post by CyberVillain »

You can also use the .NET serial com library

https://msdn.microsoft.com/en-us/librar ... .110).aspx
Post Reply

Return to “FreePIE”