Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

[open] No module named "pygaze"

edited March 2015 in PyGaze

Hi,

I'm new to the forum and new to using both python and pygaze. I'm trying to set up our experiment room with pygaze connecting some psychopy experiments to an Eyewink 1000.

Forgive me if this is an amateur question, but I can't even seem to run the demos. I'm trying to run "shooting_game" and I keep getting the error message

File "/Users/michael/Desktop/pygaze/examples/shooting_game/shooting_game.py", line 8, in
from pygaze import libtime
ImportError: No module named pygaze"

I'm confused. Why can't it read the module for pygaze if I gave it the right directory?

Comments

  • edited 11:48PM

    Hi Michael,

    If you're running OpenSesame on Windows, you have to put the plugins also in the OpenSesame folder under documents (not only in the installation directory under C).

    See this link. Does this clear things up, or has the issue another reason?

    Eduard

    Buy Me A Coffee

  • edited 11:48PM

    Hi Michael,

    From your error message, I get the feeling you might not have actually put the pygaze folder in the right place. This should either go in your Python installation's site-packages folder, or should be placed in the same folder as the script you are trying to run.

    It does not have to be in the Documents folder.

    Good luck!

  • edited 11:48PM

    Hi Eduard,

    I'm actually running off of mac and I'm not using openseasame. I'm just trying to run the pygaze demos from terminal and getting back the same error. I've tried moving pygaze around in different anaconda folders but there seems to be no easy solution.

    Also is there a pip download for pygaze? That would help quite a bit.

  • edited March 2015

    There is no pip download, although I will look into creating one.

    The pygaze directory (mind you, that's the one directly containing all the libraries - this one) should be in the site-packages directory of the installation (which should also be present in the Mac version of Anaconda).

    Alternatively, you could add the very same pygaze directory to the directory that contains your experiment script. An example below:

    my_experiment_folder
    - constants.py
    - experiment.py
    - pygaze (this folder: https://github.com/esdalmaijer/PyGaze/tree/master/pygaze)
    

    So that in experiment.py you can directly import pygaze, as such:

    # import the entire library
    import pygaze
    # import classes directly from submodules
    from pygaze.display import Display
    

    Good luck!

  • edited 11:48PM

    Update:

    I'm working off of two computers now trying to get either one to run the pygaze simple_eyetrackerexperiment. I'm still having this issue on one of the machines.

    On my laptop I'm at least able to get the simple_experiment to run. I did that by moving the pygaze folder to the python2.7 site-packages inside psychopy and running the example experiments from inside the site-packages and inside psychopy.
    However, when I run the eyetracker experiments I can't open a TCP/IP link with our eyelink and I get a runtime error. (I'll open a different thread about this.)

    On the desktop I've tried moving the pygaze folder to the python2.7 site packages in psychopy as I did with the laptop and that doesn't appear to work and I get this same "no module named pygaze" error.

    I've tried troubleshooting by moving the example experiment to my desktop and placing the pygaze folder in the same folder as the experiment (as was outlined in an above comment) and I'm still getting the same "no module named pygaze" error.

    Any ideas?

    Apologies for the frustration, it's been weeks/months of trying to get pygaze to work on one of two machines and it's been an uphill battle every step of the way.

  • edited 11:48PM

    Currently in the process of handling this personally, as it seems to be an issue of where what is installed. This is rather unclear on OSX, unfortunately.

Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games