question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Setuptools version ceilings?

See original GitHub issue

After the release of setuptools 60.0.3 yesterday, all the Python 3.7 and 3.8 tests started failing on Dask. This is because the versions of pandas and numpy in those envs hadn’t yet moved to using packaging.version. This is the error:

py.test dask --runslow --cov=dask --cov-report=xml -n4 
ImportError while loading conftest '/home/runner/work/dask/dask/conftest.py'.
conftest.py:28: in <module>
    import pandas  # noqa: F401
/usr/share/miniconda3/envs/test-environment/lib/python3.7/site-packages/pandas/__init__.py:22: in <module>
    from pandas.compat.numpy import (
/usr/share/miniconda3/envs/test-environment/lib/python3.7/site-packages/pandas/compat/numpy/__init__.py:10: in <module>
    _nlv = LooseVersion(_np_version)
/usr/share/miniconda3/envs/test-environment/lib/python3.7/site-packages/setuptools/_distutils/version.py:57: in __init__
    stacklevel=2,
E   DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
Error: Process completed with exit code 4.

It feels like this could be fixed on the conda-forge side, but I think the correct fix would be to update all the old recipes for all packages and explicitly add setuptools with a ceiling. But that seems impossible.

Here is the dask PR where I am setting a ceiling on setuptools for these older envs: https://github.com/dask/dask/pull/8509

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:20 (20 by maintainers)

github_iconTop GitHub Comments

1reaction
beckermrcommented, Jan 6, 2022

The linter runs in our heroku server. Conda build is run in azure etc. So we’d need a secure way to report statuses back to github without putting keys into public forks etc. I think this is just too hard right now.

0reactions
jaimergpcommented, Jan 6, 2022

(conda plugins would be sooo useful here)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Specifying Your Project's Version - Setuptools
Once you've decided on a version numbering scheme for your project, you can have setuptools automatically tag your in-development releases with various pre-...
Read more >
python3 setuptools is not package error - Stack Overflow
Long story short, executable script cannot have the same name like the package. Lost 3 hours of my life.
Read more >
Drop pbr version ceiling and add py39 testing · c69ead8b45 - tripleo ...
Ceiling of pbr version can create installation conflicts with pip. ... $OS_APPLY_CONFIG_VENV_DIR/bin/pip install -U 'setuptools>=1.0'.
Read more >
Functions/Test-OSServerHardwareReqs.ps1 ... - PowerShell Gallery
Outsystems.SetupTools ... Specifies the platform major version. Accepted values: 10 or 11 .EXAMPLE Test-OSServerSoftwareReqs -MajorVersion "10.0"
Read more >
Is there a ceiling equivalent of // operator in Python?(5solution)
Python :Is there a ceiling equivalent of // operator in ... can I get the version defined in setup.py ( setuptools ) in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found