Open Randomneo opened 3 years ago
If someone faced the same problem downgrade to python 3.6 for me it worked.
During investigation I found out that problem appears because of SymbolIndex._name
is set to None. get_or_create_index
for some reason sets it to 'default' if None provided. But __init__
function wont.
What is also strange that problem appears only on python3.9 and exact point in code that produces seg fault is here
I don't use Python anymore, but @birkenfeld may. That said, importmagic is pure Python, so if it's segfaulting that is a bug in either a package it's importing or Python itself.
I'm using Python at least, but I'm not able to support importmagic, sorry. But this looks a lot like you have different 3rd-party modules installed for the different Pythons, which cause problems when being imported.
Currently facing a lot problems with this repo on different python3 versions (3.9, 3.7). Different python versions are installed using virtualenvwrapper (if it could possibly help someone), OS: archlinux
Linux randomneo-pc 5.12.2-arch1-1 #1 SMP PREEMPT Fri, 07 May 2021 15:36:06 +0000 x86_64 GNU/Linux
.python3.9
This behavior brakes python programs that uses threads to do the indexing... For example importmagic extension for emacs.
python3.7
python 3.7 just dups out interactive shell...