Closed myamigo closed 1 year ago
I think I can get by using KC 6.0 and the pending fix to https://github.com/MitjaNemec/ReplicateLayout/issues/35 and just use KC 7.0 when I need to generate outputs so the component text is oriented correctly. This seems like the least risky option.
I just installed the stable release of KC 7.0 to try 2.0.3 of the replicator. It failed with the familiar root sheet error...
... so I tried applying the fix you offered before ... #34 (comment) and this time it worked. That looks like a safe update to apply over 2.0.3
I also note that the text offset error described in https://github.com/MitjaNemec/ReplicateLayout/issues/35 is still present but I gave up trying to figure out what needs to be done to get that working. I'm sure it'll be straight forward for you though.
When these are sorted out then I will try working more with KC7 to see if there are any other issues.
Thanks for additional info. Currently I am a bit short on time, so the progress is quite slow.
Hello,
I'm on RC7 also (replicate layout v2.0.7) and i have the same problem with the replicator. I have 100 channels of the same sheet to place so i'm very very interested in a quick fix. I'm ready to help !
I cannot provide the full project but it's a nested hierarchical schematic.
Here is the log :
03-03 10:47:02 com_github_MitjaNemec_ReplicateLayout.action_replicate_layout 326:Plugin executed on: 'linux'
03-03 10:47:02 com_github_MitjaNemec_ReplicateLayout.action_replicate_layout 327:Plugin executed with python version: '3.9.2 (default, Feb 28 2021, 17:03:44) \n[GCC 10.2.1 20210110]'
03-03 10:47:02 com_github_MitjaNemec_ReplicateLayout.action_replicate_layout 328:KiCad build version: (7.0.0-rc1-342-g4eb3a99bb5)
03-03 10:47:02 com_github_MitjaNemec_ReplicateLayout.action_replicate_layout 329:Plugin version: 2.0.1
03-03 10:47:02 com_github_MitjaNemec_ReplicateLayout.action_replicate_layout 330:Frame repr: <wx._core.Frame object at 0x7ff4da7939d0>
03-03 10:47:02 com_github_MitjaNemec_ReplicateLayout.action_replicate_layout 354:Preparing replicator with U13 as a reference
03-03 10:47:02 com_github_MitjaNemec_ReplicateLayout.replicate_layout 110:getting a list of all footprints on board
03-03 10:47:02 com_github_MitjaNemec_ReplicateLayout.action_replicate_layout 369:Fatal error when making an instance of replicator
Traceback (most recent call last):
File "~/.local/share/kicad/7.0/3rdparty/plugins/com_github_MitjaNemec_ReplicateLayout/action_replicate_layout.py", line 358, in Run
replicator = Replicator(board, src_anchor_fp_reference)
File "~/.local/share/kicad/7.0/3rdparty/plugins/com_github_MitjaNemec_ReplicateLayout/replicate_layout.py", line 153, in __init__
self.parse_schematic_files(self.sch_filename, schematic_found)
File "~/.local/share/kicad/7.0/3rdparty/plugins/com_github_MitjaNemec_ReplicateLayout/replicate_layout.py", line 199, in parse_schematic_files
self.parse_schematic_files(sheetfile, dict_of_sheets)
File "~/.local/share/kicad/7.0/3rdparty/plugins/com_github_MitjaNemec_ReplicateLayout/replicate_layout.py", line 179, in parse_schematic_files
with open(filename, encoding='utf-8') as f:
FileNotFoundError: [Errno 2] No file or folder of this type: ''
It seems to be an empty filename parsed by the _parse_schematicfiles function :
if "(property \"Sheet file\"" in contents[j] or "(property \"Sheetfile\"" in contents[j]:
if "(property \"Sheet file\"" in contents[j]:
sheetfile = contents[j].replace("(property \"Sheet file\"", '').split("(")[0].replace("\"", "").strip()
sf_found = True
if "(property \"Sheetfile\"" in contents[j]:
sheetfile = contents[j].replace("(property \"Sheetfile\"", '').split("(")[0].replace("\"", "").strip()
sf_found = True
So i guess this call need some tweaks :
contents[j].replace("(property \"[...]\"", '').split("(")[0].replace("\"", "").strip()
@Germwalker you should update the plugin as I think that the bug has been fixed
Indeed it worked ! Issue can be closed
Thanks for reporting back
I tried the latest KC 7.0 RC nightly build with your 2.0.1 replicator and I had issues with the KC PCM finding the URL for your installer but that seemed to be a problem with other plugins as well. I downloaded the 2.0.1 ZIP and installed it manually and got by that issue but found the replicator failed with a familiar error...![image](https://user-images.githubusercontent.com/17319745/211645761-bdb22c4b-ca5f-46dc-8556-fdb9017a91bd.png)
Log here... replicate_layout.log
I tried applying the fix you offered before ... https://github.com/MitjaNemec/ReplicateLayout/issues/34#issuecomment-1371947498 ... but that didn't help.
If we can get your replicator to work with the KC 7.0 RC then I think I might be OK with going to that.