Closed ilrico closed 1 year ago
Ensure you have install the latest version of setuptools
installed. Also suggest making sure pip
is latest version.
pip
22.3 was latest but indeed setuptools
was a bit old. Thank you & sorry for false-positive report.
python 3.11.0 on fresh virtualenv (linux):
`Installing collected packages: wrapt, pyparsing, async-timeout, packaging, deprecated, redis Running setup.py install for wrapt ... error error: subprocess-exited-with-error
× Running setup.py install for wrapt did not run successfully. │ exit code: 1 ╰─> [56 lines of output] running install running build running build_py creating build creating build/lib.linux-x86_64-3.11 creating build/lib.linux-x86_64-3.11/wrapt copying src/wrapt/decorators.py -> build/lib.linux-x86_64-3.11/wrapt copying src/wrapt/wrappers.py -> build/lib.linux-x86_64-3.11/wrapt copying src/wrapt/arguments.py -> build/lib.linux-x86_64-3.11/wrapt copying src/wrapt/importer.py -> build/lib.linux-x86_64-3.11/wrapt copying src/wrapt/init.py -> build/lib.linux-x86_64-3.11/wrapt running build_ext building 'wrapt._wrappers' extension creating build/temp.linux-x86_64-3.11 creating build/temp.linux-x86_64-3.11/src creating build/temp.linux-x86_64-3.11/src/wrapt gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -fPIC -I/home/rico/code/easywebsocket/include -I/usr/local/include/python3.11 -c src/wrapt/_wrappers.c -o build/temp.linux-x86_64-3.11/src/wrapt/_wrappers.o src/wrapt/_wrappers.c: In function ‘WraptFunctionWrapperBase_instancecheck’: src/wrapt/_wrappers.c:2550:15: warning: unused variable ‘object’ [-Wunused-variable] 2550 | PyObject *object = NULL; | ^", line 2, in
File "", line 34, in
File "/tmp/pip-install-1spriocg/wrapt_e6e1bbefd7524c62ab63fd869239a10f/setup.py", line 41, in
setuptools.setup(
File "/home/rico/code/easywebsocket/lib/python3.11/site-packages/setuptools/init.py", line 162, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/local/lib/python3.11/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/local/lib/python3.11/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/rico/code/easywebsocket/lib/python3.11/site-packages/setuptools/command/install.py", line 61, in run
return orig.install.run(self)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/distutils/command/install.py", line 580, in run
self.run_command(cmd_name)
File "/usr/local/lib/python3.11/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/lib/python3.11/distutils/dist.py", line 984, in run_command
cmd_obj.ensure_finalized()
File "/usr/local/lib/python3.11/distutils/cmd.py", line 107, in ensure_finalized
self.finalize_options()
File "/home/rico/code/easywebsocket/lib/python3.11/site-packages/setuptools/command/install_lib.py", line 17, in finalize_options
self.set_undefined_options('install',('install_layout','install_layout'))
File "/usr/local/lib/python3.11/distutils/cmd.py", line 290, in set_undefined_options
setattr(self, dst_option, getattr(src_cmd_obj, src_option))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/distutils/cmd.py", line 103, in getattr
raise AttributeError(attr)
AttributeError: install_layout. Did you mean: 'install_platlib'?
[end of output]
~gcc -pthread -shared build/temp.linux-x86_64-3.11/src/wrapt/_wrappers.o -o build/lib.linux-x86_64-3.11/wrapt/_wrappers.cpython-311-x86_64-linux-gnu.so running install_lib Traceback (most recent call last): File "note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure
× Encountered error while trying to install package. ╰─> wrapt `