-
Hello, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
I recommend you start by installing the "netbox-animal-sounds" plugin, exactly as it is, so you can see how it all works. Otherwise, I suggest you give some more information about your problem, preferably link to the code repo if you can. What exact step fails: is it |
Beta Was this translation helpful? Give feedback.
-
Hmm... I just tried netbox-animal-sounds with netbox v3.0.4, and I get an exception which might be the same problem as you're seeing (although you didn't show the exact error you saw):
Here are the files installed by the package:
There is no I changed So in this case, the problem was not that the templates weren't installed, but that the templates themselves were wrong. This may or may not be the same problem that you see. @jeremystretch: I see that the github repo for netbox-animal-sounds, linked from the pypi page, appears to have vanished. I think this is unfortunate. It would be very helpful to have a working example plugin, updated to be compatible with Netbox v3. |
Beta Was this translation helpful? Give feedback.
-
Hello, I have a fix for my problem. So I added a
So now when I install the plugin with |
Beta Was this translation helpful? Give feedback.
Hello,
I have a fix for my problem.
I think the error was in the
setup.py
atpackages=find_packages()
. It seems that the methodfind_packages()
cannot find the template folder. Can someone explain me why?So I added a
MANIFEST.in
in the same directory as thesetup.py
which includes the templates folder and I addinclude_package_data = True
in mysetup.py
.This is the
MANIFEST.in
:So now when I install the plugin with
pip install git+<github_url>
the template folder is included.