GithubHelp home page GithubHelp logo

Comments (13)

Chankster avatar Chankster commented on July 26, 2024 1

In https://github.com/netdevopsbr/netbox-proxbox/blob/develop/netbox_proxbox/models.py#L15 change virtualization.models to virtualization.choices

from netbox-proxbox.

wolfspyre avatar wolfspyre commented on July 26, 2024

Yep!

I can confirm that does, in fact, fix the problem....

from netbox-proxbox.

deniskonovalov64 avatar deniskonovalov64 commented on July 26, 2024

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.

deniskonovalov64 avatar deniskonovalov64 commented on July 26, 2024

Or I don't understand something

from netbox-proxbox.

deniskonovalov64 avatar deniskonovalov64 commented on July 26, 2024

I understood where it was necessary to fix the config. Thanks)

from netbox-proxbox.

Kris33 avatar Kris33 commented on July 26, 2024

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.

Chankster avatar Chankster commented on July 26, 2024

@Kris33 as noted above:

In https://github.com/netdevopsbr/netbox-proxbox/blob/develop/netbox_proxbox/models.py#L15 change virtualization.models to virtualization.choices

from netbox-proxbox.

Kris33 avatar Kris33 commented on July 26, 2024

Done. Yet, I still have the error.

from netbox-proxbox.

Chankster avatar Chankster commented on July 26, 2024

Can you post your full traceback?

from netbox-proxbox.

Kris33 avatar Kris33 commented on July 26, 2024

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.

Chankster avatar Chankster commented on July 26, 2024

Will still need a full traceback.

from netbox-proxbox.

Kris33 avatar Kris33 commented on July 26, 2024

how do I generate that ? I have no more error

from netbox-proxbox.

JouanDeag avatar JouanDeag commented on July 26, 2024

See issue #59
This has already been reported

from netbox-proxbox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.