Lake this tutorial was awesome - the API table output with parameterized tox inputs is super useful. Great presentation. Can't wait to dig into your GLSL work.
Hi Lake, I really like the tutorial, however, i get stuck after implementing the "replaceSpaces" helper function. I get this error, although I am pretty sure I have typed it exactly as you have shown... What could it be? Traceback (most recent call last): File "", line "op('/project1/WeatherAPI/API').run()" td.tdError: File "/project1/WeatherAPI/API", line 24 File "/project1/WeatherAPI/API", line 11, in replaceSpaces TypeError: 'str' object is not callable Results of run operation resulted in exception. python >>>
@@water__shed I know, that is waht the erro message suggests, I just wonder how that can come about as I have compared your code with mine quite thoroughly for typos or anything that could change how it is interpetated, but I can't find a hint. What could turn it into a string that it in the right version wouldn't?
If you have trouble using urllib, because it's easy on macOS to struggle with that, then switch to the web client data instead of a script in a text dat.
@@lukastreibenreif I'm also on mac, but I just tried it rn but it still out puts the same error are there any settings I should change in the web client node
For some reason when I try and get the text to show up instead of changing to the location it just displays parent().par.location.eval() I've been through the tutorial twice and I'm not sure what I'm doing wrong.
perhaps you are writing text, and not a parameter expression (make sure the second, green little check box is ticked on the left when the parameter is expanded) - see interactiveimmersive.io/touchdesigner-parameters/
Awesome tutorial! Everything was working nicely but out of nowhere I started getting an error and my locations info didn't update anymore. This is the error: Error: Traceback (most recent call last): File "/project/Weather_Reactive_Effect/WeatherAPI/parexec2", line 9, in onValueChange td.tdError: File "/project1/Weather_Reactive_Effect/WeatherAPI/API", line 70 NameError: name 'data' is not defined Results of run opération resulted in exception. (/project1/Weather_Reactive_Effect/WeatherAPI/parexec2) I simply can't find a solution :(
The ApiQuery does not work, although I debugged it, it doesn't pull out the URL address with all the other data when I run the code, just: ApiQuery (Debug - DAT:/project1/weather_API fn: line:61). Help, please?
hey there, sorry you are having issues. Im not sure from the context you shared what is going on, but you can find a working component with the code available on my patreon
Hi, Lake, quick question. op('request_output').text = json.dumps(weatherData) NameError: name 'op' is not defined and it also cannot define debug function. Awesome tutorial, it helps me more understanding how API works, thank you for sharing your knowledge. 🫀☠🤖
Dumb question, but are you running the script inside of TouchDesigner or as its own python-script? op not being defined make it look like you are not running that script in TouchDesigner.
I had the same issue. I had changed the location from DC to New york,NY so I reverted it back to Washington,DC no spaces then I deleted the request_output text DAT and created a new one from scratch and it worked. Not sure why exactly. Maybe it wasn't registering from when I changed the settings earlier on.
Thanks for great tutorial!!! But I have some issues, it seems quite going well while I'm doing with debug ApiQuery. After then following the op('request_output')... many errors followed. It says ~~Versions/3.9/lib/python3.9/http/client.py", line 1253, in request And I thought it could be the problem of python version. I try to downgrade python but error keep coming out it only downgrade by 3.8 I'm not sure if it is the problem of python version, or did I miss some install of lib. (I already check json, url lib...) If you know any solution about this plz let me know😢😢😢😢😢😢
My code was running perfectly earlier but I just tried to change a location and now I'm getting an error that says "AttributeError: module '/project1/weather_reactive_effect/weatherAPI/datetime' has no attribute 'date'." I tried to go back and add from datetime import datetime but this didn't change anything. Any suggestions?
Lake this tutorial was awesome - the API table output with parameterized tox inputs is super useful. Great presentation. Can't wait to dig into your GLSL work.
thank you so much!!
great work! thank you so much for sharing!
Hi Lake, I really like the tutorial, however, i get stuck after implementing the "replaceSpaces" helper function. I get this error, although I am pretty sure I have typed it exactly as you have shown... What could it be?
Traceback (most recent call last):
File "", line "op('/project1/WeatherAPI/API').run()"
td.tdError: File "/project1/WeatherAPI/API", line 24
File "/project1/WeatherAPI/API", line 11, in replaceSpaces
TypeError: 'str' object is not callable
Results of run operation resulted in exception.
python >>>
it looks like you are trying to call a string object, which is not possible
@@water__shed I know, that is waht the erro message suggests, I just wonder how that can come about as I have compared your code with mine quite thoroughly for typos or anything that could change how it is interpetated, but I can't find a hint. What could turn it into a string that it in the right version wouldn't?
I am getting
AttributeError: 'URLError' object has no attribute 'read'
Results of run operation resulted in exception. any ideas on a fix?
Check if the error occurs on a PC - could be OS related
If you have trouble using urllib, because it's easy on macOS to struggle with that, then switch to the web client data instead of a script in a text dat.
@@lukastreibenreif I'm also on mac, but I just tried it rn but it still out puts the same error are there any settings I should change in the web client node
@@gregorychang812 I could send you the file if you are interested.
@@lukastreibenreif That'd be amazing! I have my twitter and instagram links in my profile but if you prefer another method lmk
Great tutorial. Quick question. How do you pull up VSC instead of Notepad when you hit edit?
Thanks
Scratch that, figured it out
@@xlrtrexefor posterity, you can set custom programs to open text and table DATs in the preferences (Edit > Preferences)
Can't change the text class to python. Did they change this?
awesome video!! thanks so much, super helpful
For some reason when I try and get the text to show up instead of changing to the location it just displays parent().par.location.eval()
I've been through the tutorial twice and I'm not sure what I'm doing wrong.
perhaps you are writing text, and not a parameter expression (make sure the second, green little check box is ticked on the left when the parameter is expanded) - see interactiveimmersive.io/touchdesigner-parameters/
@@water__shed That's what is was, thank you!
Awesome tutorial! Everything was working nicely but out of nowhere I started getting an error and my locations info didn't update anymore. This is the error:
Error: Traceback (most recent call last):
File "/project/Weather_Reactive_Effect/WeatherAPI/parexec2", line 9, in onValueChange
td.tdError: File "/project1/Weather_Reactive_Effect/WeatherAPI/API", line 70
NameError: name 'data' is not defined
Results of run opération resulted in exception.
(/project1/Weather_Reactive_Effect/WeatherAPI/parexec2)
I simply can't find a solution :(
looks like the name 'data' is not defined based on that traceback. could it be that you accidentally deleted an operator or line of code?
My timer is not running, can you tell me how to fix it?
make sure it is active and your timeline is playing
@@water__shed it's working now, thank you!
Your mad and I love it
You're ignorant and I love it
The ApiQuery does not work, although I debugged it, it doesn't pull out the URL address with all the other data when I run the code, just:
ApiQuery (Debug - DAT:/project1/weather_API fn: line:61). Help, please?
hey there, sorry you are having issues. Im not sure from the context you shared what is going on, but you can find a working component with the code available on my patreon
Hi, Lake, quick question.
op('request_output').text = json.dumps(weatherData)
NameError: name 'op' is not defined
and it also cannot define debug function.
Awesome tutorial, it helps me more understanding how API works, thank you for sharing your knowledge.
🫀☠🤖
You have a text DAT named requests_ouput?
Dumb question, but are you running the script inside of TouchDesigner or as its own python-script?
op not being defined make it look like you are not running that script in TouchDesigner.
I had the same issue. I had changed the location from DC to New york,NY so I reverted it back to Washington,DC no spaces then I deleted the request_output text DAT and created a new one from scratch and it worked. Not sure why exactly. Maybe it wasn't registering from when I changed the settings earlier on.
I'm having the same issue with 'op' not defined. Were you able to figure out a solution?
Thanks for great tutorial!!! But I have some issues, it seems quite going well while I'm doing with debug ApiQuery. After then following the op('request_output')... many errors followed. It says ~~Versions/3.9/lib/python3.9/http/client.py", line 1253, in request
And I thought it could be the problem of python version. I try to downgrade python but error keep coming out it only downgrade by 3.8
I'm not sure if it is the problem of python version, or did I miss some install of lib. (I already check json, url lib...) If you know any solution about this plz let me know😢😢😢😢😢😢
My code was running perfectly earlier but I just tried to change a location and now I'm getting an error that says "AttributeError: module '/project1/weather_reactive_effect/weatherAPI/datetime' has no attribute 'date'." I tried to go back and add from datetime import datetime but this didn't change anything. Any suggestions?
hard to say without seeing the code, but it looks like more than just the location changed