Closed av01d closed 3 years ago
I've only tested this with ubuntu. Did you install python3.7-dev?
I've only tested this with ubuntu. Did you install python3.7-dev?
Yes, it's there:
[arjan@cure:bgRemove]% sudo apt-get install python3.7-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3.7-dev is already the newest version (3.7.3-2+deb10u3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
I think you need both, python3-dev and python3.7-dev
and do you have it running in a virtual enviroment, I think there was another user who had issues due to depenciy conflict
I think you need both, python3-dev and python3.7-dev
I already have both of them:
[arjan@cure:bgRemove]% sudo apt-get install python3-dev python3.7-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-dev is already the newest version (3.7.3-1).
python3.7-dev is already the newest version (3.7.3-2+deb10u3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
and do you have it running in a virtual enviroment, I think there was another user who had issues due to depenciy conflict
I am not. I am on a terminal directly on the server.
Can you try installing it into a virtual enviroment, and trying it that way?
Can you try installing it into a virtual enviroment, and trying it that way?
No, I can't. I'll keep trying, thanks for your help!
I saw these two things that might be, try conda install gcc_linux-64 gxx_linux-64
or it seems it could be something I saw that maybe this could also be a solution.
This is likely an issue with Numba. It should probably recompile old modules or not crash when importing them.
Temporary fix
Locate the ahead-of-time compiled module and delete it. A new import will trigger a recompilation. In my case, the file was located at ~/miniconda3/lib/python3.7/site-packages/pymatting_aot/aot.cpython-37m-x86_64-linux-gnu.so
and or lastly try apt-get install -y build-essential
I found a fix, albeit a clumsy one. In file /home/arjan/.local/lib/python3.7/site-packages/numba/pycc/platform.py
, I changed function def _check_external_compiler():
a bit. It now reads:
def _check_external_compiler():
# see if the external compiler bound in numpy.distutil is present
# and working
return True # FIX: return True immediately
Now it all works!
and or lastly try
apt-get install -y build-essential
Yeah, tried that already, turns out I had it installed at latest version already.
So glad to hear! If there is any other problem let me know and reopen this issue.
After successfully installing
backroundremover
, I am running into the following issue when running it:Any idea? I'm on a Debian 10 system. gcc is installed.