[Çözüldü] pychopy açılmıyor

Başlatan lafurus, 05 Mart 2018 - 15:55:32

« önceki - sonraki »

0 Üyeler ve 1 Ziyaretçi konuyu incelemekte.

lafurus

sudo apt get install pychopy komutuyla pychopy paketini kurdum, herhangi bir hata almadım ama çalıştırmaya çalıştığımda direk kapanıyor. Terminalden çalıştırınca ise çıktı şu:
fatal: Not a git repository (or any of the parent directories): .git
03:49:40 PM: Debug: Failed to connect to session manager: SESSION_MANAGER environment variable not defined

systmrrr

sudo apt install git

dene bi sonra acmayi dene

veya komut satiriyla github hesabi acman gerekebilir

lafurus

#2
Teşekkür ederim cevabınız için, sudo apt install git çıktısı şu şekilde:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
git is already the newest version (1:2.7.4-0ubuntu1.3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


get update ve upgrade komutlarını da verdikten sonra yine bu çıktıyı alıyorum install git'de fakat psychopy'da değişen bir şey yok. Hala aynı durum ve terminalden başlatınca aynı hatayı veriyor.

Edit:
python'u açıp, psychopy'ı import etmeye çalıştığımda da sonuç bu şekilde:
>>> import psychopy
fatal: Not a git repository (or any of the parent directories): .git


sudo apt install psycohpy komutu ile yüklemiştim. ama daha bu komutu birkaç denemeden sonra çalıştırabilmiştim psychopy depoda bulunamadı gibi birkaç hata almıştım öncesinde.

.py

Indırme biraz zaman alabilir. (test ettim sorun yok)

pip install numpy scipy matplotlib pandas pyopengl pyglet pillow moviepy lxml openpyxl xlrd configobj pyyaml gevent greenlet msgpack-python psutil tables requests[security] pyosf cffi pysoundcard pysoundfile seaborn psychopy_ext python-bidi psychopy
pip install pyserial pyparallel egi iolabs
pip install pytest coverage sphinx


pip kurulu değil ise:

sudo apt-get install python-pip python-dev build-essential


kaynak: http://psychopy.org/installation.html#conda

lafurus

#4
Edit: Başına sudo komutu koyup pip install komutlarını tek tek çalıştırdım. Sadece ikincide hata alıyorum şuan:
[lafurus@idea:~$ sudo pip install pyserial pyparallel egi iolabs
The directory '/home/lafurus/.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/lafurus/.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: pyserial in /usr/lib/python2.7/dist-packages
Collecting pyparallel
  Downloading pyparallel-0.2.2.tar.gz
Collecting egi
  Downloading egi-0.9.0-py2-none-any.whl
Collecting iolabs
  Downloading ioLabs-3.2.tar.gz (126kB)
    100% |████████████████████████████████| 133kB 335kB/s
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-gySni0/iolabs/setup.py", line 8, in <module>
        import ioLabs
      File "ioLabs.py", line 16, in <module>
        import hid
      File "hid/__init__.py", line 109, in <module>
        raise RuntimeError("could not find a module for this operating system")
    RuntimeError: could not find a module for this operating system
   
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-gySni0/iolabs/


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

Bunu da denemiştim fakat burada da bazı hatalar alıyorum. Öncelikle şunu paylaşım:
sudo apt-get install python-pip python-dev build-essential
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version (12.1ubuntu2).
python-dev is already the newest version (2.7.12-1~16.04).
python-pip is already the newest version (8.1.1-2ubuntu0.4).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


pip kurulumunda bir sorun yok gibi duruyor. Yalnız şöyle bir şey sabah yine bir python paketini pipten kurmak için pip kurulumu yapmıştım. Paketi de kurmuştum ama pip versiyonun güncel değil şeklinde bir hata alınca update etmiştim. Kurulumdan hemen sonra olmuş olması ilginç gelmişti.  pip --version:
pip 9.0.1 from /home/lafurus/.local/lib/python2.7/site-packages (python 2.7)

Dediğiniz şekilde kurmaya çalışırken ise aldığım çıktılar şöyle:
lafurus@idea:~$ pip install numpy scipy matplotlib pandas pyopengl pyglet pillow moviepy lxml openpyxl xlrd configobj pyyaml gevent greenlet msgpack-python psutil tables requests[security] pyosf cffi pysoundcard pysoundfile seaborn psychopy_ext python-bidi psychopy
Requirement already satisfied: numpy in /usr/lib/python2.7/dist-packages
Requirement already satisfied: scipy in /usr/lib/python2.7/dist-packages
Requirement already satisfied: matplotlib in /usr/lib/python2.7/dist-packages
Requirement already satisfied: pandas in /usr/lib/python2.7/dist-packages
Requirement already satisfied: pyopengl in /usr/lib/python2.7/dist-packages
Requirement already satisfied: pyglet in /usr/lib/python2.7/dist-packages
Requirement already satisfied: pillow in /usr/lib/python2.7/dist-packages
Collecting moviepy
  Using cached moviepy-0.2.3.2-py2.py3-none-any.whl
Requirement already satisfied: lxml in /usr/lib/python2.7/dist-packages
Requirement already satisfied: openpyxl in /usr/lib/python2.7/dist-packages
Requirement already satisfied: xlrd in /usr/lib/python2.7/dist-packages
Requirement already satisfied: configobj in /usr/lib/python2.7/dist-packages
Requirement already satisfied: pyyaml in /usr/lib/python2.7/dist-packages
Requirement already satisfied: gevent in /usr/lib/python2.7/dist-packages
Requirement already satisfied: greenlet in /usr/lib/python2.7/dist-packages
Requirement already satisfied: msgpack-python in /usr/lib/python2.7/dist-packages
Requirement already satisfied: psutil in /usr/lib/python2.7/dist-packages
Requirement already satisfied: tables in /usr/lib/python2.7/dist-packages
Collecting requests[security]
  Using cached requests-2.18.4-py2.py3-none-any.whl
Collecting pyosf
  Using cached pyosf-1.0.5-py2.py3-none-any.whl
Collecting cffi
  Using cached cffi-1.11.5-cp27-cp27mu-manylinux1_x86_64.whl
Collecting pysoundcard
  Using cached PySoundCard-0.5.2-py2.py3-none-any.whl
Collecting pysoundfile
  Using cached PySoundFile-0.9.0.post1-py2.py3-none-any.whl
Collecting seaborn
Collecting psychopy_ext
Collecting python-bidi
  Using cached python_bidi-0.4.0-py2.py3-none-any.whl
Requirement already satisfied: psychopy in /usr/lib/python2.7/dist-packages
Requirement already satisfied: python-dateutil in /usr/lib/python2.7/dist-packages (from pandas)
Requirement already satisfied: pytz>=2011k in /usr/lib/python2.7/dist-packages (from pandas)
Collecting imageio==2.1.2 (from moviepy)
Collecting tqdm==4.11.2 (from moviepy)
  Using cached tqdm-4.11.2-py2.py3-none-any.whl
Collecting decorator==4.0.11 (from moviepy)
  Using cached decorator-4.0.11-py2.py3-none-any.whl
Requirement already satisfied: jdcal in /usr/lib/python2.7/dist-packages (from openpyxl)
Requirement already satisfied: six in ./.local/lib/python2.7/site-packages (from configobj)
Collecting certifi>=2017.4.17 (from requests[security])
  Using cached certifi-2018.1.18-py2.py3-none-any.whl
Collecting chardet<3.1.0,>=3.0.2 (from requests[security])
  Using cached chardet-3.0.4-py2.py3-none-any.whl
Collecting idna<2.7,>=2.5 (from requests[security])
  Using cached idna-2.6-py2.py3-none-any.whl
Collecting urllib3<1.23,>=1.21.1 (from requests[security])
  Using cached urllib3-1.22-py2.py3-none-any.whl
Collecting cryptography>=1.3.4; extra == "security" (from requests[security])
  Using cached cryptography-2.1.4-cp27-cp27mu-manylinux1_x86_64.whl
Collecting pyOpenSSL>=0.14; extra == "security" (from requests[security])
  Using cached pyOpenSSL-17.5.0-py2.py3-none-any.whl
Collecting pycparser (from cffi)
Collecting enum34; python_version < "3" (from cryptography>=1.3.4; extra == "security"->requests[security])
  Using cached enum34-1.1.6-py2-none-any.whl
Collecting asn1crypto>=0.21.0 (from cryptography>=1.3.4; extra == "security"->requests[security])
  Using cached asn1crypto-0.24.0-py2.py3-none-any.whl
Collecting ipaddress; python_version < "3" (from cryptography>=1.3.4; extra == "security"->requests[security])
Installing collected packages: imageio, tqdm, decorator, moviepy, certifi, chardet, idna, urllib3, pycparser, cffi, enum34, asn1crypto, ipaddress, cryptography, pyOpenSSL, requests, pyosf, pysoundcard, pysoundfile, seaborn, psychopy-ext, python-bidi
[color=red]Exception:
Traceback (most recent call last):
  File "/home/lafurus/.local/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/home/lafurus/.local/lib/python2.7/site-packages/pip/commands/install.py", line 342, in run
    prefix=options.prefix_path,
  File "/home/lafurus/.local/lib/python2.7/site-packages/pip/req/req_set.py", line 784, in install
    **kwargs
  File "/home/lafurus/.local/lib/python2.7/site-packages/pip/req/req_install.py", line 851, in install
    self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
  File "/home/lafurus/.local/lib/python2.7/site-packages/pip/req/req_install.py", line 1064, in move_wheel_files
    isolated=self.isolated,
  File "/home/lafurus/.local/lib/python2.7/site-packages/pip/wheel.py", line 345, in move_wheel_files
    clobber(source, lib_dir, True)
  File "/home/lafurus/.local/lib/python2.7/site-packages/pip/wheel.py", line 316, in clobber
    ensure_dir(destdir)
  File "/home/lafurus/.local/lib/python2.7/site-packages/pip/utils/__init__.py", line 83, in ensure_dir
    os.makedirs(path)
  File "/usr/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/imageio-2.1.2.dist-info'[/color]
lafurus@idea:~$ pip install pyserial pyparallel egi iolabs
Requirement already satisfied: pyserial in /usr/lib/python2.7/dist-packages
Collecting pyparallel
  Using cached pyparallel-0.2.2.tar.gz
Collecting egi
  Using cached egi-0.9.0-py2-none-any.whl
Collecting iolabs
  Using cached ioLabs-3.2.tar.gz
    Complete output from command python setup.py egg_info:
[color=red]    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-LE3dOo/iolabs/setup.py", line 8, in <module>
        import ioLabs
      File "/tmp/pip-build-LE3dOo/iolabs/ioLabs.py", line 16, in <module>
        import hid
      File "/tmp/pip-build-LE3dOo/iolabs/hid/__init__.py", line 109, in <module>
        raise RuntimeError("could not find a module for this operating system")
    RuntimeError: could not find a module for this operating system
    [/color]
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-LE3dOo/iolabs/
lafurus@idea:~$ pip install pytest coverage sphinx
Requirement already satisfied: pytest in /usr/lib/python2.7/dist-packages
Collecting coverage
  Using cached coverage-4.5.1-cp27-cp27mu-manylinux1_x86_64.whl
Requirement already satisfied: sphinx in /usr/lib/python2.7/dist-packages
Installing collected packages: coverage
[color=red]Exception:
Traceback (most recent call last):
  File "/home/lafurus/.local/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/home/lafurus/.local/lib/python2.7/site-packages/pip/commands/install.py", line 342, in run
    prefix=options.prefix_path,
  File "/home/lafurus/.local/lib/python2.7/site-packages/pip/req/req_set.py", line 784, in install
    **kwargs
  File "/home/lafurus/.local/lib/python2.7/site-packages/pip/req/req_install.py", line 851, in install
    self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
  File "/home/lafurus/.local/lib/python2.7/site-packages/pip/req/req_install.py", line 1064, in move_wheel_files
    isolated=self.isolated,
  File "/home/lafurus/.local/lib/python2.7/site-packages/pip/wheel.py", line 345, in move_wheel_files
    clobber(source, lib_dir, True)
  File "/home/lafurus/.local/lib/python2.7/site-packages/pip/wheel.py", line 316, in clobber
    ensure_dir(destdir)
  File "/home/lafurus/.local/lib/python2.7/site-packages/pip/utils/__init__.py", line 83, in ensure_dir
    os.makedirs(path)
  File "/usr/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/coverage'[/color]


lafurus

json_tricks paketi olmadığı için açılmıyormuş. psychopy paketinini Ubuntu üzerinden açamayan ve terminalde çalıştırınca:
fatal: Not a git repository (or any of the parent directories): .git
11:55:53 PM: Debug: Failed to connect to session manager: SESSION_MANAGER environment variable not defined

bu hatayı alan varsa:
sudo pip install json_tricks
komutunu çalıştırmayı deneyebilir.

If psychopy doesn't open on Ubuntu, you can try to install "json_tricks" package.

Empat

@kaan5443 adlı üyenin isteği üzerine konunun kilidi kaldırıldı.
Everything for me is just Peace - Love - Coding. Also, as they say: I am a programmer, I have no life!