-
Notifications
You must be signed in to change notification settings - Fork 13
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
FileNotFoundError: [Errno 2] No such file or directory: '' #40
Comments
First, thanks for the report. Bugs get fixed only when they are reported. Secondly, I was aware of this bug and I have a fix for it, but as I am also fixing a couple of other things and I have a difficult time testing V7 (I am on Ubuntu, where plugins in V7RC don't work yet) I haven't yet published the fixed version. As for your observation
I am not certain when did the schematic file format change, but I think it was late in the V6.9 development. So if you started the project with 6.99 the layout might had properties annotated with "Sheet file". These are updated when you "update layout from schematics". So if you did this yesterday it would explain why the plugin failed. Another possible explanation for this is that I've also updated the plugin recently. Previous versions of the plugin did not parse the schematics to derive the project hierarchy. This was added recently to solve a bug. So if you were running older version of the plugin and then updated to the newer one yesterday, this might also explain why the plugin failed. |
Similar error with 2.0.4. BTW, plugin version says its 2.0.1 in the log, however 2.0.4 is installed. Hope you fix this, can't live without your marvelous plugin! :) |
@ivizot how did you install the plugin? Moreover 2.0.4 was a V7 compatibility release along with all my other footprints. Now that I've looked deeper I've seen another issue and I hope to release 2.0.5 in a day or so |
@MitjaNemec I have installed if with KiCAD PCM. Really appreciate your work, let me know if you need any further testing :) |
Can you try 2.0.5, which was just released? |
Hey, |
Thanks for reporting this. This was an error on my side. I forgot to add GUI dialog file to the package. I've fixe this, but it'll take a day or so before the fixed release becomes available in PCM. You can download the fixed version from releases. |
@MitjaNemec yes, it is working now! Thank you so much, your plugins had already saved me tens of hours!!! Could you please also fix save/restore layout, where the errors are just the same? I believe the fix would be mostly identical?.. |
@ivizot Fixes should already be in Save/Restore layout plugin (2.0.6) |
When trying to use ReplicateLayout with a recent KiCad 7 nightly, I was receiving the error:
FileNotFoundError: [Errno 2] No such file or directory: ''
I did some digging and found that my schematic files were now using the property "Sheetname" and "Sheetfile", while the script expects "Sheet file" and "Sheet name".
To fix this I made the following change (removed the space between the two words in the script):
Before (replicate_layout.py line 192-195):
After (replicate_layout.py line 192-195):
This change fixes the issue. I don't know when or why this was changed on KiCad's part. Since I was using this plugin yesterday and it was fine. I did a bunch of hierarchical sheet restructuring today so perhaps this is a KiCad 7 change that only was applied when making and renaming sheets.
More info:
replicate_layout.log:
Kicad version info:
The text was updated successfully, but these errors were encountered: