'错误编译Cython文件错误'从一天到另一天

时间:2018-04-10 01:04:40

标签: windows python-3.x cython spyder

我使用Hun语言中的很多特殊字符,以前没有问题。现在,他们在运行整个脚本时都会出错(F9)。在本地运行时它仍然运行完美(选择+ F5)。

Fúú='bar'

回溯:

C:\Users\my name\.ipython\cython\_cython_magic_21a3824690cdb52a9fe6a3fa1c63ee73.pyx:1:1: Unrecognized character
Traceback (most recent call last):

  File "<ipython-input-6-dcfab52d0ff4>", line 1, in <module>
    runfile('E:/Anyagok/Programozas/Python/projekts/elo/mindennap/untitled0.pyx', wdir='E:/Anyagok/Programozas/Python/projekts/elo/mindennap')

  File "E:\Download\PROGIK\ANACONDA\lib\site-packages\spyder\utils\site\sitecustomize.py", line 703, in runfile
    ipython_shell.run_cell_magic('cython', '', f.read())

  File "E:\Download\PROGIK\ANACONDA\lib\site-packages\IPython\core\interactiveshell.py", line 2131, in run_cell_magic
    result = fn(magic_arg_s, cell)

  File "<decorator-gen-130>", line 2, in cython

  File "E:\Download\PROGIK\ANACONDA\lib\site-packages\IPython\core\magic.py", line 187, in <lambda>
    call = lambda f, *a, **k: f(*a, **k)

  File "E:\Download\PROGIK\ANACONDA\lib\site-packages\Cython\Build\IpythonMagic.py", line 321, in cython
    assert len(extensions) == 1

TypeError: object of type 'NoneType' has no len()

如果我改为例如

Fuu='bar'

效果很好。为什么突然改变心脏?

编辑: 昨天一直在搞乱FFMPEG和LIBAV,因为想下载并将Youtube视频转换成mp3。但我很确定我在这之后成功运行了带有这些字符的脚本。

0 个答案:

没有答案