Python Driver Bindings Issue

Post any questions you may have about our current range of oscilloscopes
Post Reply
megahertz
Newbie
Posts: 0
Joined: Wed Jan 23, 2019 9:19 pm

Python Driver Bindings Issue

Post by megahertz » Wed Jan 23, 2019 9:45 pm

Hello,

OS: Windows 10
Language: Python 3.7 64-bit
IDE: Spyder
Product: PicoScope 2204A

I downloaded the picosdk-python-wrappers GitHub repository into the folder that contains my python distribution. I also downloaded the 64-bit PicoSDK C Libraries to the same folder.
According to the README.md file, I need to run the command

Code: Select all

python setup.py install
When I do this, I get the error

Code: Select all

Traceback (most recent call last):
  File "setup.py", line 26, in <module>
    result = ctypes.WinDLL(find_library(name))
  File "D:\Users\megahertz\Anaconda\lib\ctypes\__init__.py", line 356, in __init__
    self._handle = _dlopen(self._name, mode)
TypeError: LoadLibrary() argument 1 must be str, not None
What should I be doing differently so that setup.py runs correctly?

In another effort, I tried running both https://github.com/picotech/picosdk-pyt ... Example.py and https://github.com/picotech/picosdk-pyt ... Example.py at the advice of this thread topic39518.html?&p=140895&hilit=python#p140895. Python gives the error

Code: Select all

ModuleNotFoundError: No module named 'picosdk'
Is this error a result of the first issue? Or are there more things wrong with what I am doing?

Post Reply