Ubuntu 17.10 undefined symbol: PyFPE_jbuf

1,167 views
Skip to first unread message

rogerf...@gmail.com

unread,
Jan 20, 2018, 7:02:15 AM1/20/18
to Kivy users support
Hello there,
I am having fresh Ubuntu 17.10 installation.

This is what happens:

from https://askubuntu.com/questions/981118/correct-way-to-install-python-2-7-on-ubuntu-17-10

sudo apt update

sudo apt dist-upgrade

sudo apt install python2.7 python-pip

sudo apt install python3-pip

sudo add-apt-repository ppa:kivy-team/kivy

sudo apt-get update

sudo apt-get install python-kivy

create main.py

    import kivy
    kivy.require('1.0.6') # replace with your current kivy version !

    from kivy.app import App
    from kivy.uix.label import Label


    class MyApp(App):

        def build(self):
        return Label(text='Hello world')


    if __name__ == '__main__':
        MyApp().run()


I get this:

lasse@dell:~/pyyton$ python main.py
[INFO   ] [Logger      ] Record log in /home/lasse/.kivy/logs/kivy_18-01-20_1.txt
[INFO   ] [Kivy        ] v1.10.0
[INFO   ] [Python      ] v2.7.14 (default, Sep 23 2017, 22:06:14)
[GCC 7.2.0]
 Traceback (most recent call last):
   File "main.py", line 4, in <module>
     from kivy.app import App
   File "/usr/lib/python2.7/dist-packages/kivy/app.py", line 319, in <module>
     from kivy.base import runTouchApp, stopTouchApp
   File "/usr/lib/python2.7/dist-packages/kivy/base.py", line 30, in <module>
     from kivy.event import EventDispatcher
   File "/usr/lib/python2.7/dist-packages/kivy/event.py", line 8, in <module>
     import kivy._event
 ImportError: /usr/lib/python2.7/dist-packages/kivy/_event.x86_64-linux-gnu.so: undefined symbol: PyFPE_jbuf

Help appreciated

ZenCODE

unread,
Jan 20, 2018, 1:19:21 PM1/20/18
to Kivy users support
There is a problem with the binary package on 17.10. Try building Kivy from source. That should work.

rogerf...@gmail.com

unread,
Jan 20, 2018, 3:25:34 PM1/20/18
to Kivy users support
It seems to work, but there is [critical] at log:
[INFO   ] Logger: Record log in /home/lasse/.kivy/logs/kivy_18-01-20_5.txt
[INFO   ] Kivy: v1.10.1.dev0, git-33aad99, 20180120

[INFO   ] Python: v2.7.14 (default, Sep 23 2017, 22:06:14)
[GCC 7.2.0]
[INFO   ] Factory: 194 symbols loaded
[INFO   ] Image: Providers: img_tex, img_dds, img_pygame, img_gif (img_pil, img_ffpyplayer ignored)
[INFO   ] Window: Provider: pygame(['window_egl_rpi'] ignored)
[WARNING] WinPygame: Video: failed (multisamples=2)
[WARNING] WinPygame: trying without antialiasing
[INFO   ] GL: Using the "OpenGL" graphics system
[INFO   ] GL: Backend used <gl>
[INFO   ] GL: OpenGL version <3.0 Mesa 17.2.4>
[INFO   ] GL: OpenGL vendor <Intel Open Source Technology Center>
[INFO   ] GL: OpenGL renderer <Mesa DRI Intel(R) Sandybridge Mobile >
[INFO   ] GL: OpenGL parsed version: 3, 0
[INFO   ] GL: Shading version <1.30>
[INFO   ] GL: Texture max size <8192>
[INFO   ] GL: Texture max units <16>
[INFO   ] Window: virtual keyboard not allowed, single mode, not docked
[INFO   ] Text: Provider: pygame
[INFO   ] Clipboard: Provider: gtk3(['clipboard_dbusklipper'] ignored)
[CRITICAL] Cutbuffer: Unable to find any valuable Cutbuffer provider.
xclip - OSError: [Errno 2] No such file or directory
  File "/usr/local/lib/python2.7/dist-packages/kivy/core/__init__.py", line 59, in core_select_lib
    fromlist=[modulename], level=0)
  File "/usr/local/lib/python2.7/dist-packages/kivy/core/clipboard/clipboard_xclip.py", line 17, in <module>
    p = subprocess.Popen(['xclip', '-version'], stdout=subprocess.PIPE)
  File "/usr/lib/python2.7/subprocess.py", line 390, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1025, in _execute_child
    raise child_exception

xsel - OSError: [Errno 2] No such file or directory
  File "/usr/local/lib/python2.7/dist-packages/kivy/core/__init__.py", line 59, in core_select_lib
    fromlist=[modulename], level=0)
  File "/usr/local/lib/python2.7/dist-packages/kivy/core/clipboard/clipboard_xsel.py", line 16, in <module>
    p = subprocess.Popen(['xsel'], stdout=subprocess.PIPE)
  File "/usr/lib/python2.7/subprocess.py", line 390, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1025, in _execute_child
    raise child_exception

[INFO   ] OSC: using <multiprocessing> for socket
[INFO   ] ProbeSysfs: device match: /dev/input/event6
[INFO   ] MTD: Read event from </dev/input/event6>
[INFO   ] Base: Start application main loop
[WARNING] MTD: Unable to open device "/dev/input/event6". Please ensure you have the appropriate permissions.
[INFO   ] GL: NPOT texture support is available
[INFO   ] Base: Leaving application in progress...

rogerf...@gmail.com

unread,
Jan 21, 2018, 4:08:32 AM1/21/18
to Kivy users support
This worked for that Cutbuffer: Unable to find any valuable Cutbuffer provide

sudo apt-get install xclip
Reply all
Reply to author
Forward
0 new messages