[Çözüldü] Kivy Designer Açılmıyor!

Başlatan ankyra, 21 Kasım 2015 - 15:51:08

« önceki - sonraki »

0 Üyeler ve 1 Ziyaretçi konuyu incelemekte.

ankyra

Arkadaşlar kivy designer için gerekli yüklemeleri yaptım. Fakat açılmıyor.


Kivy designer klasöründe şu komutu veriyorum:

/kivy-designer-master$ sudo python3 main.py

Ve şu  çıktıyı alıyorum:


[INFO   ] [Logger      ] Record log in /home/zafer-ufuk/.kivy/logs/kivy_15-11-21_5.txt
[INFO   ] [Kivy        ] v1.9.0
[INFO   ] [Python      ] v3.4.3+ (default, Oct 14 2015, 16:03:50)
[GCC 5.2.1 20151010]
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_gif, img_sdl2, img_pil (img_ffpyplayer ignored)
[INFO   ] [Factory     ] 173 symbols loaded
[INFO   ] [Text        ] Provider: sdl2
[INFO   ] [OSC         ] using <multiprocessing> for socket
[INFO   ] [Window      ] Provider: sdl2(['window_egl_rpi'] ignored)
[CRITICAL] [Window      ] Unable to find any valuable Window provider at all!
egl_rpi - ImportError: cannot import name 'bcm'
  File "/usr/lib/python3/dist-packages/kivy/core/__init__.py", line 57, in core_select_lib
    fromlist=[modulename], level=0)
  File "/usr/lib/python3/dist-packages/kivy/core/window/window_egl_rpi.py", line 12, in <module>
    from kivy.lib.vidcore_lite import bcm, egl

sdl2 - TypeError: expected bytes, str found
  File "/usr/lib/python3/dist-packages/kivy/core/__init__.py", line 65, in core_select_lib
    cls = cls()
  File "/usr/lib/python3/dist-packages/kivy/core/window/window_sdl2.py", line 121, in __init__
    super(WindowSDL, self).__init__()
  File "/usr/lib/python3/dist-packages/kivy/core/window/__init__.py", line 616, in __init__
    self.create_window()
  File "/usr/lib/python3/dist-packages/kivy/core/window/window_sdl2.py", line 171, in create_window
    self.fullscreen, resizable, state)
  File "kivy/core/window/_window_sdl2.pyx", line 60, in kivy.core.window._window_sdl2._WindowSDL2Storage.setup_window (kivy/core/window/_window_sdl2.c:1379)

x11 - ImportError: No module named 'kivy.core.window.window_x11'
  File "/usr/lib/python3/dist-packages/kivy/core/__init__.py", line 57, in core_select_lib
    fromlist=[modulename], level=0)

[CRITICAL] [App         ] Unable to get a Window, abort.
Exception ignored in: 'kivy.properties.dpi2px'
Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/kivy/utils.py", line 360, in __get__
     retval = self.func(inst)
   File "/usr/lib/python3/dist-packages/kivy/metrics.py", line 169, in dpi
     EventLoop.ensure_window()
   File "/usr/lib/python3/dist-packages/kivy/base.py", line 126, in ensure_window
     sys.exit(1)
SystemExit: 1
Traceback (most recent call last):
   File "main.py", line 2, in <module>
     from designer.app import DesignerApp
   File "/home/zafer-ufuk/Cython-Kivy/kivy-designer-master/designer/app.py", line 45, in <module>
     from designer.project_loader import ProjectLoader, ProjectLoaderException
   File "/home/zafer-ufuk/Cython-Kivy/kivy-designer-master/designer/project_loader.py", line 25, in <module>
     from designer.proj_watcher import ProjectWatcher
   File "/home/zafer-ufuk/Cython-Kivy/kivy-designer-master/designer/proj_watcher.py", line 5, in <module>
     from watchdog.events import FileSystemEventHandler
ImportError: No module named 'watchdog'


Ne yapmalıyım?


Mesaj tekrarı yüzünden mesajınız birleştirildi. Bu mesajın gönderim tarihi : 21 Kasım 2015 - 17:38:23

