PicoVNA5 API on Mac: ModuleNotFoundError: No module named '_vna_python'

Discussions forum for our Sampling Oscilloscopes, VNA, and Pulse Generators
Post Reply
Ryo
Newbie
Posts: 1
Joined: Tue Apr 09, 2024 2:15 pm

PicoVNA5 API on Mac: ModuleNotFoundError: No module named '_vna_python'

Post by Ryo »

Hello,

I tried using the PicoVNA5 API on Mac!
But, I could not solve the problem ModuleNotFoundError: No module named '_vna_python'.

I followed the below instruduction and the post, but the same error happened.
instroduction: https://github.com/picotech/picovna5-ex ... me-ov-file
post: topic42654.html?&p=150155&hilit=API+VNA#p150155

OS:
Apple M2 14.2

Setup:
PicoTech-issued PicoVNA5 SDK v5.2.5

Steps to reproduce:
- Install PicoVNA5 with the given picovna.run installation script
- Download SDK
- Decompress and change directory to the root of the SDK
- Install vna python module with pip

Command: I tried five patterns, but got the same results.

Code: Select all

PYTHONPATH=python/macos_aarch64 DYLD_LIBRARY_PATH=python/macos_aarch64 python3 examples/api/python/01_simple_frequency_sweep/01_simple_frequency_sweep.py

Code: Select all

PYTHONPATH=python/macos_aarch64 LD_LIBRARY_PATH=python/macos_aarch64 python3 examples/api/python/01_simple_frequency_sweep/01_simple_frequency_sweep.py

Code: Select all

PYTHONPATH=python/macos_aarch64  python3 examples/api/python/01_simple_frequency_sweep/01_simple_frequency_sweep.py

Code: Select all

DYLD_LIBRARY_PATH=python/macos_aarch64 python3 examples/api/python/01_simple_frequency_sweep/01_simple_frequency_sweep.py

Code: Select all

LD_LIBRARY_PATH=python/macos_aarch64 python3 examples/api/python/01_simple_frequency_sweep/01_simple_frequency_sweep.py

Post Reply