Closed zephyrins closed 7 months ago
Can you upload your footprint file?
Any Footprint come from standar kicad library made this issues in my case ... Easyeda works fine
I have put the mod file in the zip
When tested on Windows 7 and Windows 10, this file can be imported correctly.
Since I don't have Windows 11 neither ARM M1 machine, I'm not sure what the problem might be.
I suspect it's likely related to permissions or file encoding.
Could you please help test this version and see what errors are outputted?
https://github.com/cdhigh/sprintFontRelease/releases/download/v1.5.4/sprintFont_v1.5.4.rar
I just tested it. I get a message from Windows: Microsoft defender SmartScreen which prevents execution because the editor is unknown. If I force the execution the OK button has no effect and I must to cancel.
It's probably an operating system compatibility issue. If you can install Python, you can directly use Python to execute sprintFont.py to identify the error location. If cannot, try this package. This version will keep the terminal window open, and after an error occurs, the terminal window should display more information. Download again: https://github.com/cdhigh/sprintFontRelease/releases/download/v1.5.4/sprintFont_v1.5.4.rar
As for concerns about viruses, because the behavior of exe files after python-packaging is somewhat different from regular exe files, it can indeed lead to false positives from antivirus software. However, I always run a check with VirusTotal each time, so there's no need to worry. https://www.virustotal.com/gui/file/42375a411ab88b0a1b395c893dfd83759fc7b5587fe91c90081969b9c4086e7c?nocache=1
I have launch your last version this is the message that i have in the terminal windows
Exception in Tkinter callback Traceback (most recent call last): File "C:\Python38\lib\tkinter__init.py", line 1892, in call__ File "sprintFont.py", line 1327, in cmdOkFootprint_Cmd File "sprintFont.py", line 1667, in generateFootprint AttributeError: 'str' object has no attribute 'isValid'
No message in the terminal but 2 types of issue depend of location of the file perhaps
The second error is as expected, because python of windows version cannot recognize the path like "//mac/...".
The first error is indeed very strange. I just downloaded the latest KiCad footprint again and tested importing the same file on my computer, and everything is normal. Could it really be a compatibility issue with the Windows 11 system or Parallels vm? download again: https://github.com/cdhigh/sprintFontRelease/releases/download/v1.5.4/sprintFont_v1.5.4.rar
or can you upload your C_Axial_L3.8mm.... ?
In reality the System is Windows 11 Pro included with Parallels
Log with C_Axial_L3.8mm.... on C:
Decoding file using utf-8... Exception in Tkinter callback Traceback (most recent call last): File "C:\Python38\lib\tkinter__init.py", line 1892, in call__ File "sprintFont.py", line 1327, in cmdOkFootprint_Cmd File "sprintFont.py", line 1647, in generateFootprint File "D:\Electronic\Soft\Sprint-Layout 6.0\sprintFont\kicad_to_sprint.py", line 55, in kicadModToTextIo File "D:\Electronic\Soft\Sprint-Layout 6.0\sprintFont\kicad_pcb\kicad_mod.py", line 123, in init IndexError: list index out of range
Log with the last file
Exception in Tkinter callback Traceback (most recent call last): File "C:\Python38\lib\tkinter__init.py", line 1892, in call__ File "sprintFont.py", line 1327, in cmdOkFootprint_Cmd File "sprintFont.py", line 1647, in generateFootprint File "D:\Electronic\Soft\Sprint-Layout 6.0\sprintFont\kicad_to_sprint.py", line 55, in kicadModToTextIo File "D:\Electronic\Soft\Sprint-Layout 6.0\sprintFont\kicad_pcb\kicad_mod.py", line 69, in init FileNotFoundError: [Errno 2] No such file or directory: '//mac/home/downloads/fanpinheader_1x03_p2.54mm_vertical.kicad_mod'
Could you upload kicad_mod file? C_Axial_L3.8mm....
Your footprint file is of version 8. sprintFont supports only version 5/6 (There is only version 5/6 when sprintFont was released).
I will revise the code to try to load version 8.
Let me confirm one thing: I want to implement compatibility with reading and writing to a shared folder in the Mac virtual machine.
I haven't used Parallels, but I have used VMware on Mac before. When using VMware, setting up a shared folder can be mapped to a drive in Windows, such as Z:
.
I see you're using this path directly: //mac/home/downloads/xxx.kicad_mod
.
Can Parallels map a virtual drive?
Can Windows Explorer directly use this path?
By default the mac is mapping on Z: with Parallels, but i can also access directly to the folder of the Mac like Downloads
See beelow i have used Z: instead of the direct folder
Ok, thanks, I won't fix this issue because it's already something at the Python implement level and needs Python team to solve.
Now, you need to copy the kicad_mod
from the shared directory on the Mac to your Windows system.
Please download the new package and confirm if it's working properly. https://github.com/cdhigh/sprintFontRelease/releases/download/v1.5.4/sprintFont_v1.5.4.rar
Ok it's work fine from a folder on Windows system C:
With SprinFront 1.5.3 and also 1.5.2 on windows 11 in VM machine (Parallel with processeur ARM M1) i can't import kicad footprints. I have a popup message Failed to parse file content.