Arkadaşlar eski sorunları hallettim. Eksik modüller varmış. Şimdi de şöyle bir hata çıktı buna ne yapmalıyım:

[INFO   ] [Logger      ] Record log in /home/zafer-ufuk/.kivy/logs/kivy_15-11-21_19.txt
[INFO   ] [Kivy        ] v1.9.0
[INFO   ] [Python      ] v3.4.3+ (default, Oct 14 2015, 16:03:50)
[GCC 5.2.1 20151010]
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_gif, img_sdl2, img_pil (img_ffpyplayer ignored)
[INFO   ] [Factory     ] 173 symbols loaded
[INFO   ] [Text        ] Provider: sdl2
[INFO   ] [OSC         ] using <multiprocessing> for socket
[INFO   ] [Window      ] Provider: sdl2(['window_egl_rpi'] ignored)
[CRITICAL] [Window      ] Unable to find any valuable Window provider at all!
egl_rpi - ImportError: cannot import name 'bcm'
  File "/usr/lib/python3/dist-packages/kivy/core/__init__.py", line 57, in core_select_lib
    fromlist=[modulename], level=0)
  File "/usr/lib/python3/dist-packages/kivy/core/window/window_egl_rpi.py", line 12, in <module>
    from kivy.lib.vidcore_lite import bcm, egl

sdl2 - TypeError: expected bytes, str found
  File "/usr/lib/python3/dist-packages/kivy/core/__init__.py", line 65, in core_select_lib
    cls = cls()
  File "/usr/lib/python3/dist-packages/kivy/core/window/window_sdl2.py", line 121, in __init__
    super(WindowSDL, self).__init__()
  File "/usr/lib/python3/dist-packages/kivy/core/window/__init__.py", line 616, in __init__
    self.create_window()
  File "/usr/lib/python3/dist-packages/kivy/core/window/window_sdl2.py", line 171, in create_window
    self.fullscreen, resizable, state)
  File "kivy/core/window/_window_sdl2.pyx", line 60, in kivy.core.window._window_sdl2._WindowSDL2Storage.setup_window (kivy/core/window/_window_sdl2.c:1379)

x11 - ImportError: No module named 'kivy.core.window.window_x11'
  File "/usr/lib/python3/dist-packages/kivy/core/__init__.py", line 57, in core_select_lib
    fromlist=[modulename], level=0)

[CRITICAL] [App         ] Unable to get a Window, abort.
Exception ignored in: 'kivy.properties.dpi2px'
Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/kivy/utils.py", line 360, in __get__
     retval = self.func(inst)
   File "/usr/lib/python3/dist-packages/kivy/metrics.py", line 169, in dpi
     EventLoop.ensure_window()
   File "/usr/lib/python3/dist-packages/kivy/base.py", line 126, in ensure_window
     sys.exit(1)
SystemExit: 1
[INFO   ] [Clipboard   ] Provider: gtk3(['clipboard_dbusklipper'] ignored)
[CRITICAL] [App         ] Unable to get a Window, abort.

ata1

http://kivy.org/docs/installation/installation.html

For Ubuntu 15.04 and versions older than 12.04, this one should work:

şu kısıma bir göz at

ankyra

Saatlerdir baktım uğraştım eksik bir paket olduğunu düşünmüyorum. Her şey tam diye düşünüyorum. Yine de olmadı. Gördüğüm kadarıyla window hataları var. Niye veriyor bunları bilmiyorum.

ata1

http://stackoverflow.com/questions/30640429/how-to-get-kivy-run-in-a-virtual-box

şöyle bir şeye denk geldim. Bir inceleyin

hg clone https://bitbucket.org/pygame/pygame
cd pygame
python3 setup.py build
sudo python3 setup.py install
cd ..
sudo rm -rf pygame


aynı bu konunun alt kısımlarında detaylarda var
http://kivy.org/docs/installation/installation-linux.html#ubuntu-11-10-or-newer

ankyra

