r/OpenPythonSCAD • u/WillAdams • Apr 12 '25
Significance of Edit | Preferences | Python | Network Import List?
Is it now necessary to list files there so as to indicate that they are allowed to be imported?
Apparently:
nimport("https://raw.githubusercontent.com/WillAdams/gcodepreview/refs/heads/main/gcodepreview.py")doesn't work anymore:
ERROR: Traceback (most recent call last): File "<string>", line 1, in <module> ModuleNotFoundError: No module named 'gcodepreview'
3
Upvotes
View all comments
Show parent comment
1
u/WillAdams Apr 12 '25 edited Apr 12 '25
What was the change that was made?
How do I undo it at my end?
What version do I need to go back to get things working again?https://www.pythonscad.org/downloads/PythonSCAD-2024.12.29-x86-64-Installer.exeTried installing 2025-03-19 and I still get:
Execution aborted
Even though I have:
"C:\Users\willa\OneDrive\Documents\OpenSCAD\libraries\gcodepreview.py"
and
"C:\Users\willa\OneDrive\Documents\OpenSCAD\libraries_pycache_\gcodepreview.cpython-311.pyc"
and if I open gcodepreview.py and run it I get:
which seems to indicate that the file is allowed to run.
What do I have to do to allow a file which I wrote on my own computer to run on my computer when I try to load it?