Hey, Im not an expert in python, so i am facing problems in running the following code in dynamo “Python” node.
I think im writing the code in pyhton syntax, and there is some difference in dynamo ironpython, right?
And there are some alternative libraries as well!
can u please help me run this in dynamo to get the results in the end! Shall be very grateful
But as soon as i write my script, it shows these warnings. Please help
Warning: IronPythonEvaluator.EvaluateIronPythonScript operation failed.
Traceback (most recent call last):
File “”, line 16, in
File “C:\Program Files\IronPython 2.7\Lib\site-packages\requests\api.py”, line 72, in get
File “C:\Program Files\IronPython 2.7\Lib\site-packages\requests\api.py”, line 58, in request
File “C:\Program Files\IronPython 2.7\Lib\site-packages\requests\sessions.py”, line 618, in send
File “C:\Program Files\Autodesk\Revit 2020\AddIns\DynamoForRevit\IronPython.StdLib.2.7.8\socket.py”, line 228, in meth
File “C:\Program Files\IronPython 2.7\Lib\site-packages\requests\sessions.py”, line 508, in request
File “C:\Program Files\IronPython 2.7\Lib\site-packages\requests\adapters.py”, line 430, in send
File “C:\Program Files\IronPython 2.7\Lib\site-packages\urllib3\connectionpool.py”, line 598, in urlopen
File “C:\Program Files\IronPython 2.7\Lib\site-packages\urllib3\connectionpool.py”, line 346, in _make_request
File “C:\Program Files\IronPython 2.7\Lib\site-packages\urllib3\connectionpool.py”, line 850, in validate_conn
File “C:\Program Files\IronPython 2.7\Lib\site-packages\urllib3\connection.py”, line 319, in connect
File "C:\Program Files\IronPython 2.7\Lib\site-packages\urllib3\util\ssl.py", line 341, in ssl_wrap_socket
File “C:\Program Files\Autodesk\Revit 2020\AddIns\DynamoForRevit\IronPython.StdLib.2.7.8\ssl.py”, line 359, in wrap_socket
File “C:\Program Files\Autodesk\Revit 2020\AddIns\DynamoForRevit\IronPython.StdLib.2.7.8\ssl.py”, line 611, in init
File “C:\Program Files\Autodesk\Revit 2020\AddIns\DynamoForRevit\IronPython.StdLib.2.7.8\ssl.py”, line 842, in do_handshake
SystemError: Cannot access a disposed object.
Object name: ‘System.Net.Sockets.Socket’.
with Revit 2020 the Python nodes are running on IronPython 2.7.8 and when we try to install the ‘BeautifulSoup’ package on this version (Ipy 2.7.8) we get this warning