ni / ni/nidaqmx-python

Missing dependancies when installing with Conda

Open
#662 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
592
Forks
199
Avg merge
1d 16h
Merged PRs (30d)
10

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Create the provided Conda environment with Python 3.12 and nidaqmx-python=1.0.2, then run nidaqmx.system.device.Device(port) to reproduce the import errors. Compare the dependencies available in the failing and fixing YAML examples; done when a fresh environment includes hightime, click, requests, and tzlocal without the extra pip entries.

Written by the indexing model from the issue text.

Assessment

Tech stack
anaconda, python
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.