Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SystemError: initialization of _internal failed without raising an exception #22

Open
SequoiaDu opened this issue Jul 15, 2023 · 2 comments

Comments

@SequoiaDu
Copy link

GPU: Tesla P4
pyTorch: 2.0.1 (CUDA 11.8).

I first set up a new conda environment following the instructions, but the model was running on the CPU.

I then installed pyTorch CUDA using the command generated on the official website. Now running vsg throws the following error.

Exception in thread Thread-1:
Traceback (most recent call last):
  File "C:\Users\USERNAME\.conda\envs\vsgEnv\lib\threading.py", line 932, in _bootstrap_inner
    self.run()
  File "C:\Users\USERNAME\.conda\envs\vsgEnv\lib\threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "gui.py", line 173, in task
    from backend import main
  File "D:\Program Files\Video Subtitle Generator\backend\main.py", line 15, in <module>
    import librosa
  File "C:\Users\USERNAME\.conda\envs\vsgEnv\lib\site-packages\librosa\__init__.py", line 209, in <module>
    from . import core
  File "C:\Users\USERNAME\.conda\envs\vsgEnv\lib\site-packages\librosa\core\__init__.py", line 5, in <module>
    from .convert import *  # pylint: disable=wildcard-import
  File "C:\Users\USERNAME\.conda\envs\vsgEnv\lib\site-packages\librosa\core\convert.py", line 7, in <module>
    from . import notation
  File "C:\Users\USERNAME\.conda\envs\vsgEnv\lib\site-packages\librosa\core\notation.py", line 8, in <module>
    from ..util.exceptions import ParameterError
  File "C:\Users\USERNAME\.conda\envs\vsgEnv\lib\site-packages\librosa\util\__init__.py", line 77, in <module>
    from .utils import *  # pylint: disable=wildcard-import
  File "C:\Users\USERNAME\.conda\envs\vsgEnv\lib\site-packages\librosa\util\utils.py", line 9, in <module>
    import numba
  File "C:\Users\USERNAME\.conda\envs\vsgEnv\lib\site-packages\numba\__init__.py", line 42, in <module>
    from numba.np.ufunc import (vectorize, guvectorize, threading_layer,
  File "C:\Users\USERNAME\.conda\envs\vsgEnv\lib\site-packages\numba\np\ufunc\__init__.py", line 3, in <module>
    from numba.np.ufunc.decorators import Vectorize, GUVectorize, vectorize, guvectorize
  File "C:\Users\USERNAME\.conda\envs\vsgEnv\lib\site-packages\numba\np\ufunc\decorators.py", line 3, in <module>
    from numba.np.ufunc import _internal
SystemError: initialization of _internal failed without raising an exception

Is there any specific pyTorch version/configuration I should use? Thanks!

@YaoFANGUK
Copy link
Owner

you can just try

pip install -r requirements.txt

@NingerJohn
Copy link

@SequoiaDu 你好,你的问题解决了吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants