Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/342.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
将sounddevice导入python崩溃_Python_Python 3.x_Python Module_Python Sounddevice - Fatal编程技术网

将sounddevice导入python崩溃

将sounddevice导入python崩溃,python,python-3.x,python-module,python-sounddevice,Python,Python 3.x,Python Module,Python Sounddevice,我正在尝试用python导入sounddevice模块,但每当我这样做时,它似乎崩溃了?我尝试过sounddevice的旧版本,但仍然存在相同的问题。我正在运行Python 3.7.5。这是日志的外观: C:\>python Python 3.7.5 (tags/v3.7.5:5c02a39a0b, Oct 15 2019, 00:11:34) [MSC v.1916 64 bit (AMD64)] on win32 Type "help", "copyrig

我正在尝试用python导入sounddevice模块,但每当我这样做时,它似乎崩溃了?我尝试过sounddevice的旧版本,但仍然存在相同的问题。我正在运行Python 3.7.5。这是日志的外观:

C:\>python
Python 3.7.5 (tags/v3.7.5:5c02a39a0b, Oct 15 2019, 00:11:34) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sounddevice

C:\>
以前有人经历过吗


谢谢

我也有这个问题。奇怪的是,在我安装pyaudio后,它自行解决了。它们都依赖于底层的portaudio,我想知道sounddevice的包中是否缺少一些东西。即使我卸载了pyaudio,Sounddevice仍能继续工作。您可能需要从这个备受尊敬的存储库安装pyaudio: 您需要确保使用cp37获取文件,因为这是针对Python3.7的
您将导航到正确的文件夹并执行
pip安装filename

我也遇到了这个问题。奇怪的是,在我安装pyaudio后,它自行解决了。它们都依赖于底层的portaudio,我想知道sounddevice的包中是否缺少一些东西。即使我卸载了pyaudio,Sounddevice仍能继续工作。您可能需要从这个备受尊敬的存储库安装pyaudio: 您需要确保使用cp37获取文件,因为这是针对Python3.7的
您将导航到正确的文件夹并执行
pip安装filename

我最近也遇到了这个问题。简单地运行“import sounddevice”会使Python崩溃将sounddevice降级到0.3.8为我解决了此问题。

如果附加调试器,则会报告崩溃

Unhandled exception at 0x00007FFDBD20CB98 (InProcessClient64.dll) in python.exe: An invalid parameter was passed to a function that considers invalid parameters fatal.

