Howdy, Stranger!

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

Supported by

[open] QProgEdit

edited January 2015 in OpenSesame

Hello,
I'm on a mission to spread the joy of Opensesame in my department and am thinking that running it on an RPi could well be a way to boost interest. I had a good tinker late into the night trying to get it running but fell at the last hurdle (hopefully). It wouldn't load as it said it was missing QProgEdit. I've tried using the line of apt-get install etc for as many variations as I can think but they all come back saying the package can't be found. I can see the files on github but can't figure out where to put them / get them to install correctly.

Sorry for the long winded explanation there! By the way, thank you for what is a brilliant program and development.

Alex

Comments

  • edited 6:20PM

    Hi Alex,

    I'm on a mission to spread the joy of Opensesame in my department

    A noble mission.

    It wouldn't load as it said it was missing QProgEdit. I've tried using the line of apt-get install etc for as many variations as I can think but they all come back saying the package can't be found. I can see the files on github but can't figure out where to put them / get them to install correctly.

    Right, the instructions are outdated, but the only real difference is having to grab QProgEdit from GitHub and installing it. Installing means either putting it in the Python path or--even simpler--placing it as a subfolder of the OpenSesame folder.

    So it's a matter of getting the latest release from here:

    And extracting the QProgEdit folder into the OpenSesame-release-[X] folder.

    Would you mind letting us know if this works so that we (or you if you want) can update the documentation?

    Cheers!
    Sebastiaan

  • edited 6:20PM

    Hi Sebastiaan,

    Fantastic, thanks for the info. I'll have a go this evening and see how I get on.

    I'd be very happy to update the documentation; I found a few niggles with installing the packages so will write it out fully for others to follow. Happy to help in any way I can!

    Cheers,
    Alex

  • edited 6:20PM

    hi
    when I try to run opensesame on RPi (after installing qprogedit)
    I get :
    Fatal Python error: (pygame parachute) Segmentation Fault
    Dror

  • edited 6:20PM

    Hi Dror,

    A segmentation fault is almost always due to PyQt4. So there's not much that you can do about it, except using a version different PyQt4. And this is not easy because PyQt4 it's generally part of the operating system.

    What Linux distribution and what version of PyQt4 are you using?

    Cheers,
    Sebastiaan

  • edited March 2015

    Hi all,

    So I spent a little while tinkering with OpenSesame and the RPi. Here's what I learnt, and how I did it.

    Firstly, the only version of OS I could get to run successfully was version 0.27.4. Any later versions all fall over with faults such as the PyQt4 issue as detailed above (after solving the qprogedit issue). But the good news is that it does successfully run. I would however suggest building any experiments on a different system and then just using the opensesamerun client to actually run the experiment, unless you're someone who likes to suffer for their craft.

    In general I would recommend following Sebastiaan's advice for installing and running OS on the [RPi] (http://osdoc.cogsci.nl/getting-opensesame/raspberry-pi/) with a couple of little tweaks.

    Firstly when you first boot into Raspbian ensure that you turn on overclocking to 1000MHz and fill the remaining space on the SD (also use a fast SD card). Then I installed a bash script that allows me to see details of how the RPi is running - this one is particularly useful [cpustatus] (https://gist.github.com/ecampidoglio/5009512) - written by [Enrico Campidoglio] (http://megakemp.com/2013/02/26/adventures-in-overclocking-a-raspberry-pi/). It's just nice to make sure everything is running as it should be, and not getting too warm etc.

    Now, onto the actual installation of OS. I followed Sebastiaan's guide for the first run, but hit a couple of niggles, so adapted it very very slightly. The problem was with the installation of dependencies - for some reason they didn't install (though I have no knowledge as to why); so I tend to install them all separately and from the outset. Also, I tend to run update commands before doing anything else.

    So this is what the final process looks like. In terminal, I submitted the following commands (stuff in brackets is info, and not submitted):

    sudo apt-get update (update the packages)
    
    sudo apt-get install python-pygame
    

    (followed by the same "sudo apt-get install" command but replacing python-pygame with: python-qt4 / python-qscintilla2 / python-imaging / python-serial / python-numpy / python-tk individually)

    Then the rest uses Sebastiaan's script, with the dependencies removed:

    OSVER="0.27.4"
    FAENZAVER=1
    echo "Downloading OpenSesame"
    wget https://github.com/smathot/OpenSesame/archive/release/$OSVER.tar.gz
    echo "Extracting OpenSesame"
    tar xvfz $OSVER.tar.gz
    echo "Removing OpenSesame archive"
    rm $OSVER.tar.gz
    echo "Downloading Faenza icons"
    wget http://files.cogsci.nl/misc/faenza-icons-for-opensesame-$FAENZAVER.tar.gz
    echo "Extracting Faenza icons"
    tar xvfz faenza-icons-for-opensesame-$FAENZAVER.tar.gz
    echo "Moving Faenza to OpenSesame folder"
    mv Faenza OpenSesame-release-$OSVER/resources/theme/default/
    echo "Removing Faenza archive"
    rm faenza-icons-for-opensesame-$FAENZAVER.tar.gz
    

    After all this, it is installed and can be run using the command:

    cd OpenSesame-release-0.27.4
    ./opensesame 
    

    (or) ./opensesamerun

    I hope this helps someone - I'm sorry that there are no pictures and suchlike, but it's not too bad to get installed, and it works fairly well. I've even got it working on a sizable touchscreen monitor with mixed results.

    If you get stuck, I'm happy to help where I can!

  • edited 6:20PM

    Hi Lex,

    Thanks for this detailed explanation. It's a shame that the recent versions of OpenSesame don't work due to the segmentation fault. However I suspect that opensesamerun does not suffer from this problem, because it makes less (or no when started with enough arguments) use of Qt4. That may be useful for people who only want to use the Pi to run experiments, without using the gui.

    Cheers!
    Sebastiaan

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