Page 1 of 1

FreePIE and pySerial ("port COM3 access denied")

Posted: Tue Dec 06, 2016 11:50 am
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

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

Posted: Wed Dec 07, 2016 4:01 am
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

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

Posted: Thu Dec 22, 2016 3:35 pm
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.

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

Posted: Wed Jan 11, 2017 8:41 am
by CyberVillain
You can also use the .NET serial com library

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