gregdavill / KiBuzzard

MIT License
425 stars 33 forks source link

KiBuzzard Plugin Not showing in KiCad Tools after Installation #50

Closed dhairyashah1 closed 2 years ago

dhairyashah1 commented 3 years ago
  1. cloned the repo in ~/.kicad/scripting/plugins
  2. After multiple attempts still the plugin is not showing in KiCAD tools even after refreshing.
  3. What could be a possible fix? I'm using Ubuntu 20.04 LTS.
  4. Also got this error as well Screenshot from 2021-06-10 17-35-29
gregdavill commented 3 years ago

Is there a KiBuzzard.log or error.log file created?

dhairyashah1 commented 3 years ago

@gregdavill yes there is a kibuzzard.log file at this path ~/.kicad/scripting/plugins/KiBuzzard. But it seems to be empty.

gregdavill commented 3 years ago

Which version of KiCad do you have installed?

Can you see anything in the Action Plugin tab in the KiCad preferences? There should be an icon that appears, but on this page there is an option to not show the icon. Screenshot from 2021-06-11 08-42-31

gregdavill commented 3 years ago

I've also just noticed that I've got mine installed in ~/.kicad/scripting/. Both should work, but maybe try that too?

dhairyashah1 commented 3 years ago

Which version of KiCad do you have installed?

Can you see anything in the Action Plugin tab in the KiCad preferences? There should be an icon that appears, but on this page there is an option to not show the icon. Screenshot from 2021-06-11 08-42-31

Nope Not getting this. Kicad version 5.1.5. Tried in scripting dir too , but same result.

x70b1 commented 3 years ago

I can see the same issue. After a clean install the plugin is not loading.

Sometimes I have this in my error.log. It means permission denied.

PermissionError(13, 'Keine Berechtigung')

chmod 777 -R /usr/share/kicad/scripting/plugins/KiBuzzard/ is evil, but lets the plugin load at a kicad startup. So we need to fix the permission for a small set of files I guess.

gregdavill commented 3 years ago

You shouldn't see any permission issues if you're installing it into ~/.kicad/Scripting/, since that's in your home directory.

The only thing we are trying to write to that file is the error logs, and a config file which stores all the current GUI values. Even if we're not able to write it shouldn't cause the plugin to crash and not load, so this is a bug.

x70b1 commented 3 years ago

I install it to /usr/share/kicad/scripting/plugins/ as it works for every user on the system. Especially in the case of a prepackaged installation this is the way to go.

InteractiveHtmlBom is also there and just works fine. So it would be cool if we can find out what we need to change to run it from there.

But yeah, @dhairyashah1 installed it also in his home dir and it is not loading. So i am not sure if thats the same root cause.

gregdavill commented 2 years ago

Permission errors should be fixed with: 8c11d36b3bdee416121ac418a5248658b47ee843

x70b1 commented 2 years ago

Seems to work. Awesome! :sunglasses: