Howdy, Stranger!

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

Supported by

[solved] Can not open my experiment!

edited February 2015 in OpenSesame

Hello. I tried to find a solving of my my problem, but couldn't.
I have done my experiment and can't open, when I try, there is message like this:
" Error: Failed to open '/Users/oleglarionov/Desktop/Untitled.opensesame.tar.gz.opensesame.tar.gz.opensesame.tar.gz'
Description: Error: Script error
Description: Failed to parse line "setcycle 0 hand "left". Is there a closing quotation missing? "

When I use Debug window, it says like this:

" Error: Failed to open '/Users/oleglarionov/Desktop/Untitled.opensesame.tar.gz.opensesame.tar.gz.opensesame.tar.gz'
Description: Error: Script error
Description: Failed to parse line "setcycle 0 hand "left". Is there a closing quotation missing? "

How can I recover my experiment?! Please HELP!

Thanks

Comments

  • edited 4:54PM

    The debug window says:

    Python 2.7.5
    Type "help()", "copyright()", "credits()" or "license()" for more information.
    Type "modules()" for details about installed modules and version information.
    Use the "print [msg]" statement in inline_script items to print to this debug window.

    Traceback (most recent call last):
    File "/Users/oleglarionov/Desktop/opensesame.app/Contents/Resources/lib/python2.7/libqtopensesame/qtopensesame.py", line 874, in open_file
    File "/Users/oleglarionov/Desktop/opensesame.app/Contents/Resources/lib/python2.7/libqtopensesame/items/experiment.py", line 53, in init
    File "/Users/oleglarionov/Desktop/opensesame.app/Contents/Resources/lib/python2.7/libopensesame/experiment.py", line 130, in init
    File "/Users/oleglarionov/Desktop/opensesame.app/Contents/Resources/lib/python2.7/libopensesame/item.py", line 76, in init
    File "/Users/oleglarionov/Desktop/opensesame.app/Contents/Resources/lib/python2.7/libopensesame/experiment.py", line 267, in from_string
    File "/Users/oleglarionov/Desktop/opensesame.app/Contents/Resources/lib/python2.7/libopensesame/experiment.py", line 233, in parse_definition
    File "/Users/oleglarionov/Desktop/opensesame.app/Contents/Resources/lib/python2.7/libqtopensesame/items/loop.py", line 50, in init
    File "/Users/oleglarionov/Desktop/opensesame.app/Contents/Resources/lib/python2.7/libopensesame/loop.py", line 55, in init
    File "/Users/oleglarionov/Desktop/opensesame.app/Contents/Resources/lib/python2.7/libopensesame/item.py", line 76, in init
    File "/Users/oleglarionov/Desktop/opensesame.app/Contents/Resources/lib/python2.7/libopensesame/loop.py", line 67, in from_string
    File "/Users/oleglarionov/Desktop/opensesame.app/Contents/Resources/lib/python2.7/libopensesame/item.py", line 109, in parse_variable
    File "/Users/oleglarionov/Desktop/opensesame.app/Contents/Resources/lib/python2.7/libopensesame/item.py", line 910, in split
    script_error: Error: Script error
    Description: Failed to parse line "setcycle 0 hand "left". Is there a closing quotation missing?

  • edited 4:54PM

    Hi,

    I'm not entirely sure, but your filename looks weird.

    Error: Failed to open '/Users/oleglarionov/Desktop/Untitled.opensesame.tar.gz.opensesame.tar.gz.opensesame.tar.gz' Description

    Normally, there should only be one opensesame.tar.gz extension of your file, not three. Can you remove the additional ones? And if so, does this solve the problem?

    Thanks,

    Eduard

    Buy Me A Coffee

  • edited 4:54PM

    Hi Eduard.
    It works fine now. I fixed.
    Thanks for response.

  • edited July 2015

    Hi I have a similar problem.
    I cannot open my experiment, help please??

    Failed to parse line "draw textline -30 10 "Please look at the fixation point when it appears,". Is there a closing quotation missing?
    line: 172
    exception message: No closing quotation
    exception type: ValueError
    
    Traceback (also in debug window):
      File "dist\libopensesame\item.py", line 1047, in split
      File "shlex.pyc", line 279, in split
      File "shlex.pyc", line 269, in next
      File "shlex.pyc", line 96, in get_token
      File "shlex.pyc", line 172, in read_token
    ValueError: No closing quotation
    
  • edited 4:54PM

    Hi,

    It sounds like there's an invalid line in your script. You should be able to fix this by opening the script in a text editor, and manually fixing the affected line. If you don't see the problem, please post the script here (or a link to something like pastebin).

    If your experiment is in .opensesame.tar.gz format, you can find the script by opening the experiment file in a tool like 7-zip

    This should never happen though. What version of OpenSesame are you running? Do you have any idea what caused this problem?

    Cheers,
    Sebastiaan

  • edited November 2015

    Hi Sebastiaan,

    I just wanted to let you know that I had the same problem as ste1ps with OS version 3.
    I accidentally inserted a line break so that my code looked something like this:

    define sketchpad CS_US5
        set reset_variables "no"
        set duration 100
        set description "Displays stimuli"
        draw image center=1 file="[right5
    ]" scale=1 show_if=always x=350 y=0 z_index=0
    

    I was unable to open the experiment normally (and thus correct my mistake). I solved it the way you described above (thanks a lot!) but I thought the fact that this still happens in version 3 might be of interest to you.

    Cheers,
    Fabia

  • edited 4:54PM

    Hi Fabia,

    Thanks for pointing this out. As it happens, as of 3.0.2 the syntax of OpenSesame scripts is checked, and this problem shouldn't occur any more. If it does, please let me know.

    Cheers!
    Sebastiaan

  • Hi,
    I seem to have this problem as well. I think I have version 3.1.4 (I'm assuming it's the latest one since I downloaded it on Thursday one week ago). I try to open a saved experiment and get this error message:


    Failed to open

    Failed to open the file for the following reason:

    Failed to parse line """. Is there a closing quotation missing?
    Details

    item-stack: ``
    exception message: No closing quotation
    time: Thu Dec 22 14:05:56 2016
    exception type: ValueError
    Traceback (also in debug window)

    File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/libopensesame/syntax.py", line 183, in split
    return [safe_decode(_s) for _s in shlex.split(safe_encode(s))]
    File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/shlex.py", line 279, in split
    return list(lex)
    File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/shlex.py", line 269, in next
    token = self.get_token()
    File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/shlex.py", line 96, in get_token
    raw = self.read_token()
    File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/shlex.py", line 172, in read_token
    raise ValueError, "No closing quotation"
    ValueError: No closing quotation


    I could try to find the error in the way that Ariiizona described but it would be helpful not to have to! Also, you wrote to let you know if it occurred still :-)
    I'm running on Mac OS 10.11.6 (El Capitan).

    Thanks,
    Tina

  • Hi @Tina,

    I suspect you're having this problem:

    Could you read the information in that discussion (it also explains how to fix it), and please confirm (or not) in that discussion that this error results from copy-pasting?

    Cheers,

    Sebastiaan

  • Hi, my experiment is not opening. Giving 'keyerror' warning. It was working yesterday and now i cannot open it. Please HELP!


    C:\Program Files (x86)\OpenSesame>python.exe Lib\site-packages\opensesame.py "C:\Users\ASUS\Desktop\opensesame deney oluşturma\negative.osexp"

    [8624:8052:0423/153938.665:ERROR:cache_util_win.cc(19)] Unable to move the cache: 5

    [8624:8052:0423/153938.666:ERROR:cache_util.cc(140)] Unable to move cache folder C:\Users\ASUS\AppData\Local\python\QtWebEngine\Default\GPUCache to C:\Users\ASUS\AppData\Local\python\QtWebEngine\Default\old_GPUCache_000

    [8624:8052:0423/153938.666:ERROR:disk_cache.cc(168)] Unable to create cache

    [8624:8052:0423/153938.666:ERROR:shader_disk_cache.cc(620)] Shader Cache Creation failed: -2

    [2021-04-23 15:39:41,126:JupyterConsole:128:ERROR]

    Failed to open file


    item-stack:

    time: Fri Apr 23 15:39:41 2021

    exception type: KeyError

    exception message: "filename 'script.opensesame' not found"

  • Hi @tansu ,

    It looks like the file is corrupted, i.e. it is not a valid OpenSesame experiment file. This can happen for any number of reasons. Maybe you can upload it here and then I can see if it can be recovered? Alternatively, you can also see if you can find a recent backup under Menu → Tools → Open backup folder.

    — Sebastiaan

  • Hi Sebastiaan,

    Thanks so much! i got my file from back-up folder before your reply, whatever it works!

  • I also had this error today. It occurred after I copy-pasted a cell from Excel to a cell in a loop (on a Windows device). Apparently, the paste included a new line and this new line became part of the code. OSweb did not allow me to run the experiment anymore and when I tried to open file again in OpenSesame I received the error indicated above. I solved it by opening the file in a text editor and removing the newline manually. Perhaps the developers can look into the copy-paste behavior in loops and remove potential newlines at the end of a string in a cell.

  • Hi @HenkvanSteenbergen ,

    It's true that there used to be an issue with newlines being pasted in loop cells. However, that should have been fixed already some time ago. Are you running the latest version of OpenSesame?

    — Sebastiaan

  • Yes I do. Perhaps the issue only occurs when there is only one row in the loop?

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