Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installation instructions for non-docker - ImportError NameSlugSearchFilterSet #16

Open
tigerz931 opened this issue Jun 28, 2023 · 4 comments
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Milestone

Comments

@tigerz931
Copy link

using non-docker NetBox v3.5.4
trying to solve the right installation steps which returns this error:
ImportError: cannot import name 'NameSlugSearchFilterSet' from 'utilities.filters' (/opt/netbox/netbox/utilities/filters.py)

same error which i was found in closed issue #5 without any information how it solved

installation steps made:

$ source /opt/netbox/venv/bin/activate
(venv) $ pip install netbox-plugin-config-officer

added to configuration.py

PLUGINS = [
    "config_officer"
]

plugin configuration as it is from the guide: (tried also without plugin configuration)

PLUGINS_CONFIG = {
    "config_officer": {
        # Credentials to cisco devices:
        "DEVICE_USERNAME": "cisco",
        "DEVICE_PASSWORD": "cisco",
        #"DEVICE_SSH_PORT" : 1234 #default - 22

        # Mount this directory to NetBox on docker-compose.yml
        "NETBOX_DEVICES_CONFIGS_DIR": "/device_configs",

        # Add these custom fields to NetBox in advance.
        "CF_NAME_SW_VERSION": "version",
        "CF_NAME_SSH": "ssh",
        "CF_NAME_LAST_COLLECT_DATE": "last_collect_date",
        "CF_NAME_LAST_COLLECT_TIME": "last_collect_time",
        "CF_NAME_COLLECTION_STATUS": "collection_status"
    }
}

run database migration gives an error:

(venv) $ cd /opt/netbox/netbox/
(venv) $ python3 manage.py migrate
..<continuous output>...
ImportError: cannot import name 'NameSlugSearchFilterSet' from 'utilities.filters' (/opt/netbox/netbox/utilities/filters.py)

appreciate for any instructions

Thank you

@artyomovs
Copy link
Owner

Sorry, I've just started working on plugin that supports 3.x Netbox version. I hope will finish it till mid of August.

@artyomovs artyomovs self-assigned this Jul 19, 2023
@artyomovs artyomovs added documentation Improvements or additions to documentation enhancement New feature or request labels Jul 19, 2023
@artyomovs artyomovs added this to the Version 3.X milestone Jul 19, 2023
@steelo22
Copy link

steelo22 commented Nov 4, 2023

Hello, Any info about this I want to used it for version 3.6.4

@shachlo10
Copy link

Sorry, I've just started working on plugin that supports 3.x Netbox version. I hope will finish it till mid of August.

i see you finish a plugin for docker installation , can you add a plugin in pip?
Or can i replace a filters.py script from you git to my installation?

@fedetrabu
Copy link

Any news about the 3.x version?
I tried a non-docker installation but I still get the
ImportError: cannot import name 'NameSlugSearchFilterSet' from 'utilities.filters' (/opt/netbox/netbox/utilities/filters.py)
error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants