nidaqmx-python icon indicating copy to clipboard operation
nidaqmx-python copied to clipboard

Missing dependancies when installing with Conda

Open alexanderwelbourne opened this issue 1 year ago • 2 comments

When installing with Conda and using NI-DAQmx 2024 Q4, a number of dependancies are not installed. Minimum this causes issues when setting up devices. Missing at least, hightime, click, requests and tzlocal.

E.g. nidaqmx.system.device.Device(port) results in import errors.

yml file that causes issues:

channels:
  - conda-forge
  - defaults
dependencies:
  - python=3.12
  - nidaqmx-python=1.0.2
  - pyvisa=1.14
  - scipy=1.14
  - matplotlib=3.9
  - h5py=3.12

yml file that fixes missing imports:

channels:
  - conda-forge
  - defaults
dependencies:
  - python=3.12
  - nidaqmx-python=1.0.2
  - pyvisa=1.14
  - scipy=1.14
  - matplotlib=3.9
  - h5py=3.12
  - python-decouple=3.8
    -pip:
      - hightime==0.2.2
      - click==8.0.0
      - requests==2.25.0
      - tzlocal==5.0

alexanderwelbourne avatar Dec 06 '24 14:12 alexanderwelbourne

Hmm, I'm not familiar with Conda, but those dependencies you added are in our 1.0.2 pyproject.toml and also in the lock file.

zhindes avatar Dec 10 '24 15:12 zhindes

Yeah, I spotted they were. I'm not sure why they are not getting picked up when doing the install via conda, it ought to find everything!

alexanderwelbourne avatar Dec 10 '24 16:12 alexanderwelbourne