์์ค์์ kivy๋ฅผ ์ปดํ์ผํ๋ ค๊ณ ํ๋ฉด ๋ค์ ์ค๋ฅ๊ฐ ๋ฐ์ํฉ๋๋ค.
cythoning .\kivy\graphics/svg.pyx to .\kivy\graphics\svg.c
Error compiling Cython file:
------------------------------------------------------------
...
end = time()
Logger.debug("Svg: Loaded {} in {:.2f}s".format(filename, end - start))
finally:
fd.close()
cdef void reload(self) except *:
^
------------------------------------------------------------
kivy\graphics\svg.pyx:469:9: 'reload' already defined
building 'kivy.graphics.svg' extension
C:\Python27\Scripts\gcc.exe -mdll -O -Wall -I.\kivy\include -IC:\Python27\include -I.\kivy\include -IC:\Python27\include -IC:\Python27\PC -c .\kivy\graphics\svg.c -o build\temp.win-amd64-2.7\Release\.\kivy\graphics\svg.o
.\kivy\graphics\svg.c:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation.
#error Do not use this file, it is the result of a failed Cython compilation.
^
error: command 'C:\\Python27\\Scripts\\gcc.exe' failed with exit status 1
๋๋ ์ด๊ฒ์ด ์ด ์ปค๋ฐ๊ณผ ๊ด๋ จ์ด ์๋ค๊ณ ์๊ฐํฉ๋๋ค: https://github.com/kivy/kivy/commit/ced5e6a7a6474b72722cef4e3470ed6bc58d1793. ๊ทธ ์ ์ ์ปค๋ฐ์ ํ์ธํ๋ฉด ์ฌ๋ฐ๋ฅด๊ฒ ์ปดํ์ผ๋ฉ๋๋ค.
Cython ๋ฒ์ ๋ ํ์ํ ์ ์์ต๋๊น?
๋ณ๊ฒฝ ์ฌํญ์ ํ๊ฒฝ๊ณผ ํจ๊ป ์ปดํ์ผ ๋๋ฉฐ ์ฌ๊ธฐ์ Cython 0.25.2
ํฉ๋๋ค. ์ด์ Cython์ด ์๊ณ ์ด ๋ณ๊ฒฝ ์ฌํญ์ X ๋ฒ์ ์ดํ์๋ง ์์ ์ ์์ต๋๋ค.
ํธ์ง: MinGW์ MinGWPy๋ ์ฝ๊ฐ ๋ค๋ฅด์ง๋ง ์ด๋ ์ชฝ์ด ๊ทธ๋ ๊ฒ ์๊ฐํ ๊น์? ๋ค์์ ์ฌ์ฉํ์ฌ ํ์๋ฅผ ์ค์นํ์ญ์์ค.
pip install -i https://pypi.anaconda.org/carlkl/simple mingwpy
๊ฐ์ฌํฉ๋๋ค. Cython 0.25์์ ์ฌ๋ฐ๋ฅด๊ฒ ์ปดํ์ผ๋ฉ๋๋ค! Cython 0.24๋ฅผ ์ฌ์ฉํ๊ณ ์์์ต๋๋ค. ์ค์น ๊ฐ์ด๋์์ ํ์ฌ Cython 0.25์ ๋ํ ์์กด๋๊ฐ ๋๋ค๋ ์ ์ ์ธ๊ธํ ๊ฐ์น๊ฐ ์์ต๋๋ค. ์ค์น ํ์ด์ง์๋ Cython 0.23์ด ๊ตต๊ฒ ํ์๋์ด ์์ต๋๋ค. https://kivy.org/docs/installation/installation.html
@sbrother ๊ฐ์ฌํฉ๋๋ค. ๋น์ ์ ๋ด ํ๋ฃจ๋ฅผ ์ ์ฅํฉ๋๋ค.
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
๊ฐ์ฌํฉ๋๋ค. Cython 0.25์์ ์ฌ๋ฐ๋ฅด๊ฒ ์ปดํ์ผ๋ฉ๋๋ค! Cython 0.24๋ฅผ ์ฌ์ฉํ๊ณ ์์์ต๋๋ค. ์ค์น ๊ฐ์ด๋์์ ํ์ฌ Cython 0.25์ ๋ํ ์์กด๋๊ฐ ๋๋ค๋ ์ ์ ์ธ๊ธํ ๊ฐ์น๊ฐ ์์ต๋๋ค. ์ค์น ํ์ด์ง์๋ Cython 0.23์ด ๊ตต๊ฒ ํ์๋์ด ์์ต๋๋ค. https://kivy.org/docs/installation/installation.html