-
Notifications
You must be signed in to change notification settings - Fork 509
Open
Labels
bugSomething isn't workingSomething isn't working
Description
I am having trouble using nbdev_pypi
due to a deprecation error from pkg_resources
(see below). This makes that while it manages to push the package to Pypi, it does it with an error, which the causes that users installing the package from pip also receive an error (see below). I have seen that this was taken care of (#1523 ), hence I am a bit confused about this now. I tried to update all necessary packages (see below), but still facing the problem.
The package I want to push to Pypi can be found here: https://github.com/AnDiChallenge/andi_datasets . Pip version is working well until andi_datasets==2.1.6 .
Error output when running nbdev_pip
* Building wheel from sdist
* Creating isolated environment: venv+pip...
* Installing packages in isolated environment:
- setuptools >= 40.8.0
* Getting build dependencies for wheel...
<string>:1: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_ resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using th is package or pin to Setuptools<81.
Traceback (most recent call last):
File "/home/gorka/miniconda3/envs/andi/lib/python3.10/site-packages/pyproject_hooks/_in_process/_in_process .py", line 389, in <module>
main()
File "/home/gorka/miniconda3/envs/andi/lib/python3.10/site-packages/pyproject_hooks/_in_process/_in_process .py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
File "/home/gorka/miniconda3/envs/andi/lib/python3.10/site-packages/pyproject_hooks/_in_process/_in_process .py", line 143, in get_requires_for_build_wheel
return hook(config_settings)
File "/tmp/build-env-ry6x2ed9/lib/python3.10/site-packages/setuptools/build_meta.py", line 331, in get_requ ires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
File "/tmp/build-env-ry6x2ed9/lib/python3.10/site-packages/setuptools/build_meta.py", line 301, in _get_bui ld_requires
self.run_setup()
File "/tmp/build-env-ry6x2ed9/lib/python3.10/site-packages/setuptools/build_meta.py", line 512, in run_setu p
super().run_setup(setup_script=setup_script)
File "/tmp/build-env-ry6x2ed9/lib/python3.10/site-packages/setuptools/build_meta.py", line 317, in run_setu p
exec(code, locals())
File "<string>", line 13, in <module>
AssertionError: missing expected setting: version
Error output when running pip install
python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [8 lines of output]
C:\Users\Gorka\AppData\Local\Temp\pip-install-xgwtlxug\andi-datasets_33528b625e0c45a8957a846ef801c438\setup.py:1: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
from pkg_resources import parse_version
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\Gorka\AppData\Local\Temp\pip-install-xgwtlxug\andi-datasets_33528b625e0c45a8957a846ef801c438\setup.py", line 13, in <module>
for o in expected: assert o in cfg, "missing expected setting: {}".format(o)
AssertionError: missing expected setting: version
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
Packages versions
absl-py 1.3.0
affine 2.4.0
alabaster 0.7.12
andi_datasets 2.1.7 /home/gorka/github/andi_datasets
anyio 3.5.0
argon2-cffi 21.3.0
argon2-cffi-bindings 21.2.0
asttokens 2.0.5
astunparse 1.6.3
attrs 22.1.0
Babel 2.11.0
backcall 0.2.0
beartype 0.21.0
beautifulsoup4 4.11.1
bleach 4.1.0
blis 0.7.9
bokeh 2.4.3
brokenaxes 0.6.2
build 1.3.0
cachetools 5.2.0
catalogue 2.0.8
certifi 2022.9.24
cffi 1.15.1
charset-normalizer 2.1.1
click 8.1.3
click-plugins 1.1.1
cligj 0.7.2
cloudpickle 2.2.0
confection 0.0.4
contourpy 1.0.6
cryptography 41.0.2
cupy-cuda11x 11.6.0
cycler 0.11.0
cymem 2.0.7
debugpy 1.5.1
decorator 4.4.2
deeptrack 2.0.0
defusedxml 0.7.1
dill 0.3.6
dm-tree 0.1.7
docutils 0.19
entrypoints 0.4
etils 0.9.0
execnb 0.1.14
executing 0.8.3
fastai 2.8.4
fastcore 1.8.8
fastdownload 0.0.7
fastjsonschema 2.16.2
fastprogress 1.0.3
fastrlock 0.8.1
fasttransform 0.0.2
filelock 3.16.1
flatbuffers 22.12.6
fonttools 4.38.0
gast 0.4.0
gdown 5.2.0
ghapi 1.0.3
gitdb 4.0.11
GitPython 3.1.43
google-auth 2.15.0
google-auth-oauthlib 0.4.6
google-pasta 0.2.0
googleapis-common-protos 1.57.0
grpcio 1.51.1
h5py 3.7.0
id 1.5.0
idna 3.4
imageio 2.22.4
imageio-ffmpeg 0.4.9
imagesize 1.4.1
importlib-metadata 6.8.0
importlib-resources 5.10.1
ipykernel 6.15.2
ipython 8.6.0
ipython-genutils 0.2.0
ipywidgets 8.0.4
jaraco.classes 3.3.0
jedi 0.18.1
jeepney 0.8.0
Jinja2 3.1.2
joblib 1.2.0
jsonschema 4.16.0
jupyter_client 7.3.5
jupyter_core 4.11.2
jupyter-server 1.18.1
jupyterlab-pygments 0.1.2
jupyterlab-widgets 3.0.5
keras 2.11.0
keyring 24.2.0
kiwisolver 1.4.4
kneed 0.8.5
lazy-import 0.2.2
libclang 14.0.6
lxml 4.9.1
Markdown 3.4.1
markdown-it-py 3.0.0
MarkupSafe 2.1.1
matplotlib 3.9.3
matplotlib-inline 0.1.6
mdurl 0.1.2
mistune 0.8.4
more-itertools 9.0.0
moviepy 1.0.3
murmurhash 1.0.9
nb-conda 2.2.1
nb-conda-kernels 2.3.1
nbclassic 0.4.8
nbclient 0.5.13
nbconvert 6.5.4
nbdev 2.4.5
nbformat 5.5.0
nest-asyncio 1.5.5
networkx 2.8.8
noise 1.2.2
notebook 6.5.2
notebook_shim 0.2.2
numpy 1.26.4
numpydoc 1.5.0
nvidia-cublas-cu11 11.10.3.66
nvidia-cuda-nvrtc-cu11 11.7.99
nvidia-cuda-runtime-cu11 11.7.99
nvidia-cudnn-cu11 8.5.0.96
oauthlib 3.2.2
opencv-python 4.10.0.84
opt-einsum 3.3.0
packaging 25.0
pandas 2.2.3
pandocfilters 1.5.0
parso 0.8.3
pathy 0.10.1
pexpect 4.8.0
pickleshare 0.7.5
Pillow 9.3.0
Pint 0.19.2
pip 22.2.2
pkginfo 1.9.6
plum-dispatch 2.5.7
preshed 3.0.8
proglog 0.1.10
prometheus-client 0.14.1
promise 2.3
prompt-toolkit 3.0.20
protobuf 3.19.6
psutil 5.9.0
ptyprocess 0.7.0
pure-eval 0.2.2
pyasn1 0.4.8
pyasn1-modules 0.2.8
pybase64 1.2.3
pycparser 2.21
pydantic 1.10.4
pydot 1.4.2
Pygments 2.13.0
pyparsing 3.0.9
pyproject_hooks 1.2.0
pyrsistent 0.18.0
PySocks 1.7.1
python-dateutil 2.8.2
pytz 2022.6
PyWavelets 1.4.1
PyYAML 6.0
pyzmq 23.2.0
readme-renderer 40.0
requests 2.28.1
requests-oauthlib 1.3.1
requests-toolbelt 1.0.0
rfc3986 2.0.0
rich 13.4.2
rl-opts 0.0.2
rsa 4.9
ruptures 1.1.7
scikit-image 0.19.3
scikit-learn 1.2.0
scipy 1.14.1
seaborn 0.13.2
SecretStorage 3.3.3
Send2Trash 1.8.0
setuptools 80.9.0
six 1.16.0
sklearn 0.0.post1
smart-open 6.3.0
smmap 5.0.1
sniffio 1.2.0
snowballstemmer 2.2.0
soupsieve 2.3.2.post1
spacy 3.5.0
spacy-legacy 3.0.12
spacy-loggers 1.0.4
Sphinx 5.3.0
sphinxcontrib-applehelp 1.0.2
sphinxcontrib-devhelp 1.0.2
sphinxcontrib-htmlhelp 2.0.0
sphinxcontrib-jsmath 1.0.1
sphinxcontrib-qthelp 1.0.3
sphinxcontrib-serializinghtml 1.1.5
srsly 2.4.5
stack-data 0.2.0
stochastic 0.7.0
tensorboard 2.11.0
tensorboard-data-server 0.6.1
tensorboard-plugin-wit 1.8.1
tensorflow 2.11.0
tensorflow-addons 0.19.0
tensorflow-datasets 4.7.0
tensorflow-estimator 2.11.0
tensorflow-io-gcs-filesystem 0.28.0
tensorflow-metadata 1.12.0
tensorflow-probability 0.19.0
termcolor 2.1.1
terminado 0.13.1
thinc 8.1.7
threadpoolctl 3.1.0
tifffile 2022.10.10
tinycss2 1.2.1
toml 0.10.2
tomli 2.2.1
torch 1.13.1
torchvision 0.14.1
tornado 6.2
tqdm 4.64.1
traitlets 5.1.1
twine 6.1.0
typeguard 2.13.3
typer 0.7.0
typing_extensions 4.15.0
tzdata 2024.2
urllib3 1.26.13
wasabi 1.1.1
watchdog 2.2.1
wcwidth 0.2.5
webencodings 0.5.1
websocket-client 0.58.0
Werkzeug 2.2.2
wheel 0.37.1
widgetsnbextension 4.0.5
wrapt 1.14.1
xyzservices 2022.9.0
zipp 3.11.0
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working