SetuptoolsDeprecationWarning: setup.py install is deprecated.

959 views
Skip to first unread message

Piotr C

unread,
Oct 31, 2023, 11:13:50 AM10/31/23
to mnemosyne-proj-users
Hi,

I'm trying to install it on python 3.10. I get this message:

/usr/lib/python3.10/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

       ********************************************************************************
       Please avoid running ``setup.py`` directly.
       Instead, use pypa/build, pypa/installer, pypa/build or
       other standards-based tools.

       See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
       ********************************************************************************

Tried to use 3.8 but with the same result.Are there any plans to make the installer work with the newer versions of python?

Thanks,
Peter

Peter Bienstman

unread,
Oct 31, 2023, 11:21:42 AM10/31/23
to mnemosyne-...@googlegroups.com
Strange, normally a deprecation warning should not be a fatal error...
Perhaps there's something special about your distribution?

This being said, we are in the process of testing a new install
method. It works on my Windows machine, but having someone try it
under Linux would be helpful:

pip3 install -i https://test.pypi.org/simple/ mnemosyne==2.10.1a0

Cheers,

Peter
> --
> You received this message because you are subscribed to the Google Groups "mnemosyne-proj-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to mnemosyne-proj-u...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/mnemosyne-proj-users/781bcad0-cbcc-48aa-9d7b-b740e3aea106n%40googlegroups.com.

Piotr C

unread,
Nov 1, 2023, 1:42:59 AM11/1/23
to mnemosyne-proj-users
Thank you Peter.
The method you provided failed with the following error:

$ sudo pip3 install -i https://test.pypi.org/simple/ mnemosyne==2.10.1a0
Looking in indexes: https://test.pypi.org/simple/
Collecting mnemosyne==2.10.1a0
 Using cached https://test-files.pythonhosted.org/packages/fb/4d/d17f2eaead745b10676d4b5795ff3ac8948b685a4b5d61440213ab95af65/mnemosyne-2.10.1a0.tar.gz (898 kB)
 Installing build dependencies ... done
 Getting requirements to build wheel ... done
 Preparing metadata (pyproject.toml) ... error
 error: subprocess-exited-with-error

 × Preparing metadata (pyproject.toml) did not run successfully.
  exit code: 1
 ╰─> [14 lines of output]
     Traceback (most recent call last):
       File "/usr/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
         main()
       File "/usr/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
         json_out['return_val'] = hook(**hook_input['kwargs'])
       File "/usr/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 149, in prepare_metadata_for_build_wheel
         return hook(metadata_directory, config_settings)
       File "/tmp/pip-build-env-us2xkg24/overlay/lib/python3.10/site-packages/poetry/core/masonry/api.py", line 40, in prepare_metadata_for_build_wheel
         poetry = Factory().create_poetry(Path(".").resolve(), with_groups=False)
       File "/tmp/pip-build-env-us2xkg24/overlay/lib/python3.10/site-packages/poetry/core/factory.py", line 46, in create_poetry
         local_config = PyProjectTOML(path=poetry_file).poetry_config
       File "/tmp/pip-build-env-us2xkg24/overlay/lib/python3.10/site-packages/poetry/core/pyproject/toml.py", line 74, in poetry_config
         assert isinstance(config, Table)
     AssertionError
     [end of output]

 note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Peter Bienstman

unread,
Nov 1, 2023, 5:17:15 AM11/1/23
to mnemosyne-...@googlegroups.com
Hi,

I spent some time trying to debug this, but in the end I needed to
open a bug report for one of the tools we are using:
https://github.com/python-poetry/poetry/issues/8601

Peter
> To view this discussion on the web visit https://groups.google.com/d/msgid/mnemosyne-proj-users/9c561c87-a997-4fc1-a5ad-2b4960f706c0n%40googlegroups.com.

Ace Alba

unread,
Nov 2, 2023, 4:46:26 AM11/2/23
to mnemosyne-proj-users
Hi Peter. Try using this install command instead and see what happens:

"'pip3 install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ mnemosyne==2.10.1a0"

The simpler pip3 install command would most likely not work while the package build and distribution process is being tested on test.pypi. The above command should fix the installation quirks while the mnemosyne package isn't uploaded to the main pypi.org.

Peter Bienstman

unread,
Nov 2, 2023, 4:49:56 AM11/2/23
to mnemosyne-...@googlegroups.com
That suffers from similar issues, this time not with our own package,
but with sip. I'll just try and upload to regular pypi later today and
see what happens.

Peter
> --
> You received this message because you are subscribed to the Google Groups "mnemosyne-proj-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to mnemosyne-proj-u...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/mnemosyne-proj-users/6693649e-fe1c-4a48-b9f2-a23125540192n%40googlegroups.com.

Ace Alba

unread,
Nov 2, 2023, 4:50:33 AM11/2/23
to mnemosyne-proj-users
Here's the updated command. I see the version has been bumped up since last time.

"'pip3 install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ mnemosyne==2.10.1.2"

Piotr C

unread,
Nov 2, 2023, 6:24:29 AM11/2/23
to mnemosyne-...@googlegroups.com
This one worked, after I changed pip3 into "python3 -m pip". Thank you.
May I suggest to add it to the README file?

Thanks,
Peter

--
You received this message because you are subscribed to a topic in the Google Groups "mnemosyne-proj-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mnemosyne-proj-users/qcYE_W6mNa8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mnemosyne-proj-u...@googlegroups.com.

Peter Bienstman

unread,
Nov 2, 2023, 2:10:57 PM11/2/23
to mnemosyne-proj-users
One should now also be able to do 'pip install mnemosyne-proj'.

I'll wait a bit to officially document this until more people can test this.

Cheers,

Peter

Reply all
Reply to author
Forward
0 new messages