>   InProcessClient64.dll!00007ffdbd20cb98()    Unknown
    InProcessClient64.dll!00007ffdbd20cb2d()    Unknown
    InProcessClient64.dll!00007ffdbd20cb49()    Unknown
    InProcessClient64.dll!00007ffdbd2128b2()    Unknown
    InProcessClient64.dll!00007ffdbd1b705b()    Unknown
    InProcessClient64.dll!00007ffdbd17bf89()    Unknown
    InProcessClient64.dll!00007ffdbd1a6a29()    Unknown
    InProcessClient64.dll!00007ffdbd17bea8()    Unknown
    _cffi_backend.cp36-win_amd64.pyd!00007ffd8d860258() Unknown
    _cffi_backend.cp36-win_amd64.pyd!PyInit__cffi_backend() + 6948 bytes    Unknown
    python36.dll!_PyCFunction_FastCallDict() + 386 bytes    Unknown
    python36.dll!PyObject_CallFunctionObjArgs() + 899 bytes Unknown
    python36.dll!_PyEval_EvalFrameDefault() + 969 bytes Unknown
    python36.dll!_Py_CheckFunctionResult() + 779 bytes  Unknown
    python36.dll!PyOS_FSPath() + 565 bytes  Unknown
    python36.dll!PyOS_FSPath() + 279 bytes  Unknown
    python36.dll!_PyEval_EvalFrameDefault() + 13746 bytes   Unknown
    python36.dll!_Py_CheckFunctionResult() + 779 bytes  Unknown
    python36.dll!PyObject_CallFunctionObjArgs() + 2031 bytes    Unknown
    python36.dll!_PyEval_EvalFrameDefault() + 969 bytes Unknown
    python36.dll!PyObject_CallFunctionObjArgs() + 1374 bytes    Unknown
    python36.dll!_PyEval_EvalFrameDefault() + 969 bytes Unknown
    python36.dll!PyObject_CallFunctionObjArgs() + 1374 bytes    Unknown
    python36.dll!_PyEval_EvalFrameDefault() + 969 bytes Unknown
    python36.dll!PyObject_CallFunctionObjArgs() + 1374 bytes    Unknown
    python36.dll!_PyEval_EvalFrameDefault() + 969 bytes Unknown
    python36.dll!_PyFunction_FastCallDict() + 218 bytes Unknown
    python36.dll!_PyObject_FastCallDict() + 321 bytes   Unknown
    python36.dll!_PyObject_CallMethodIdObjArgs() + 176 bytes    Unknown
    python36.dll!PyImport_ImportModuleLevelObject() + 529 bytes Unknown
    python36.dll!_PyEval_EvalFrameDefault() + 12700 bytes   Unknown
    python36.dll!_Py_CheckFunctionResult() + 779 bytes  Unknown
    python36.dll!PyEval_EvalCodeEx() + 155 bytes    Unknown
    python36.dll!PyEval_EvalCode() + 45 bytes   Unknown
    python36.dll!PyArena_Free() + 167 bytes Unknown
    python36.dll!PyRun_InteractiveOneObject() + 715 bytes   Unknown
    python36.dll!PyRun_InteractiveLoopFlags() + 240 bytes   Unknown
    python36.dll!PyRun_AnyFileExFlags() + 69 bytes  Unknown
    python36.dll!00000000537caf44() Unknown
    python36.dll!000000005374e57a() Unknown
    python.exe!000000001c1a126d()   Unknown
    kernel32.dll!BaseThreadInitThunk() + 20 bytes   Unknown
    ntdll.dll!RtlUserThreadStart() + 33 bytes   Unknown
我还不能确定为什么会发生这种情况,但降级sounddevice已经修复了它。就我个人而言,sounddevice 0.3.8是最后一款有效的设备

C:\>python -m pip install sounddevice==
ERROR: Could not find a version that satisfies the requirement sounddevice== (from versions: 0.1.0, 0.2.0, 0.2.1, 0.2.2, 0.3.0, 0.3.1, 0.3.2, 0.3.3, 0.3.4, 0.3.5, 0.3.6, 0.3.7, 0.3.8, 0.3.9, 0.3.10, 0.3.11, 0.3.12, 0.3.13, 0.3.14, 0.3.15, 0.4.0)
ERROR: No matching distribution found for sounddevice==

C:\>python -m pip install sounddevice==0.4.0
Collecting sounddevice==0.4.0
Installing collected packages: sounddevice
Successfully installed sounddevice-0.4.0

C:\>python
Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 17:00:18) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sounddevice

C:\>python -m pip install sounddevice==0.3.9
Collecting sounddevice==0.3.9
Installing collected packages: sounddevice
  Attempting uninstall: sounddevice
    Found existing installation: sounddevice 0.4.0
    Uninstalling sounddevice-0.4.0:
      Successfully uninstalled sounddevice-0.4.0
Successfully installed sounddevice-0.3.9

C:\>python
Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 17:00:18) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sounddevice

C:\>python -m pip install sounddevice==0.3.8
Collecting sounddevice==0.3.8
Installing collected packages: sounddevice
  Attempting uninstall: sounddevice
    Found existing installation: sounddevice 0.3.9
    Uninstalling sounddevice-0.3.9:
      Successfully uninstalled sounddevice-0.3.9
Successfully installed sounddevice-0.3.8

C:\>python
Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 17:00:18) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sounddevice
>>> exit()

