Page 1 of 1

Beginner Question

Posted: Wed Jul 03, 2019 3:32 pm
by Michael
Hello,

I have a question regarding getting started with Phidgets. I just received my Phidget 4x thermocouple sensor and the hub, and I'm just getting started with the coding but visual studio and my program aren't recognizing the Phidgets libraries that I'm trying to import. There's a picture attached to show what it looks like. Does anyone have any idea what I might be doing wrong?

Thanks!

Mike

Re: Beginner Question

Posted: Thu Jul 04, 2019 7:30 am
by mparadis
Hi Mike,

It looks like you don't have the Phidgets Python Module installed.
Go to this page and follow the instructions for installing it either via PIP or manually.

Re: Beginner Question

Posted: Fri Jul 05, 2019 7:04 am
by Michael
Thank you for your reply! Do you mean this Phidgets module in the attachment? If so, this is installed and running already on the computer, but I have a feeling I still don't have it.

Re: Beginner Question

Posted: Fri Jul 05, 2019 7:09 am
by mparadis
Python uses modules to give your program specific function (math, graphing, Phidgets, etc) just like other languages have include or header files. Python has an official repository for these modules, kind of like how Linux has an official repository for software you can download for it. You can install modules from the python repository using PIP. Alternatively, you can install it manually by downloading it and installing using the python command. The link in my previous post explains step by step how to do either method.

The image you posted is the Phidget Control Panel, which is our Windows diagnostic tool which has nothing to do with python specifically.

Re: Beginner Question

Posted: Fri Jul 05, 2019 7:16 am
by Michael
My python version is 3.7 so it should have the PIP automatically right? I guess it probably doesn't. I just tried the manual prompt to install it. I got at error message saying

"Could not install packages due to an EnvironmentError: Access is denied....."

Re: Beginner Question

Posted: Tue Jul 09, 2019 7:25 am
by Michael
I have fixed the problem actually now. Thanks!