Forum Replies Created
-
AuthorPosts
-
suleymanyamanParticipant
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!
suleymanyamanParticipantThank you Jeremy! It seems I totally missed those.
suleymanyamanParticipantHello,
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 byteHas an
suleymanyamanParticipant*ratio, sorry for the typo!
suleymanyamanParticipantHi 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?
suleymanyamanParticipantThank you Jeremy! I haven’t had a chance to try it yet, but will write here soon in case someone encounters a similar problem.
suleymanyamanParticipantThank you Jeremy. That works!
-
AuthorPosts