C:\>

我最近也遇到了这个问题。简单地运行“import sounddevice”会使Python崩溃将sounddevice降级到0.3.8为我解决了此问题。

如果附加调试器,则会报告崩溃

Unhandled exception at 0x00007FFDBD20CB98 (InProcessClient64.dll) in python.exe: An invalid parameter was passed to a function that considers invalid parameters fatal.

>   InProcessClient64.dll!00007ffdbd20cb98()    Unknown
    InProcessClient64.dll!00007ffdbd20cb2d()    Unknown
    InProcessClient64.dll!00007ffdbd20cb49()    Unknown
    InProcessClient64.dll!00007ffdbd2128b2()    Unknown
    InProcessClient64.dll!00007ffdbd1b705b()    Unknown
    InProcessClient64.dll!00007ffdbd17bf89()    Unknown
    InProcessClient64.dll!00007ffdbd1a6a29()    Unknown
    InProcessClient64.dll!00007ffdbd17bea8()    Unknown
    _cffi_backend.cp36-win_amd64.pyd!00007ffd8d860258() Unknown
    _cffi_backend.cp36-win_amd64.pyd!PyInit__cffi_backend() + 6948 bytes    Unknown
    python36.dll!_PyCFunction_FastCallDict() + 386 bytes    Unknown
    python36.dll!PyObject_CallFunctionObjArgs() + 899 bytes Unknown
    python36.dll!_PyEval_EvalFrameDefault() + 969 bytes Unknown
    python36.dll!_Py_CheckFunctionResult() + 779 bytes  Unknown
    python36.dll!PyOS_FSPath() + 565 bytes  Unknown
    python36.dll!PyOS_FSPath() + 279 bytes  Unknown
    python36.dll!_PyEval_EvalFrameDefault() + 13746 bytes   Unknown
    python36.dll!_Py_CheckFunctionResult() + 779 bytes  Unknown
    python36.dll!PyObject_CallFunctionObjArgs() + 2031 bytes    Unknown
    python36.dll!_PyEval_EvalFrameDefault() + 969 bytes Unknown
    python36.dll!PyObject_CallFunctionObjArgs() + 1374 bytes    Unknown
    python36.dll!_PyEval_EvalFrameDefault() + 969 bytes Unknown
    python36.dll!PyObject_CallFunctionObjArgs() + 1374 bytes    Unknown
    python36.dll!_PyEval_EvalFrameDefault() + 969 bytes Unknown
    python36.dll!PyObject_CallFunctionObjArgs() + 1374 bytes    Unknown
    python36.dll!_PyEval_EvalFrameDefault() + 969 bytes Unknown
    python36.dll!_PyFunction_FastCallDict() + 218 bytes Unknown
    python36.dll!_PyObject_FastCallDict() + 321 bytes   Unknown
    python36.dll!_PyObject_CallMethodIdObjArgs() + 176 bytes    Unknown
    python36.dll!PyImport_ImportModuleLevelObject() + 529 bytes Unknown
    python36.dll!_PyEval_EvalFrameDefault() + 12700 bytes   Unknown
    python36.dll!_Py_CheckFunctionResult() + 779 bytes  Unknown
    python36.dll!PyEval_EvalCodeEx() + 155 bytes    Unknown
    python36.dll!PyEval_EvalCode() + 45 bytes   Unknown
    python36.dll!PyArena_Free() + 167 bytes Unknown
    python36.dll!PyRun_InteractiveOneObject() + 715 bytes   Unknown
    python36.dll!PyRun_InteractiveLoopFlags() + 240 bytes   Unknown
    python36.dll!PyRun_AnyFileExFlags() + 69 bytes  Unknown
    python36.dll!00000000537caf44() Unknown
    python36.dll!000000005374e57a() Unknown
    python.exe!000000001c1a126d()   Unknown
    kernel32.dll!BaseThreadInitThunk() + 20 bytes   Unknown
    ntdll.dll!RtlUserThreadStart() + 33 bytes   Unknown
我还不能确定为什么会发生这种情况,但降级sounddevice已经修复了它。就我个人而言,sounddevice 0.3.8是最后一款有效的设备

C:\>python -m pip install sounddevice==
ERROR: Could not find a version that satisfies the requirement sounddevice== (from versions: 0.1.0, 0.2.0, 0.2.1, 0.2.2, 0.3.0, 0.3.1, 0.3.2, 0.3.3, 0.3.4, 0.3.5, 0.3.6, 0.3.7, 0.3.8, 0.3.9, 0.3.10, 0.3.11, 0.3.12, 0.3.13, 0.3.14, 0.3.15, 0.4.0)
ERROR: No matching distribution found for sounddevice==

C:\>python -m pip install sounddevice==0.4.0
Collecting sounddevice==0.4.0
Installing collected packages: sounddevice
Successfully installed sounddevice-0.4.0

C:\>python
Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 17:00:18) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sounddevice

C:\>python -m pip install sounddevice==0.3.9
Collecting sounddevice==0.3.9
Installing collected packages: sounddevice
  Attempting uninstall: sounddevice
    Found existing installation: sounddevice 0.4.0
    Uninstalling sounddevice-0.4.0:
      Successfully uninstalled sounddevice-0.4.0
Successfully installed sounddevice-0.3.9

C:\>python
Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 17:00:18) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sounddevice

C:\>python -m pip install sounddevice==0.3.8
Collecting sounddevice==0.3.8
Installing collected packages: sounddevice
  Attempting uninstall: sounddevice
    Found existing installation: sounddevice 0.3.9
    Uninstalling sounddevice-0.3.9:
      Successfully uninstalled sounddevice-0.3.9
Successfully installed sounddevice-0.3.8

C:\>python
Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 17:00:18) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sounddevice
>>> exit()

C:\>

我刚试过,效果很好,没有碰撞!!!告诉我你的系统是86x还是64xbit?您使用了哪种python安装程序?@MayurSatav我正在运行64位Windows 10,并使用了python中的python安装程序。模块是通过PipCharm安装的。请您尝试在调试器中运行它(逐行)以找出哪一行导致崩溃?@Matthias我尝试对PyCharm执行相同的操作,我使用退出代码-1073741786(0xC0000026)完成了此
过程。
没有其他内容。您可以尝试在PyCharm的调试器中运行它(逐行)想知道是哪条线路导致了碰撞?我只是试了一下,效果很好,没有碰撞!!!告诉我你的系统是86x还是64xbit?您使用了哪种python安装程序?@MayurSatav我正在运行64位Windows 10,并使用了python中的python安装程序。模块是通过PipCharm安装的。请您尝试在调试器中运行它(逐行)以找出哪一行导致崩溃?@Matthias我尝试对PyCharm执行相同的操作,我使用退出代码-1073741786(0xC0000026)完成了此
过程。
没有其他内容。您可以尝试在PyCharm的调试器中运行它(逐行)想知道是哪一行导致了车祸?嗨,谢谢你的回复。我确实试过,但还是一样的问题(很抱歉,没有成功。如果你找到另一个解决方案,我也很乐意知道。这是一个好问题。也许如果你以另一种方式运行程序,也许是IDE,那么会有更大的错误消息供我们查看。我用PyCharm尝试了同样的方法,得到了这个结果。
过程以退出代码-1073741786(0xC0000026)完成
没什么了!嗨,谢谢你的回复。我确实试过了,但还是一样的问题:(很抱歉,没有成功。如果你找到另一个解决方案,我也很乐意知道。这是一个好问题。也许如果你以另一种方式运行程序,也许是IDE,那么会有更大的错误消息供我们查看。我用PyCharm尝试了同样的方法,得到了这个结果。
过程以退出代码-1073741786(0xC0000026)完成
没别的了!