You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I identified that the problem was this package because if I run python -v manage.py showmigrations I get the following:
...
import 'gevent.libev' # <_frozen_importlib_external.SourceFileLoader object at 0x7f257f77d820>
# extension module 'gevent.libev.corecext' loaded from '/usr/local/lib/python3.8/site-packages/gevent/libev/corecext.cpython-38-x86_64-linux-gnu.so'
# possible namespace for /usr/local/lib/python3.8/site-packages/zope
# /usr/local/lib/python3.8/site-packages/zope/interface/__pycache__/__init__.cpython-38.pyc matches /usr/local/lib/python3.8/site-packages/zope/interface/__init__.py
# code object from '/usr/local/lib/python3.8/site-packages/zope/interface/__pycache__/__init__.cpython-38.pyc'
# /usr/local/lib/python3.8/site-packages/zope/interface/__pycache__/interface.cpython-38.pyc matches /usr/local/lib/python3.8/site-packages/zope/interface/interface.py
# code object from '/usr/local/lib/python3.8/site-packages/zope/interface/__pycache__/interface.cpython-38.pyc'
# /usr/local/lib/python3.8/site-packages/zope/interface/__pycache__/ro.cpython-38.pyc matches /usr/local/lib/python3.8/site-packages/zope/interface/ro.py
# code object from '/usr/local/lib/python3.8/site-packages/zope/interface/__pycache__/ro.cpython-38.pyc'
import 'zope.interface.ro' # <_frozen_importlib_external.SourceFileLoader object at 0x7f257f4c4b20>
# /usr/local/lib/python3.8/site-packages/zope/interface/__pycache__/_compat.cpython-38.pyc matches /usr/local/lib/python3.8/site-packages/zope/interface/_compat.py
# code object from '/usr/local/lib/python3.8/site-packages/zope/interface/__pycache__/_compat.cpython-38.pyc'
import 'zope.interface._compat' # <_frozen_importlib_external.SourceFileLoader object at 0x7f257f4c4d30>
# /usr/local/lib/python3.8/site-packages/zope/interface/__pycache__/exceptions.cpython-38.pyc matches /usr/local/lib/python3.8/site-packages/zope/interface/exceptions.py
# code object from '/usr/local/lib/python3.8/site-packages/zope/interface/__pycache__/exceptions.cpython-38.pyc'
import 'zope.interface.exceptions' # <_frozen_importlib_external.SourceFileLoader object at 0x7f257f4ccfa0>
Segmentation fault (core dumped)
Weird thing is that if I run python -vv manage.py showmigrations (more verbose), I get the migrations and no segfault.
Furthermore, if I clean the pyc files with the following command: find . | grep -E "(/__pycache__$|\.pyc$|\.pyo$)" | xargs rm -rf the manage.py run inmediately after that works, but the following ones cause a segfault too.
What version of Python and Zope/Addons I am using:
Python 3.8.17
Django 2.2.28
zope.interface 7.0.1
Running inside a docker container based on python:3.8-slim-buster
zope.interface is a dependency installed by gevent:
I started a python:3.8-slim-buster container, ran pip install Django==2.2.28 gevent==20.9.0. This failed with a different error while building gevent.
Then I ran pip install Django==2.2.28 gevent to install a newer version of gevent. After this I was able to create a Django project and run manage.py commands without error.
I'll close the issue, unless you can provide more specific instructions for how to reproduce the error, or use gdb to get a C-level stack trace of where the segmentation fault occurred.
BUG/PROBLEM REPORT / FEATURE REQUEST
What I did:
Run Django
manage.py
commands with zope.interface==7.0.1 installed.After downgrading to zope.interface 6.3, this error stopped occurring
What I expect to happen:
manage.py
commands to run successfully.What actually happened:
When I run any manage.py command I get segmentation fault:
I identified that the problem was this package because if I run
python -v manage.py showmigrations
I get the following:Weird thing is that if I run
python -vv manage.py showmigrations
(more verbose), I get the migrations and no segfault.Furthermore, if I clean the pyc files with the following command:
find . | grep -E "(/__pycache__$|\.pyc$|\.pyo$)" | xargs rm -rf
themanage.py
run inmediately after that works, but the following ones cause a segfault too.What version of Python and Zope/Addons I am using:
python:3.8-slim-buster
zope.interface is a dependency installed by gevent:
The text was updated successfully, but these errors were encountered: