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

Kivy with Python 3.5 (Ubuntu 17.04) #5364

Closed
openourweb opened this issue Sep 1, 2017 · 4 comments
Closed

Kivy with Python 3.5 (Ubuntu 17.04) #5364

openourweb opened this issue Sep 1, 2017 · 4 comments

Comments

@openourweb
Copy link

openourweb commented Sep 1, 2017

Versions

  • Python:python 3.5.3
  • OS: Ubuntu 17.04
  • Kivy:1.10
  • Kivy installation method:
    Conda did not have Kivy 3.5 package (Why?), so I use way in internet:
  1. sudo apt-get install -y python-pip build-essential git python python-dev ffmpeg libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev libportmidi-dev libswscale-dev libavformat-dev libavcodec-dev zlib1g-dev
  2. conda create -n kivyinstall
  3. source activate kivyinstall
    4.conda install --upgrade pip virtualenv setuptools
    5.sudo pip install --upgrade pip virtualenv setuptools
    6.pip install kivy

Description

What are you trying to get done:
Try to install Kivy on conda python3.5
what has happened
It success installed, but miss some part
what went wrong:
ImportError: No module named 'kivy.core.window.window_x11'
and what did you expect?
working

Code and Logs

# Importing the Kivy packages
from kivy.app import App
from kivy.uix.widget import Widget
from kivy.uix.button import Button
from kivy.graphics import Color, Ellipse, Line
from kivy.config import Config
from kivy.properties import NumericProperty, ReferenceListProperty, ObjectProperty
from kivy.vector import Vector
from kivy.clock import Clock

Error Logs:

[INFO   ] [Logger      ] Record log in /home/john/.kivy/logs/kivy_17-09-01_9.txt
[INFO   ] [Kivy        ] v1.10.0
[INFO   ] [Python      ] v3.5.3 |Anaconda custom (64-bit)| (default, Mar  6 2017, 11:58:13) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)]
[INFO   ] [Factory     ] 194 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_pil, img_gif (img_sdl2, img_ffpyplayer ignored)
[INFO   ] [Text        ] Provider: pil(['text_sdl2'] ignored)
[CRITICAL] [Window      ] Unable to find any valuable Window provider.
egl_rpi - ImportError: cannot import name 'bcm'
  File "/home/john/anaconda3/lib/python3.5/site-packages/kivy/core/__init__.py", line 59, in core_select_lib
    fromlist=[modulename], level=0)
  File "/home/john/anaconda3/lib/python3.5/site-packages/kivy/core/window/window_egl_rpi.py", line 12, in <module>
    from kivy.lib.vidcore_lite import bcm, egl

sdl2 - ImportError: /home/john/anaconda3/lib/python3.5/site-packages/numexpr/../../../libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib/x86_64-linux-gnu/libmodplug.so.1)
  File "/home/john/anaconda3/lib/python3.5/site-packages/kivy/core/__init__.py", line 59, in core_select_lib
    fromlist=[modulename], level=0)
  File "/home/john/anaconda3/lib/python3.5/site-packages/kivy/core/window/window_sdl2.py", line 26, in <module>
    from kivy.core.window._window_sdl2 import _WindowSDL2Storage

x11 - ImportError: No module named 'kivy.core.window.window_x11'
  File "/home/john/anaconda3/lib/python3.5/site-packages/kivy/core/__init__.py", line 59, in core_select_lib
    fromlist=[modulename], level=0)

[CRITICAL] [App         ] Unable to get a Window, abort.

env:(kivyinstall) john@john-P37V6:~$ python3 -c "import kivy"
[WARNING] [Config      ] Older configuration version detected (14 instead of 19)
[WARNING] [Config      ] Upgrading configuration in progress.
[INFO   ] [Logger      ] Record log in /home/john/.kivy/logs/kivy_17-09-01_11.txt
[INFO   ] [Kivy        ] v1.10.0
[INFO   ] [Python      ] v3.5.3 |Anaconda custom (64-bit)| (default, Mar  6 2017, 11:58:13) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)]
@clayote
Copy link
Contributor

clayote commented Sep 3, 2017

You can get more informative logs by extracting the Kivy source package somewhere, cd'ing to it, and running python3 setup.py build_ext

@dolang
Copy link
Contributor

dolang commented Sep 23, 2017

This looks a bit like the problem in #5348. Is this on a VM as well?

Not sure if this will work for you as well, but can you try setting the environment variable KIVY_GL_BACKEND=sdl2 as I mentioned there?

I'd be curious to know if that helps you, too.

@tito tito self-assigned this Oct 4, 2018
@tito
Copy link
Member

tito commented Oct 4, 2018

It is not the same as #5348.
The real issue is: sdl2 - ImportError: /home/john/anaconda3/lib/python3.5/site-packages/numexpr/../../../libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib/x86_64-linux-gnu/libmodplug.so.1)

You have a clash with your anaconda libraries and system libraries: look, it tries to use libstdc++ from your conda environment, but it uses libmodplug on your system. I bet if you do ldd /usr/lib/x86_64-linux-gnu/libmodplug.so.1, it will show the libstdc++ of your system, not the one from conda.

So fix your conda environment, or install libmodplug in conda.
(just a guess, this is not a Kivy issue itself.^)

Sprint pycon-fr 2018 automation moved this from todo to closed Oct 4, 2018
@tito tito added this to todo in Sprint pycon-fr 2018 via automation Oct 4, 2018
@tito tito added the support label Oct 4, 2018
@support
Copy link

support bot commented Oct 4, 2018

👋 We use the issue tracker exclusively for bug reports and feature requests. However, this issue appears to be a support request. Please use our support channels to get help with the project.

If you're having trouble installing Kivy, make sure to check out the installation docs for Windows, Linux and macOS.

Let us know if this comment was made in error, and we'll be happy to reopen the issue.

@support support bot closed this as completed Oct 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

4 participants