Evet bunu denemiştim. Yine denedim olmadı. :(


Neden bu kadar zor bir yüklemesi var anlamadım. Bunun Ubuntu Yazılım Merkezi'ne yüklenmesi lazım. O şekilde daha kolay olacaktır.

ata1


ankyra

Videoda Kivy'nin yüklenişini anlatmış. Kivy'yi yükledim zaten. pythonda import kivy dediğimde sorunsuzca import ediliyor. Fakat sorun designerin açılmasında onu halledemedim. Yardımlarınız için teşekkür ederim. Ne yazık ki kaynak çok az. :/

ata1

bilen çıkar umutsuzluğa kapılmayın  ;D mutlaka kuran ve kullanan vardır.

7hr33l3t73r

Asagidaki komutlarin ciklarini buraya gecebilirmisin?

#pip install -U watchdog pygments docutils jedi gitpython six kivy-garden
#pip install -r requirements.txt
$garden install filebrowser
python main.py

Ayrica asagidakileri de kurulu mu? diye kontrol etmeniz lazim.
python-pygame, Cython-kivy, nose, sdl2, sdl2_image, sdl2_ttf, sdl2_mixer
dc -e '[q]sa[ln0=aln256%Pln256/snlbx]sb207356256404211981204295703670388snlbxq'
https://www.getgnu.org/gnulinux/gnulinux-ipuclari/nasil-akillica-soru-sorulur.html

ankyra

Python 3 kullanmam sebebiyle komutları pip3 şeklinde verdim.

sudo pip3 install -U watchdog pygments docutils jedi gitpython six kivy-garden

The directory '/home/zafer-ufuk/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/zafer-ufuk/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already up-to-date: watchdog in /usr/local/lib/python3.4/dist-packages/watchdog-0.8.3-py3.4.egg
Collecting pygments
  Downloading Pygments-2.0.2-py3-none-any.whl (672kB)
    100% |████████████████████████████████| 675kB 110kB/s
Collecting docutils
  Downloading docutils-0.12-py3-none-any.whl (508kB)
    100% |████████████████████████████████| 512kB 244kB/s
Requirement already up-to-date: jedi in /usr/local/lib/python3.4/dist-packages/jedi-0.9.0-py3.4.egg
Requirement already up-to-date: gitpython in /usr/local/lib/python3.4/dist-packages/GitPython-1.0.1-py3.4.egg
Collecting six
  Downloading six-1.10.0-py2.py3-none-any.whl
Collecting kivy-garden
Requirement already up-to-date: PyYAML>=3.10 in /usr/local/lib/python3.4/dist-packages/PyYAML-3.11-py3.4-linux-x86_64.egg (from watchdog)
Requirement already up-to-date: argh>=0.24.1 in /usr/local/lib/python3.4/dist-packages/argh-0.26.1-py3.4.egg (from watchdog)
Requirement already up-to-date: pathtools>=0.1.1 in /usr/local/lib/python3.4/dist-packages/pathtools-0.1.2-py3.4.egg (from watchdog)
Requirement already up-to-date: gitdb>=0.6.4 in /usr/local/lib/python3.4/dist-packages (from gitpython)
Collecting requests (from kivy-garden)
  Downloading requests-2.8.1-py2.py3-none-any.whl (497kB)
    100% |████████████████████████████████| 499kB 277kB/s
Installing collected packages: pygments, docutils, six, requests, kivy-garden
  Found existing installation: Pygments 2.0.1
    Uninstalling Pygments-2.0.1:
      Successfully uninstalled Pygments-2.0.1
  Found existing installation: six 1.9.0
    Uninstalling six-1.9.0:
      Successfully uninstalled six-1.9.0
  Found existing installation: requests 2.7.0
    Uninstalling requests-2.7.0:
      Successfully uninstalled requests-2.7.0
Successfully installed docutils-0.12 kivy-garden-0.1.4 pygments-2.0.2 requests-2.8.1 six-1.10.0


-----------------

sudo pip3 install -r requirements.txt

The directory '/home/zafer-ufuk/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/zafer-ufuk/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied (use --upgrade to upgrade): kivy>=1.9 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 1))
Requirement already satisfied (use --upgrade to upgrade): pygments>=2.0 in /usr/local/lib/python3.4/dist-packages (from -r requirements.txt (line 2))
Requirement already satisfied (use --upgrade to upgrade): docutils>=0.12 in /usr/local/lib/python3.4/dist-packages (from -r requirements.txt (line 3))
Requirement already satisfied (use --upgrade to upgrade): watchdog>=0.8 in /usr/local/lib/python3.4/dist-packages/watchdog-0.8.3-py3.4.egg (from -r requirements.txt (line 4))
Requirement already satisfied (use --upgrade to upgrade): jedi>=0.9 in /usr/local/lib/python3.4/dist-packages/jedi-0.9.0-py3.4.egg (from -r requirements.txt (line 5))
Requirement already satisfied (use --upgrade to upgrade): gitpython>=1.0 in /usr/local/lib/python3.4/dist-packages/GitPython-1.0.1-py3.4.egg (from -r requirements.txt (line 6))
Requirement already satisfied (use --upgrade to upgrade): six>=1.10.0 in /usr/local/lib/python3.4/dist-packages (from -r requirements.txt (line 7))
Requirement already satisfied (use --upgrade to upgrade): kivy-garden in /usr/local/lib/python3.4/dist-packages (from -r requirements.txt (line 8))
Requirement already satisfied (use --upgrade to upgrade): PyYAML>=3.10 in /usr/local/lib/python3.4/dist-packages/PyYAML-3.11-py3.4-linux-x86_64.egg (from watchdog>=0.8->-r requirements.txt (line 4))
Requirement already satisfied (use --upgrade to upgrade): argh>=0.24.1 in /usr/local/lib/python3.4/dist-packages/argh-0.26.1-py3.4.egg (from watchdog>=0.8->-r requirements.txt (line 4))
Requirement already satisfied (use --upgrade to upgrade): pathtools>=0.1.1 in /usr/local/lib/python3.4/dist-packages/pathtools-0.1.2-py3.4.egg (from watchdog>=0.8->-r requirements.txt (line 4))
Requirement already satisfied (use --upgrade to upgrade): gitdb>=0.6.4 in /usr/local/lib/python3.4/dist-packages (from gitpython>=1.0->-r requirements.txt (line 6))
Requirement already satisfied (use --upgrade to upgrade): requests in /usr/local/lib/python3.4/dist-packages (from kivy-garden->-r requirements.txt (line 8))


------------------------

sudo garden install filebrowser

[INFO   ] [Logger      ] Record log in /home/zafer-ufuk/.kivy/logs/kivy_15-11-22_5.txt
[INFO   ] [Kivy        ] v1.9.0
[INFO   ] [Python      ] v3.4.3+ (default, Oct 14 2015, 16:03:50)
[GCC 5.2.1 20151010]
Garden package already installed in /home/zafer-ufuk/.kivy/garden/garden.filebrowser
Use --upgrade to upgrade.


-----------------

Dediğiniz paketler kurulu. Cython-kivy den kastınız ayrı ayrı cython ve kivy ise onlar da kurulu. Python 3 kullanıyorum demiştim. Bu sebeple pygame3 ve cython3 de kurulu.

python3 main.py

[INFO   ] [Logger      ] Record log in /home/zafer-ufuk/.kivy/logs/kivy_15-11-22_6.txt
[INFO   ] [Kivy        ] v1.9.0
[INFO   ] [Python      ] v3.4.3+ (default, Oct 14 2015, 16:03:50)
[GCC 5.2.1 20151010]
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_gif, img_sdl2, img_pil (img_ffpyplayer ignored)
[INFO   ] [Factory     ] 173 symbols loaded
[INFO   ] [Text        ] Provider: sdl2
[INFO   ] [OSC         ] using <multiprocessing> for socket
[INFO   ] [Window      ] Provider: sdl2(['window_egl_rpi'] ignored)
[CRITICAL] [Window      ] Unable to find any valuable Window provider at all!
egl_rpi - ImportError: cannot import name 'bcm'
  File "/usr/lib/python3/dist-packages/kivy/core/__init__.py", line 57, in core_select_lib
    fromlist=[modulename], level=0)
  File "/usr/lib/python3/dist-packages/kivy/core/window/window_egl_rpi.py", line 12, in <module>
    from kivy.lib.vidcore_lite import bcm, egl

sdl2 - TypeError: expected bytes, str found
  File "/usr/lib/python3/dist-packages/kivy/core/__init__.py", line 65, in core_select_lib
    cls = cls()
  File "/usr/lib/python3/dist-packages/kivy/core/window/window_sdl2.py", line 121, in __init__
    super(WindowSDL, self).__init__()
  File "/usr/lib/python3/dist-packages/kivy/core/window/__init__.py", line 616, in __init__
    self.create_window()
  File "/usr/lib/python3/dist-packages/kivy/core/window/window_sdl2.py", line 171, in create_window
    self.fullscreen, resizable, state)
  File "kivy/core/window/_window_sdl2.pyx", line 60, in kivy.core.window._window_sdl2._WindowSDL2Storage.setup_window (kivy/core/window/_window_sdl2.c:1379)

x11 - ImportError: No module named 'kivy.core.window.window_x11'
  File "/usr/lib/python3/dist-packages/kivy/core/__init__.py", line 57, in core_select_lib
    fromlist=[modulename], level=0)

[CRITICAL] [App         ] Unable to get a Window, abort.
Exception ignored in: 'kivy.properties.dpi2px'
Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/kivy/utils.py", line 360, in __get__
     retval = self.func(inst)
   File "/usr/lib/python3/dist-packages/kivy/metrics.py", line 169, in dpi
     EventLoop.ensure_window()
   File "/usr/lib/python3/dist-packages/kivy/base.py", line 126, in ensure_window
     sys.exit(1)
SystemExit: 1
[INFO   ] [Clipboard   ] Provider: gtk3(['clipboard_dbusklipper'] ignored)
[CRITICAL] [App         ] Unable to get a Window, abort.


7hr33l3t73r

#10
Acikcasi uygulamayi merak edip bende kurdum. :)
Size benzer hatalar ben de aldim ama guncel surumlerini kurarak sorunu cozdum.Sizin ciktilara da soyle bakinca guncel surumlerde olmadiginizi goruyorum.
Kivy 1.9.0 gibi.Guncelleme yapmanizi oneririm.Ozellike  kivy 1.9.1'e guncelleme yapmalisiniz.
dc -e '[q]sa[ln0=aln256%Pln256/snlbx]sb207356256404211981204295703670388snlbxq'
https://www.getgnu.org/gnulinux/gnulinux-ipuclari/nasil-akillica-soru-sorulur.html

ankyra

Öncelikle yardımlarınız için çok çok teşekkür ediyorum. 1.9.1'e güncelledim. Hiçbir sorun kalmadı. Bütün her şey tamam. Ve o kivy'nin de tam penceresi açılıyor!!! ki o da ne bir anda son bir hata ile kapanıyor. Hata şu: Parçalama arızası (çekirdek döküldü)

python3 main.py

Komutunu veriyorum sonra:

[INFO   ] [Logger      ] Record log in /home/zafer-ufuk/.kivy/logs/kivy_15-11-23_7.txt
[INFO   ] [Kivy        ] v1.9.1-dev
[INFO   ] [Python      ] v3.4.3+ (default, Oct 14 2015, 16:03:50)
[GCC 5.2.1 20151010]
[INFO   ] [Factory     ] 178 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_gif, img_sdl2, img_pil (img_ffpyplayer ignored)
[INFO   ] [Text        ] Provider: sdl2
[INFO   ] [OSC         ] using <multiprocessing> for socket
[INFO   ] [Window      ] Provider: sdl2(['window_egl_rpi'] ignored)
[INFO   ] [GL          ] OpenGL version <b'2.1 Mesa 11.0.2'>
[INFO   ] [GL          ] OpenGL vendor <b'X.Org R300 Project'>
[INFO   ] [GL          ] OpenGL renderer <b'Gallium 0.4 on ATI RV530'>
[INFO   ] [GL          ] OpenGL parsed version: 2, 1
[INFO   ] [GL          ] Shading version <b'1.20'>
[INFO   ] [GL          ] Texture max size <4096>
[INFO   ] [GL          ] Texture max units <16>
[INFO   ] [Window      ] auto add sdl2 input provider
[INFO   ] [Window      ] virtual keyboard not allowed, single mode, not docked
[INFO   ] [Clipboard   ] Provider: gtk3(['clipboard_dbusklipper'] ignored)
xclip version 0.12
Copyright (C) 2001-2008 Kim Saunders et al.
Distributed under the terms of the GNU GPL
[INFO   ] [Cutbuffer   ] Provider: xclip
[INFO   ] [CutBuffer   ] cut buffer support enabled
Parçalama arızası (çekirdek döküldü)


