3D-STEP Coloring App - Posted At GitHub (Released Prelim Version)

I did a lot of tests by changing the path and editing the .py file but the app doesn’t start. inside kicad7

Let’s assume v7 is not the problem. Thus, a ‘Test’ consideration:

Just to see if problem is/isn’t file location and access

• Create a Folder on the Desktop, put the App and some of the listed STEP file in it.

Run the App from there to ensure all is good.

Then, Change the Path in the Plugin and see if plugin runs the App. On my system, it takes about 15 seconds to run after I click the Icon (why, I don’t know)

The Path on my Linux: Unfortunately, I was running Linux (with Kicad v6) in VirtualBox but, yesterday, I deleted Linux from VirtualBox and switched to UTM for running virtual machines and have not yet installed Kicad into Linux on this UTM virtual machine. Thus, cannot answer re the Plugin/Path question on Linux.

But, sounds like it’s not a Plugin or my App issue. Sounds more like a system file access issue…

We can do one simple test: I can post a Dumb Plugin - if you can get it running, that would confirm some aspects of the issue.

I’ll need some time to put it together and post it - should be within the next couple of hours (I have some things to attend to, first… and, more Black Coffee to drink)

Test done ,
if I start the app from the folder on the desktop it works but with the icon inside pcb_New with the modified .py file it does not start. I waited over 15 seconds but it doesn’t start.

Consider:

• The running App may be hidden behind the Kicad window (probably not but, worth checking)

• There are 3 or 4 different ways to run an External App from Python and a plugin. Using the “subprocess” method is the most-used, reliable way. But, you could try the “OS” approach - (change the necessary Path and App info):

os.system(‘/path_to_the_App/some_app’s.executable_file’)

Another Example - running a Java App:
subprocess.call([‘/usr/bin/open’,‘/Users/bruce/myJava_Out/Woof_R1.jar’])

Another Example - running a Windows App:
subprocess.call([‘/usr/bin/open’,‘/Users/bruce/Library/CopperCAM.exe’])

Another Example - running LibreOffice’s embedded DataBase App
subprocess.call([‘/usr/bin/open’,‘/Users/bruce/Documents/aDataBases/Project_Tracking1/Project_Tracking_1FORM.odt’])

Quick - test: Set the Path to Any App that works and try the OS approach (it may cause the App to keep running and/or close Kicad…) Machines/systems are not as smart as we think they should be…

You can Google around to find the others (probably quicker than my digging though stacks of paper)

Perfect,
With
os.system (“/home/tistructor/Scrivania/3D_STEP-Colorizer/STEP_Colorizer_v1r0_MACwxLIN”)

it worked properly.
Thanks

1 Like

Excellent! That saves me from digging through stacks of paper and re-loading Kicad into new UTM vm, I was very reluctant to do that because I just fully cleaned my system…)

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.