

You received this message because you are subscribed to the Google Groups 'psychopy-users' group.

Hooks=merge_hooks(request.hooks, self.hooks),įile "C:\Python27\ArcGIS10.1\lib\site-packages\requests\models.py", line 293, in prepareįile "C:\Python27\ArcGIS10.1\lib\site-packages\requests\models.py", line 362, in prepare_url NoneType' object has no attribute 'write'. What are you trying to achieve: I'm a beginner in programming so I'm using a builder to create the online experiment, Magnitude estimation of lightness between two circles, through psychopy. Return session.request(method=method, url=url, **kwargs)įile "C:\Python27\ArcGIS10.1\lib\site-packages\requests\sessions.py", line 456, in requestįile "C:\Python27\ArcGIS10.1\lib\site-packages\requests\sessions.py", line 389, in prepare_request StackTrace: Traceback (most recent call last):įile "C:\Development\PythonAddins\TAMUGeocoder.py", line 75, in įile "C:\Python27\ArcGIS10.1\lib\site-packages\requests\api.py", line 53, in request Jeremy - You received this message because you are subscribed to the Google Groups. Response = requests.request("POST", url, data=payload, headers=headers) ' NoneType' object has no attribute 'write' ' is only a part of the error message, not the whole thing. 'content-type': "application/x-www-form-urlencoded", 'accept': "application/x-www-form-urlencoded", Payload = "streetAddress="+row+"&city="+row+"&state="+row+"&zip="+row+"&apikey="+apikey+"&format=csv&census=false&censusYear=2000|2010¬Store=false&version=4.01" TypeError: '<' not supported between instances of 'NoneType' and 'float'. :) for row in cursor:Īrcpy.SetProgressorLabel("Loading. I'm sure it's something simple I'm missing. I'm stumped why it would run outside of arcmap but not within.
PSYCHOPY NONETYPE CODE
The python code and stack trace is below. This script runs just fine from pythonwin but for some reason I receive the following error when running the script from an arcmap toolbox: AttributeError: 'NoneType' object has no attribute 'split' To fix the issue, we need to simply delete the string.py file from the folder. As you can see below there was filename string.py in the same folder which was causing the issue. There was no issue with the command, one file with name string.py was causing the issue. SetAttribute(self, ‘ori’, newOri, log, operation)įile “/Applications/PsychoP圓.app/Contents/Resources/lib/python3.6/psychopy/tools/attributetools.py”, line 141, in setAttributeįile “/Applications/PsychoP圓.app/Contents/Resources/lib/python3.6/psychopy/tools/attributetools.py”, line 32, in setįile “/Applications/PsychoP圓.app/Contents/Resources/lib/python3.6/psychopy/visual/basevisual.I'm running a simple python script from arcmap that sends an html post and processes the response. Command errored out with exit status 1 Command errored out with exit status 1 python. Firstly check your conditions file for any blank cells. Somehow your Orientation variable is getting set to None rather than containing a number. Red_Arrow_Pointing_tOri(Orientation)įile “/Applications/PsychoP圓.app/Contents/Resources/lib/python3.6/psychopy/visual/basevisual.py”, line 1379, in setOri TypeError: unsupported operand type (s) for : ‘NoneType’ and ‘float’. I don’t have any of my own code in the experiment, it’s all just Psychopy. Once I have the error, it seems to persist whatever I do. Then I add an ISI and somewhere along the line I get this error. I have a png that I manage to get to switch orientations using an Excel file on a loop. To unsubscribe from this group and stop receiving emails from it, send an email to psychopy-user. **What are you trying to achieve?: Visual cueing experiment NoneType object has no attribute write What does that mean and how can I solve this Thanks a lot for answering Best. Standard Standalone? (y/n) If not then what?:
