-
Notifications
You must be signed in to change notification settings - Fork 498
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
#error from Cython compilation #150
Comments
I have faced the same error with the cython version 21, I don't know how to solve that in order to compile kivy with higher API levels .... But if u wanna downgrade cython try : sudo pip install Cython==0.17.1 |
For me it keeps failing even after downgrading to 0.17.1 |
Same issue. But I have cython! |
Try it with version 0.20 - this one should work. (pip uninstall cython && pip install cython==0.20). If it still fails, then I don't know how to fix it |
Still same error and muliple instances of error related to:- Error compiling Cython file:...
kivy/graphics/vertex_instructions.pyx:107:27: '_dash_length' redeclared Finally stops with :- |
ohaz said:
Exactly! Thanks. By the way, I'm using virtualenv (on Ubuntu 14.10). Maybe we should edit the step by step guide here: http://kivy.org/docs/installation/installation-linux.html (since cython==0.22 can't work) |
Same here. I got it to work yesterday on a fresh raspbian/raspberry pi 2 with following steps:
Meanwhile I have installed some additional packages and now I cannot get it to work any more. I think this suggests that the problem is caused by the build env. I think I have installed libgstreamer1.0 meanwhile. And I can also see 'use_gstreamer = True' at the beginning of the build. Strange how that would be related to an error in vertex instructions. Maybe it is due to another lib, I don't remember exactly, but I also installed some sdl packages. |
This builds: This doesn't:
Only difference is use_rpi = True |
None of the help above fixes issue for my pc. |
Hello, I had the same error on ArchLinux. |
could please anybody explain, why kivy doesn't work with cython 0.22? |
@LuxoftAKutsan Cython 0.22 introduced a breaking change in an api that kivy used significantly. This isn't uncommon in itself, but in this case the obvious fix had significant performance implications, and we were not sure if the cython team would consider it a bug and fix it or if we should find a workaround. The reality seems to be that we will implement a middle-ground fix with small performance implications, but this took a little time to sort out for the above reasons. I don't know for sure if/when we will apply such a fix. |
I tried installing cython 0.20....it perfectly works now
|
Tried successfully with 0.21 sudo pip install Cython==0.21 |
Thank you @ohaz |
Im on ubuntu 14.04 and for me it worked with cython==0.20.1 and it was install from apt-get and not pip. |
This issue is a mess, there are multiple different issues all being piled into one place. Some of these issues seem to be related to older Kivy versions; if you can duplicate these issues with the current version then please open a new issue. As for this one: C attributes cannot be added in implementation part of extension type defined in a pxd This is a known issue due to a bug in Cython. Kivy installs the .pxd files so that you can build your own code against Kivy's Cython code. But Cython checks the site packages path for .pxd files FIRST, and then checks the local folder. So if there is a conflict between the newer dev version and the older installed version, you will get this error. The only workaround currently is to uninstall the currently installed version of Kivy, or make sure the installed version matches the version you are trying to build with buildozer. |
when i tried to install the development environment in raspberry b+ and experienced the similar problems as follow, the Cython version is 0.23 Error compiling Cython file:
“ ------------------------------------------------------------” kivy/graphics/svg.pyx:469:9: 'reload' already defined |
@frankforp your issue seem to be better tracked at kivy/kivy#5228 |
running python 2.7.13 Try installing cython with root privileges. |
@tshirtman , I'm sorry for the late reply, Thank you very much for your reply, Thanks, |
Welcome Frank
…On Sep 7, 2017 5:47 AM, "frankforp" ***@***.***> wrote:
@tshirtman <https://github.com/tshirtman> , I'm sorry for the late reply,
Thank you very much for your reply,
That problem is very similar to mine.
Thanks,
Frank
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#150 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AZu6-5pIJKfmUK_gaTuZF7jmrb0_SHDiks5sf1kugaJpZM4CtCpo>
.
|
for others successfully completed |
Hey all. so, this weekend i thought I would check this library out and play. while downloading the examples seems to run and work, any attempt to follow the install instructions and tutorials for running a simple "first app" fail. This was tried on the following combinations:
Thus, while the examples and web site look nice, you either have to butcher and patch from the examples to library trace or you spend more than 10 hours linking libs together just to get kivy to install.. all that to bring up a single window and get started.. Ill keep an eye out when the package gets a clean installation so we can explore the language, rather than pip :) Good luck! |
When I tried to downgrade Cython to 0.20 version, I receive this message:
Does anyone know how to solve this error? |
Hey folks,
I'm running Ubuntu 12.04, and I've followed the directions for installation of Cython. After running into this error,
I ran the following:
I deleted the .buildozer directory, then set about installing again:
But I'm still getting the same errors unfortunately.
When I run
cython -V
I get back Cython version 0.21
The text was updated successfully, but these errors were encountered: