Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing dependency on setuptools #104

Open
psadil opened this issue Jan 20, 2025 · 0 comments
Open

Missing dependency on setuptools #104

psadil opened this issue Jan 20, 2025 · 0 comments

Comments

@psadil
Copy link

psadil commented Jan 20, 2025

From here: https://docs.python.org/3/whatsnew/3.12.html

gh-95299: Do not pre-install setuptools in virtual environments created with venv. This means that distutils, setuptools, pkg_resources, and easy_install will no longer available by default; to access these run pip install setuptools in the activated virtual environment.

which mentions venv, but I believe this applies to mamba environments as well

❯ mamba create -y -n ndatools python pip 
❯ mamba activate ndatools
❯ pip install nda-tools
❯ downloadcmd -h
Traceback (most recent call last):
  File "/Users/psadil/mambaforge/envs/ndatools/bin/downloadcmd", line 5, in <module>
    from NDATools.clientscripts.downloadcmd import main
  File "/Users/psadil/mambaforge/envs/ndatools/lib/python3.13/site-packages/NDATools/__init__.py", line 11, in <module>
    from pkg_resources import resource_filename
ModuleNotFoundError: No module named 'pkg_resources'
❯ mamba install setuptools   

Looking for: ['setuptools']

conda-forge/osx-arm64                                       Using cache
conda-forge/noarch                                          Using cache

Pinned packages:
  - python 3.13.*


Transaction

  Prefix: /Users/psadil/mambaforge/envs/ndatools

  Updating specs:

   - setuptools
   - ca-certificates
   - openssl


  Package       Version  Build         Channel          Size
──────────────────────────────────────────────────────────────
  Install:
──────────────────────────────────────────────────────────────

  + setuptools   75.8.0  pyhff2d567_0  conda-forge     776kB

  Summary:

  Install: 1 packages

  Total download: 776kB

──────────────────────────────────────────────────────────────


Confirm changes: [Y/n] y
setuptools                                         775.6kB @   2.1MB/s  0.4s

Downloading and Extracting Packages:

Preparing transaction: done
Verifying transaction: done
Executing transaction: done
                                                                                                                                                                                                                      
~   
(ndatools)❯ downloadcmd -h             
Running NDATools Version 0.3.0
[...]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant