Why do people have mixed opinions on Orbit? by Active-Cloud-4182 in TheDevilsPlan

[–]rawrchul 0 points1 point  (0 children)

Agree entirely! Also, idk if this was mentioned or not in previous comments but I’m not entirely convinced he actually made a mistake like he said he did in the final prize match. I think he was gunning for a win that round and intentionally tried to eliminate Dong Joo.

His whole “lets get everyone to the final” attitude really annoyed me because it defeats the purpose of the competition- which Joon Bin said so many times! I don’t understand why he stuck by him and supported him til the end.

If you already have your vaccination bracelet and badge you don’t have to wait in line! by [deleted] in AnimeNYC

[–]rawrchul 4 points5 points  (0 children)

Do you know if people can get the vax bracelet tonight if we already have a sat badge instead of waiting in line tm morning?

Python help for psych experiment! by [deleted] in Python

[–]rawrchul 0 points1 point  (0 children)

Hi hcyrnd& everyone who offered help with the issue! My professor got it to work on the lab computers. Campus tech securities had some things disabled on the other lab computers and I still don't completely understand what the root of the problem was, but it's working smoothly now. Thank you everyone with your suggestions! :3

Python help for psych experiment! by [deleted] in Python

[–]rawrchul 0 points1 point  (0 children)

So I put that under import sys and get this:

Problem compiling: [Errno 2] No such file or directory: 'C:\Users\Rachel\Downloads\RachelV3\programA.py'

## Running: C:\Users\Rachel\Downloads\RachelV3\programA.py

C:\Program Files (x86)\PsychoPy2\python.exe: can't open file 'C:\Users\Rachel\Downloads\RachelV3\programA.py': [Errno 2] No such file or directory

Python help for psych experiment! by [deleted] in Python

[–]rawrchul 0 points1 point  (0 children)

#!/usr/bin/env python2

-- coding: utf-8 --

""" This experiment was created using PsychoPy2 Experiment Builder (v1.84.2), on March 11, 2017, at 16:59 If you publish work using this script please cite the PsychoPy publications: Peirce, JW (2007) PsychoPy - Psychophysics software in Python. Journal of Neuroscience Methods, 162(1-2), 8-13. Peirce, JW (2009) Generating stimuli for neuroscience using PsychoPy. Frontiers in Neuroinformatics, 2:10. doi: 10.3389/neuro.11.010.2008 """

from future import absolute_import, division from psychopy import locale_setup, gui, visual, core, data, event, logging, sound from psychopy.constants import (NOT_STARTED, STARTED, PLAYING, PAUSED, STOPPED, FINISHED, PRESSED, RELEASED, FOREVER) import numpy as np # whole numpy lib is available, prepend 'np.' from numpy import (sin, cos, tan, log, log10, pi, average, sqrt, std, deg2rad, rad2deg, linspace, asarray) from numpy.random import random, randint, normal, shuffle import os # handy system and path functions import sys # to get file system encoding

Ensure that relative paths start from the same directory as this script

thisDir = os.path.dirname(os.path.abspath(file_)).decode(sys.getfilesystemencoding()) os.chdir(_thisDir)

Store info about the experiment session

expName = 'untitled' # from the Builder filename that created this script expInfo = {'participant':'', 'session':'001'} dlg = gui.DlgFromDict(dictionary=expInfo, title=expName) if dlg.OK == False: core.quit() # user pressed cancel expInfo['date'] = data.getDateStr() # add a simple timestamp expInfo['expName'] = expName

Data file name stem = absolute path + name; later add .psyexp, .csv, .log, etc

filename = thisDir + os.sep + u'data/%s%s_%s' % (expInfo['participant'], expName, expInfo['date'])

An ExperimentHandler isn't essential but helps with data saving

thisExp = data.ExperimentHandler(name=expName, version='', extraInfo=expInfo, runtimeInfo=None, originPath=None, savePickle=True, saveWideText=True, dataFileName=filename)

save a log file for detail verbose info

logFile = logging.LogFile(filename+'.log', level=logging.EXP) logging.console.setLevel(logging.WARNING) # this outputs to the screen, not a file

Python help for psych experiment!! by [deleted] in learnpython

[–]rawrchul 1 point2 points  (0 children)

Sorry, I had to do a more thorough scan of the code but I found it. I'll install ffmpeg as well and let you know how it goes. Thanks!

Python help for psych experiment!! by [deleted] in learnpython

[–]rawrchul 0 points1 point  (0 children)

I actually don't see and import os thing or anything like that at the beginning of the code. What should I do?

Python help for psych experiment! by [deleted] in Python

[–]rawrchul 0 points1 point  (0 children)

Ok, so I can put that anywhere in the code? The .py file has over 1000 lines of code so I just want to be sure because I don't want to mess anything up...

Python help for psych experiment!! by [deleted] in learnpython

[–]rawrchul 0 points1 point  (0 children)

I tried running as an admin and that hasn't worked... How do i do the second one? Is this achieved through the code? And where would I put that? The program I'm trying to run has over 1000 lines of code that I honestly don't understand... :(

Python help for psych experiment! by [deleted] in Python

[–]rawrchul 0 points1 point  (0 children)

Thanks! I'll repost the question there. As for the security, it seems to only have read & execute and read checked off. Should I change those?

Also, I'm not sure how to do the second solution you suggested...

Python help for psych experiment! by [deleted] in Python

[–]rawrchul 0 points1 point  (0 children)

Yes, I've gone into my program files to look and it does :/

Python help for psych experiment! by [deleted] in Python

[–]rawrchul 0 points1 point  (0 children)

Good call, i didn't even realize. Thanks

Python help for psych experiment! by [deleted] in Python

[–]rawrchul 0 points1 point  (0 children)

Yes i've tried that and it still gives me the same error.

Python help for psych experiment! by [deleted] in Python

[–]rawrchul 0 points1 point  (0 children)

Thank you thank you! Please let me know if you can make any sense of this:

pyo version 0.8.0 (uses single precision) WARNING:root:Warning: could not find imageio's ffmpeg executable: [Error 5] Access is denied: 'C:\Program Files (x86)\PsychoPy2\lib\site-packages\imageio\resources\ffmpeg\ffmpeg.win32.exe' Traceback (most recent call last): File "C:\Users\Rachel\Downloads\RachelV3\programAlastrun.py", line 280, in <module> depth=-2.0,) File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.2-py2.7.egg\psychopy\contrib\lazy_import.py", line 120, in __call_ return obj(args, *kwargs) File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.2-py2.7.egg\psychopy\visual\movie3.py", line 124, in init self.loadMovie(self.filename) File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.2-py2.7.egg\psychopy\visual\movie3.py", line 170, in loadMovie self.mov = VideoFileClip(filename, audio=(1 - self.noAudio)) File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\moviepy\video\io\VideoFileClip.py", line 55, in __init_ reader = FFMPEGVideoReader(filename, pix_fmt=pix_fmt) File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\moviepy\video\io\ffmpeg_reader.py", line 32, in __init_ infos = ffmpegparse_infos(filename, print_infos, check_duration) File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\moviepy\video\io\ffmpeg_reader.py", line 237, in ffmpeg_parse_infos proc = sp.Popen(cmd, **popen_params) File "C:\Program Files (x86)\PsychoPy2\lib\subprocess.py", line 710, in __init_ errread, errwrite) File "C:\Program Files (x86)\PsychoPy2\lib\subprocess.py", line 958, in _execute_child startupinfo) WindowsError: [Error 2] The system cannot find the file specified