suleymanyaman

Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • in reply to: running penncontroller locally #8202
    suleymanyaman
    Participant

    Upon some tinkering, I was able to start up my experiment. Actually, I have a PNG file (i.e. my institution’s logo) that is printed in a seperate HTML file that I use for consent form at the beginning. Both this image file and HTMLs are located in chunck_includes. This time, when I start the experiment on localhost, the logo is not shown as in the screenshot I provide here here. I checked the file server.py for this problem as you wrote above, but the png extension is already listed here as far as I can understand:

    try:
                    for fname in os.listdir(os.path.join(PWD, CFG['CHUNK_INCLUDES_DIR'])):
                        if fname.endswith(".wav") or fname.endswith(".mp3") or fname.endswith("m4a") or fname.endswith(".ogg"):
                            continue
                        if fname.endswith(".png") or fname.endswith(".jpg") or fname.endswith(".bmp"):
                            continue
                        if fname.endswith(".mp4") or fname.endswith(".webm") or fname.endswith(".ogv"):
                            continue
                        f = None
                        try:
                            try:

    Is there also potential solution for this?

    Thank you!

    in reply to: Format of table is invalid #8201
    suleymanyaman
    Participant

    Thank you Jeremy! It seems I totally missed those.

    in reply to: running penncontroller locally #8199
    suleymanyaman
    Participant

    Hello,

    Sorry for resurrecting an old thread. Is there anyone who is able to run their experiments with the current version of PciBex? I followed the instructions of mat646, and got the following python error in the terminal (Windows10). I only get the usual black loading screen when I go to http://localhost:3000/experiment.html after running server.py. Is there a solution for this?

    —————————————-
    Exception happened during processing of request from (‘127.0.0.1’, 62154)
    Traceback (most recent call last):
    File “C:\Python27\lib\SocketServer.py”, line 599, in process_request_thread
    self.finish_request(request, client_address)
    File “C:\Python27\lib\SocketServer.py”, line 334, in finish_request
    self.RequestHandlerClass(request, client_address, self)
    File “server.py”, line 1770, in __init__
    SimpleHTTPServer.SimpleHTTPRequestHandler.__init__(self, request, client_address, server)
    File “C:\Python27\lib\SocketServer.py”, line 655, in __init__
    self.handle()
    File “C:\Python27\lib\BaseHTTPServer.py”, line 340, in handle
    self.handle_one_request()
    File “C:\Python27\lib\BaseHTTPServer.py”, line 328, in handle_one_request
    method()
    File “server.py”, line 1824, in do_GET
    self.do_either(‘GET’)
    File “server.py”, line 1807, in do_either
    body = control(env, start_response)
    File “server.py”, line 1599, in control
    return [dict_to_json(jsondict)]
    File “C:\Python27\lib\json\__init__.py”, line 244, in dumps
    return _default_encoder.encode(obj)
    File “C:\Python27\lib\json\encoder.py”, line 207, in encode
    chunks = self.iterencode(o, _one_shot=True)
    File “C:\Python27\lib\json\encoder.py”, line 270, in iterencode
    return _iterencode(o, 0)
    UnicodeDecodeError: ‘utf8’ codec can’t decode byte 0x89 in position 0: invalid start byte

    Has an

    in reply to: Pseudo-randomising stimulus presentation #8002
    suleymanyaman
    Participant

    *ratio, sorry for the typo!

    in reply to: Pseudo-randomising stimulus presentation #8001
    suleymanyaman
    Participant

    Hi Jeremy,

    I found this old post when searching through pcibex. You said that unbalanced number of items across the conditions could pose a problem since it will freeze the experiment. My experimental/filler item ration is 1:2, so would this also cause an issue in such a case? Or would it be OK since I will only need to pass the conditions from CSV file as arguments?

    in reply to: Accuracy of the final trial w/o comprehension question #8000
    suleymanyaman
    Participant

    Thank you Jeremy! I haven’t had a chance to try it yet, but will write here soon in case someone encounters a similar problem.

    in reply to: Introducing self-timed breaks on preordered lists #7831
    suleymanyaman
    Participant

    Thank you Jeremy. That works!

Viewing 7 posts - 1 through 7 (of 7 total)