Replies: 6 comments 3 replies
-
|
Ahh this is why, will have to check |
Beta Was this translation helpful? Give feedback.
-
|
I was able to submit without hazzle I will try to chech the weblogs to get an idea why it could go wrong |
Beta Was this translation helpful? Give feedback.
-
|
your design was actually correctly uploaded. need to find out, why it output an error |
Beta Was this translation helpful? Give feedback.
-
|
Downloaded: https://www.pythonscad.org/downloads/PythonSCAD_nolibfive-2025.04.13-x86-64-Installer.exe? and installed adding to the path: in the default location: which completed successfully. Edited the icon to point to the binary and add the trust command: (and also changed it to put new files on the Desktop --- not sure why I never thought to do that before) Launched as expected: and once again we are at:
this with a version which uses nimport: editing back to use: we get:
which is back to where we started. If I load "gcodepreview.py" directly and run it, it works as expected: as noted, the file is at: "C:\Users\willa\OneDrive\Documents\OpenSCAD\libraries\gcodepreview.py" and compiled successfully to: "C:\Users\willa\OneDrive\Documents\OpenSCAD\libraries_pycache_\gcodepreview.cpython-311.pyc" So I guess the question comes down to how accurately log/report this inability to access, and how does one grant access, and how does one edit/review a list of trusted files? As noted before, I'd like to see a menu entry: File | Python | Show trusted files which would allow adding and removing files from that list. Also tried Design | Load Shared Design: which imported the file into a new Untitled.scad file and so errored: re-saving as Untitled.py got the same thing: |
Beta Was this translation helpful? Give feedback.
-
|
This is great news,
Thank you for reporting.
Not all things can go wrong at the same time :)
…On Fri, Apr 18, 2025 at 2:01 PM William Adams ***@***.***> wrote:
Downloaded:
https://www.pythonscad.org/downloads/PythonSCAD_nolibfive-2025.04.13-x86-64-Installer.exe
?
and installed adding to the path:
image.png (view on web)
<https://github.com/user-attachments/assets/662f25c3-1c05-4f75-9480-dd0afaad138c>
in the default location:
image.png (view on web)
<https://github.com/user-attachments/assets/bc1fb835-f7fb-4e27-9254-88e399f124be>
which completed successfully.
Edited the icon to point to the binary and add the trust command:
image.png (view on web)
<https://github.com/user-attachments/assets/64c57171-864a-4905-a0bf-f44c53483068>
(and also changed it to put new files on the Desktop --- not sure why I
never thought to do that before)
Launched as expected:
—
Reply to this email directly, view it on GitHub
<#68 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACCO4MX2ZPNVJTAF2GTQNNT22DSQ7AVCNFSM6AAAAAB3MIKRUSVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTEOBXG42TKOI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
Hi Wiliam,
I work in linux most of the time, so I did not see the problem in windows
But now I tried and i could reproduce
The problem is that i used the Colon character as separation character to
of the libs and in windows it appears the Semicolon is needed
So it happened, that paths glue together in bad ways like
"C:\Program
Files\libraries\python:C:\Users\guenther.sohler\Documents\OpenSCAD\libraries:"
<- this is one path
You can fix temporarily in your place by typing:
sys.path.append("C:\\Users\\willa/OneDrive\\Documents\\OpenSCAD\\libraries")
(hope i copied the path correctly)
(please note the double backslashes)
The error which i am getting then is only:
ERROR: Traceback (most recent call last):
File "<string>", line 149, in <module>
File
"C:\Users\guenther.sohler\Documents\OpenSCAD\libraries\gcodepreview.py",
line 1340, in opendxffile
self.dxf = open(self.dxffilename, "w")
^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: 'aexport.dxf'
It will be easy to you to resolve this issue
…On Fri, Apr 18, 2025 at 3:03 PM William Adams ***@***.***> wrote:
Unfortunately, the post was made prematurely, and I've subsequently edited
it.
Please advise on what I can do to check things.
Running:
# importing module
import sys
# printing all directories for
# interpreter to search
print(sys.path)
yields:
Running Python 3.11.5 without venv.
['C:\Program
Files\libraries\python:C:\Users\willa\OneDrive\Documents\OpenSCAD\libraries:C:\Users\willa\OneDrive\Desktop:',
'C:\Program Files\PythonSCAD\python311.zip',
'C:\Users\willa\AppData\Local\Programs\Python\Python311\Lib',
'C:\Users\willa\AppData\Local\Programs\Python\Python311\DLLs',
'C:\Users\willa\OneDrive\Desktop', 'C:\Users\willa\OneDrive\Desktop\Lib',
'C:\Program Files\PythonSCAD']
which seems right.
Tried to force the path with:
sys.path.insert(0, 'C:/Users/willa/OneDrive/Documents/OpenSCAD/libraries/gcodepreview.py')
from gcodepreview import *
but still get:
Running Python 3.11.5 without venv.
ERROR: Traceback (most recent call last):
File "", line 137, in
ModuleNotFoundError: No module named 'gcodepreview'
so I think we're back to something odd in Windows 11 and Python 3.11
running in it --- let me know what else can be tried/researched at my end.
—
Reply to this email directly, view it on GitHub
<#68 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACCO4MTUR2YF6ZVPTGDIR4L22DZ2ZAVCNFSM6AAAAAB3MIKRUSVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTEOBXHAYDGOI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.










Uh oh!
There was an error while loading. Please reload this page.
-
Currently running: OpenSCAD version 2024.12.29 (git ) using the command
Have a working file:
gcp_dovetails.zip
but when I tried to Design | Share design got:
Currently loading the library with the code:
and things work, loading from: "C:\Users\willa\OneDrive\Documents\OpenSCAD\libraries\gcodepreview.py"
When I comment that out and try:
things also work as expected (and that is the version which it would be best to have shared).
Next up, updating the application and testing again.
Beta Was this translation helpful? Give feedback.
All reactions