Skip to content

Error while building wheel for greenlet #296

@pannet1

Description

@pannet1

I am able to install greenlet itself without any problem while installing separately but this error throws up when building wheel.

`
Building wheels for collected packages: greenlet
Building wheel for greenlet (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [17 lines of output]
running bdist_wheel
running build
running build_ext
building 'greenlet' extension
creating build
creating build/temp.linux-x86_64-3.10
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -ffat-lto-objects -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -fPIC -I/home/pannet1/.virtualenvs/odoo-15.0.post20220328/include -I/usr/include/python3.10 -c greenlet.c -o build/temp.linux-x86_64-3.10/greenlet.o
greenlet.c: In function ‘g_calltrace’:
greenlet.c:566:17: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘use_tracing’; did you mean ‘tracing’?
566 | tstate->use_tracing = 0;
| ^~~~~~~~~~~
| tracing
greenlet.c:569:17: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘use_tracing’; did you mean ‘tracing’?
569 | tstate->use_tracing = (tstate->tracing <= 0 &&
| ^~~~~~~~~~~
| tracing
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for greenlet
Running setup.py clean for greenlet
Failed to build greenlet
Installing collected packages: XlsxWriter, pyusb, pytz, python-stdnum, pyserial, polib, passlib, num2words, greenlet, chardet, appdirs, xlrd, Werkzeug, urllib3, qrcode, python-dateutil, pydot, pyasn1-modules, psycopg2, psutil, Pillow, MarkupSafe, lxml, libsass, idna, docutils, defusedxml, decorator, Babel, requests, reportlab, python-ldap, ofxparse, Jinja2, gevent, freezegun, pyopenssl, ebaysdk, zeep
Attempting uninstall: XlsxWriter
Found existing installation: XlsxWriter 3.0.3
ERROR: Exception:
Traceback (most recent call last):
File "/home/pannet1/.virtualenvs/odoo-15.0.post20220328/lib/python3.10/site-packages/pip/_internal/cli/base_command.py", line 167, in exc_logging_wrapper
status = run_func(*args)
File "/home/pannet1/.virtualenvs/odoo-15.0.post20220328/lib/python3.10/site-packages/pip/_internal/cli/req_command.py", line 205, in wrapper
return func(self, options, args)
File "/home/pannet1/.virtualenvs/odoo-15.0.post20220328/lib/python3.10/site-packages/pip/_internal/commands/install.py", line 405, in run
installed = install_given_reqs(
File "/home/pannet1/.virtualenvs/odoo-15.0.post20220328/lib/python3.10/site-packages/pip/_internal/req/init.py", line 68, in install_given_reqs
uninstalled_pathset = requirement.uninstall(auto_confirm=True)
File "/home/pannet1/.virtualenvs/odoo-15.0.post20220328/lib/python3.10/site-packages/pip/_internal/req/req_install.py", line 637, in uninstall
uninstalled_pathset = UninstallPathSet.from_dist(dist)
File "/home/pannet1/.virtualenvs/odoo-15.0.post20220328/lib/python3.10/site-packages/pip/_internal/req/req_uninstall.py", line 554, in from_dist
for script in dist.iterdir("scripts"):
File "/home/pannet1/.virtualenvs/odoo-15.0.post20220328/lib/python3.10/site-packages/pip/_internal/metadata/pkg_resources.py", line 156, in iterdir
if not self._dist.isdir(name):
File "/home/pannet1/.virtualenvs/odoo-15.0.post20220328/lib/python3.10/site-packages/pip/_vendor/pkg_resources/init.py", line 2816, in getattr
return getattr(self._provider, attr)
AttributeError: 'PathMetadata' object has no attribute 'isdir'
`

How to resolve this please

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions