I got an error trying to run it locally

#4
by TheFrenchPepeAI - opened

I get this error when I run app.py : (H:\IA\Remove-Video-Background\venv) H:\IA\Remove-Video-Background>python app.py
Traceback (most recent call last):
File "H:\IA\Remove-Video-Background\app.py", line 1, in
import spaces
File "H:\IA\Remove-Video-Background\venv\lib\site-packages\spaces_init_.py", line 10, in
from .zero.decorator import GPU
File "H:\IA\Remove-Video-Background\venv\lib\site-packages\spaces\zero\decorator.py", line 21, in
from .wrappers import regular_function_wrapper
File "H:\IA\Remove-Video-Background\venv\lib\site-packages\spaces\zero\wrappers.py", line 14, in
from multiprocessing.context import ForkProcess
ImportError: cannot import name 'ForkProcess' from 'multiprocessing.context' (H:\IA\Remove-Video-Background\venv\lib\multiprocessing\context.py)

(H:\IA\Remove-Video-Background\venv) H:\IA\Remove-Video-Background>

hi @TheFrenchPepeAI . if you are trying to run this space on your own gpu locally, you will dont need to use "spaces" package. so remove these two lines from the code and try again:

(line1) import spaces
(line10) @spaces.GPU()

amirgame197 changed discussion status to closed

Sign up or log in to comment