Comments (13)
In https://github.com/netdevopsbr/netbox-proxbox/blob/develop/netbox_proxbox/models.py#L15 change virtualization.models
to virtualization.choices
from netbox-proxbox.
Yep!
I can confirm that does, in fact, fix the problem....
from netbox-proxbox.
Good afternoon, I am installing this plugin on netbox 3.4.2 and faced with such an error:
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/opt/netbox-3.4.2/venv/lib/python3.8/site-packages/django/core/management/__init__.py", line 446, in execute_from_command_line
utility.execute()
File "/opt/netbox-3.4.2/venv/lib/python3.8/site-packages/django/core/management/__init__.py", line 420, in execute
django.setup()
File "/opt/netbox-3.4.2/venv/lib/python3.8/site-packages/django/__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/opt/netbox-3.4.2/venv/lib/python3.8/site-packages/django/apps/registry.py", line 116, in populate
app_config.import_models()
File "/opt/netbox-3.4.2/venv/lib/python3.8/site-packages/django/apps/config.py", line 269, in import_models
self.models_module = import_module(models_module_name)
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 848, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/opt/netbox-3.4.2/venv/lib/python3.8/site-packages/netbox_proxbox/models.py", line 15, in <module>
from virtualization.models import VirtualMachineStatusChoices
ImportError: cannot import name 'VirtualMachineStatusChoices' from 'virtualization.models' (/opt/netbox-3.4.2/netbox/virtualization/models/__init__.py)
installed via pip3
What can be done in this case? Thank you in advance
from netbox-proxbox.
Or I don't understand something
from netbox-proxbox.
I understood where it was necessary to fix the config. Thanks)
from netbox-proxbox.
What did you to to fix? I have the same problem
ImportError: cannot import name 'VirtualMachineStatusChoices' from 'virtualization.models' (/opt/netbox-3.4.2/netbox/virtualization/models/init.py)
from netbox-proxbox.
@Kris33 as noted above:
In https://github.com/netdevopsbr/netbox-proxbox/blob/develop/netbox_proxbox/models.py#L15 change
virtualization.models
tovirtualization.choices
from netbox-proxbox.
Done. Yet, I still have the error.
from netbox-proxbox.
Can you post your full traceback?
from netbox-proxbox.
FInally had it working after upgrading to netbox 3.4.3.
Yet I still have this nagging erro after clicking on Full update:
Server Error
There was a problem with your request. Please contact an administrator.
The complete exception is provided below:
<class 'AttributeError'>
object has no attribute "slug"
Python version: 3.9.13
NetBox version: 3.4.3
Can't seems to be able to get rid of it.
Proxmox version is 7.3-4
from netbox-proxbox.
Will still need a full traceback.
from netbox-proxbox.
how do I generate that ? I have no more error
from netbox-proxbox.
See issue #59
This has already been reported
from netbox-proxbox.
Related Issues (20)
- Migration error HOT 7
- ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer')) HOT 2
- Compatibility for Netbox 3.6.1 HOT 1
- Can't add multiple proxmox clusters to proxbox PLUGINS_CONFIG block. Issue with dict vs list HOT 2
- multiple proxmox clusters - support setting site_id on each cluster config HOT 2
- Unable to add PVE nodes to Netbox HOT 2
- Refactor all backend to FastAPI framework
- CLOSED HOT 2
- dont show token value on proxbox plugin page HOT 1
- Support for Netbox 3.2.x
- Support version 3.7.1 HOT 2
- full update from netbox gives error HOT 2
- Full update does not work HOT 5
- How are you supposed to use this without SSL?
- migration error .. and SSL.. Of course. HOT 1
- Dynamic Proxmox configuration
- object has no attribute "slug"
- errors python3 manage.py migrate HOT 1
- pynetbox.core.query.RequestError - The specified disk size (53) must match the aggregate size of assigned virtual disks (55)
- Support for netbox 4.x HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from netbox-proxbox.