I’m working on a Python script that uses NetworkX, and I’m encountering an intermittent error:
Error running script: [WinError 206] The filename or extension is too long: 'C:\\Users\\omar\\.rhinocode\\py39-rh8\\site-envs\\default-qVAuLltc\\numpy.libs' [1111:1]
The code works most of the time, but occasionally this error appears. When it does, I have to close Rhino and reopen it for the script to run normally again.
The error is triggered when the code attempts to call the nx.simple_cycles() function.
Can anyone explain why this might be happening and how I can fix it to ensure consistent behavior?
Thank you, James for the answer. I thought that would solve the issue as well but in my case long paths are already enabled in my machine. Could it be related to Rhino itself and long paths not supported?!