Her şey tamam. Ama son anda bu çekirdek ne diye dökülüyor anlamadım. Bıktırdım biliyorum. :D Ne yapabiliriz sizce?

7hr33l3t73r

#12
Acikcası bir fikrim yok.Ciktilarda da fazla bilgi yok.Debug mod veya  strace ile cikti almak gerekebilir.En azindan fikir sahibi olunabilir veya github adreslerine hata kaydı gecilebilir.Kurulan diger modulleri de guncellemek cozum olabilir.(Eger varsa)

$ strace -f -o kivy.log python main.py -d

Bir de soyle bir baglanti paylasayim, fikir sahibi olmaniz icin.
https://wiki.python.org/moin/DebuggingWithGdb
dc -e '[q]sa[ln0=aln256%Pln256/snlbx]sb207356256404211981204295703670388snlbxq'
https://www.getgnu.org/gnulinux/gnulinux-ipuclari/nasil-akillica-soru-sorulur.html

ankyra

Teşekkür ederim yardımlarınız için belki de sistemi yeniden kursam daha iyi olacak. Başka ubuntulu bilgisayarıma yükledim kivy'yi sorunsuz çalıştı orada. Teşekkürler.

7hr33l3t73r

Rica ederim.Calistirdiginiz sistemdeki surum numaralari da bizimle paylasirsaniz sevinirim.Moduller de dahil.En azindan diger kuracak arkadaslara yardimci olmasi icin.
dc -e '[q]sa[ln0=aln256%Pln256/snlbx]sb207356256404211981204295703670388snlbxq'
https://www.getgnu.org/gnulinux/gnulinux-ipuclari/nasil-akillica-soru-sorulur.html

ankyra

Alıntı yapılan: 817c0d3r - 26 Kasım 2015 - 17:52:45
Rica ederim.Calistirdiginiz sistemdeki surum numaralari da bizimle paylasirsaniz sevinirim.Moduller de dahil.En azindan diger kuracak arkadaslara yardimci olmasi icin.
Cython 0.23
Kivy: 1.9.1

Pencerenin açılması için xclip gerekiyor bir de. Bunu terminalde:

apt-cache search xclip

Şeklinde aratıp, ardından karşımıza çıkan xclip isimli paketin tam adını kopyalıyoruz.

sudo apt-get install paketinadi

Şeklinde de yükledikten sonra açılır. Eğer ki eksik paket olduğunu bize hata mesajı olarak verirse (Ör: import error: no module paketadi gibi.) Orada yazan eksik paketi yine yukarıda xclip'i yüklerken yüklediğimiz gibi yükleyebiliriz.

neynefes

Çözüldü olarak etiketlemeden mi kapatsak acaba?

ankyra

Alıntı yapılan: neynefes - 27 Kasım 2015 - 00:27:59
Çözüldü olarak etiketlemeden mi kapatsak acaba?

Başka ubuntulu bilgisayarda çalışırken diğer bilgisayarda bir sıkıntı yaratması sanıyorum benim bu programı yüklerken paketleri hunharca yüklememden oldu. :D Çözüldü diye kabul ettim. Yine de siz nasıl isterseniz öyle yapalım. :)

neynefes