Howdy, Stranger!

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

Supported by

[solved] inline script / python error

edited March 2014 in OpenSesame

Hi everyone!
I am really newbie with this program. I want to create very similar experiment like this: http://forum.cogsci.nl/index.php?p=/discussion/277/open-using-opensesame-for-m-o-t-task/p1

My problem is, that i get error when i try to run experiment. This is the error and i really don't know, what does it mean. I was googling, but nothing found. No matter if i use Open Sesame 2.8 or 0.27...

Thanks for any attempt to solve this my problem. And sorry for my english =)

openexp.sampler._legacy.init_sound(): sampling freq = 48000, buffer size = 512
openexp.sampler._legacy.init_sound(): mixer already initialized, closing
experiment.init_log(): using 'D:/Škola/DIPLOMOVÁ PRÁCA/Experiment/subject-0.csv' as logfile (utf-8)
experiment.run(): experiment started at Thu Mar 06 21:00:07 2014
Traceback (most recent call last):
  File "dist\libopensesame\inline_script.py", line 125, in prepare
  File "<string>", line 4
    w, h = 1024, 768 # This should match the resolution specified in the experiment!
   ^
IndentationError: unexpected indent
Traceback (most recent call last):
  File "dist\libqtopensesame\qtopensesame.py", line 1393, in run_experiment
  File "dist\libopensesame\experiment.py", line 287, in run
  File "dist\libopensesame\sequence.py", line 55, in run
  File "dist\libopensesame\loop.py", line 147, in run
  File "dist\libopensesame\sequence.py", line 55, in run
  File "dist\libopensesame\loop.py", line 146, in run
  File "dist\libopensesame\sequence.py", line 107, in prepare
  File "dist\libopensesame\inline_script.py", line 127, in prepare
inline_error: Error: Inline script error
In: inline_script (run phase)
   ^

Python traceback:
IndentationError: unexpected indent

Full traceback in debug window

Comments

  • edited 10:13PM

    Hi,

    Welcome to the forum.

    As the above message already tells you, you can find the full error message in the debug window. You can open the debug window by pressing the ladybug item.

    image

    Could you perhaps provide us with the full error message, and the Python inline code that you are using?

    Cheers,

    Lotje

    Did you like my answer? Feel free to Buy Me A Coffee :)

  • edited 10:13PM

    That error is from debug window, but I think, it is working now.... the problem was wrong copying the code - I copy it from this forum and don't click on "Download Raw", so there was problem with spaces and tabs. After I paste the code from "Download Raw", everything is working now. Sorry for that stupid mistake, next time I will pay more attention on this things =)
    Thank you for your time and maybe, I will post more serious (or real) problem. Have a nice day =)

Sign In or Register to comment.