Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Import Error: error opening DXF/DWG file #1767

Open
kashcode opened this issue Apr 28, 2024 · 12 comments
Open

Error: Import Error: error opening DXF/DWG file #1767

kashcode opened this issue Apr 28, 2024 · 12 comments
Labels
bug An error which causes unexpected or unintended results fixed A bug that has been fixed

Comments

@kashcode
Copy link

Expected behavior

Open file and not receive error

Observed behavior

While opening file error is sown:
image

Steps to reproduce or sample file

Simple open LibreCAD and from menu file -> open, open some file and error is shown.
Product1.zip

Operating System and LibreCAD version info

Windows 11
LibreCAD-Installer-2.2.0.2.exe

@dxli
Copy link
Member

dxli commented Apr 29, 2024

@kashcode

I have no trouble opening the dxf files.

Could you try our latest builds at:

https://github.com/LibreCAD/LibreCAD/releases

@kashcode
Copy link
Author

Already tried multiple times. Might be there is some more detailed logs where can try find what causes this?

@lordofbikes
Copy link
Member

All files open fine with 2.2.0.2.
The error is about open, means the system call, to open the file, fails. It is not about the content. There is no more info or log file.
That means, it is an issue with file permissions or location or naming.
Try to move the DXF files to another location.
Give more details in steps to reproduce, e.g. absolute path of files, type of drive, pen drive or network or local.

@kashcode

This comment was marked as off-topic.

@kashcode
Copy link
Author

kashcode commented May 1, 2024

Path is following C:\Users\ABgaldniecība\OneDrive\Dators\DXF I guess issue is in this char ī.
When I create folder under C:\dxf and copy file into this folder file opens without any error

@dongxuli-concord-design
Copy link
Contributor

Did you type in the path?

By the file dialog should be language ignorant

@kashcode
Copy link
Author

kashcode commented May 1, 2024

Error can be reproduced.
I just now create folder galdniecība and add dxf files
image

When try open file get error:
image

OS Name Microsoft Windows 10 Pro
Version 10.0.19045 Build 19045

@dongxuli-concord-design
Copy link
Contributor

dongxuli-concord-design commented May 1, 2024

How did you open the file? More specific:

1, from command line in the same folder by typing in LibreCAD.exe followed by the file name only?
2, from File > open, type in the complete path and file?
3, file > open> click on the file name;
4, from file explorer, drag the file to a running LibreCAD?

@kashcode
Copy link
Author

kashcode commented May 2, 2024

in my particular case this is:
3. file > open> click on the file name;

4, from file explorer, drag the file to a running LibreCAD - same error as 3.

1 and 2 I not verify - is not usually how I open files

@bansan85
Copy link

bansan85 commented May 2, 2024

The problem is a Unicode thing. Rename the file ABgaldniecība.dxf and you won't be able to open it.

@dxli
Copy link
Member

dxli commented May 12, 2024

I can reproduce this one, and it appears to be a dxfrw bug.

If confirmed, this should also be fixed in 2.2.1

dxli added a commit that referenced this issue May 12, 2024
Support RS_Pattern clone() with deep copying.

If this fix is safe, backport to 2.2.1
@dxli
Copy link
Member

dxli commented May 12, 2024

Fixed by 72902cb

Please help testing.

The issue is NOT related to the encoding of the file name.

@dxli dxli added bug An error which causes unexpected or unintended results fixed A bug that has been fixed labels May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An error which causes unexpected or unintended results fixed A bug that has been fixed
Projects
None yet
Development

No branches or pull requests

5 participants