Howdy, Stranger!

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

Supported by

File will not open

Hi there!

Yesterday I made some edits to my experiment, including adding an inline script. The experiment ran perfectly and I received no errors when I was running it. When I tried to open the experiment today, however, the experiment would not open and I received a ValueError (see below):

Errors occurred while opening the file:
Missing end block for multiline variable "_run" in item ReStudy_1

Details
item-stack: ``
time: Wed Sep 7 15:15:50 2016
Failed to parse line "set _prepare "#set max x and y resolution". Is there a closing quotation missing?

Details
item-stack: ``
exception message: No closing quotation
time: Wed Sep 7 15:15:52 2016
exception type: ValueError
Traceback (also in debug window)

  File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/libopensesame/syntax.py", line 170, 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 tried changing the filename extension, and I tried looking at the code in a text editor. There isn't an open quotation. In the text editor, the contents of my inline script appear between quotation marks -- I guess this is the default way that OpenSesame saves info from inline code? However, it seems that I am unable to open the file when it saves like that. I've linked to the experiment file below in case you can recreate the same issue.

https://drive.google.com/open?id=0B1STlCrdBcafcmtjaXlaQ2lQY0E

Thank you in advance for your help!

Comments

  • I'd appreciate any help I can get with this... It's a bit of a time sensitive issue. Thank you!

  • OpenSesame 3.0.7 is a bit more informative on the error. Maybe that helps:

    Best,
    Jarik

  • Hi Allison,

    I'll see if I can figure out what's wrong as soon as I have the time. For now, you can simply delete the offending line from the script in a text editor, so you can open it again in OpenSesame.

    Also, what version of OpenSesame are you using?

    Cheers,
    Sebastiaan

  • Thanks, Sebastiaan! I will try that, but I'm nervous about potentially losing more work until I figure out what's going on.

    I was using 3.1.0, but I just upgraded to 3.1.2 and am receiving the same error. I have also tried to open it using both Windows and OSX, to no avail.

  • So using OpenSesame 3.0.7 which gives more informative error messages like:

    • Missing end block for multiline variable "_run" in item ReStudy_1
    • Failed to parse line "set _prepare "#set max x and y resolution". Is there a closing quotation missing?

    I was able to repair inline_script ReStudy_1 and inline_script new_inline_script using a text editor.

    I'm nervous about potentially losing more work until I figure out what's going on.

    I don't know what is going on/what caused this but I can tell you, you can download portable (no-install-needed) versions of OpenSesame like opensesame_3.0.7-py2.7-win32-3.zip from here that will not alter your system other than putting files on your hard disk. So you can safely use those to try to repair and figure out what's wrong.

    Best
    Jarik

    I put the file on http://pastebin.com/7d4YU4Yj
    @sebastiaan I can't upload file no more...

  • Hi Allision,

    It's a very odd bug, but I think I can guess where it comes from: Did you copy-paste code from something like Microsoft Word (or another non-plain-text editor) into the inline_script item? If so, can you reliably reproduce the problem? And if so, how?

    Don't worry about losing data. This is really an unlikely (and recoverable) problem. And always use the latest version, unless there is a good reason not to (for example because you're already running the study)!

    Cheers,
    Sebastiaan

  • Hi Sebastiaan,

    When I made the study originally, I coped and pasted code from a word document. The same issue happened when I coped and pasted code from a text editor. Once I closed the experiment and tried to open it again, those inline_script items did not appear. So, it seems like this is the issue. All of the code is accessible when I open the file in a text editor, however, so nothing was actually lost.

    When I typed the code into the inline_script item, on the other hand, it saved and re-opened just fine. That being said, is there some way to avoid this issue, if I'd like to copy and paste a chunk of text from a previous experiment? I can't have two experiments open at once, so copying and pasting into a text editor is kind of necessary if I want to transfer larger chunks of code.

    thank you so much for your help with this issue. And thanks to you, too, Jarik!
    Allison

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