Skip to content

Error creating manufacturers on Netbox 4.2.7 #169

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

Open
sharkless opened this issue Apr 16, 2025 · 2 comments
Open

Error creating manufacturers on Netbox 4.2.7 #169

sharkless opened this issue Apr 16, 2025 · 2 comments

Comments

@sharkless
Copy link

I just intalled a new netbox server for the company I work for. I started to the import and I get the following error message.

Error creating manufacturers
Error '{"manufacturer":["Related object not found using the provided attributes: {'name': 'Juniper', 'slug': 'juniper'}"]}' creating module type: {'manufacturer': {'name': 'Juniper', 'slug': 'juniper'}, 'model': 'JNP7100-FAN1RU-AO', 'part_number': 'JNP7100-FAN1RU-AO', 'comments': 'AFO Fan module for ACX7100 routers', 'src': '/opt/Device-Type-Library-Import/repo/module-types/Juniper/JNP7100-FAN1RU-AO.yaml'}
Error '{"manufacturer":["Related object not found using the provided attributes: {'name': 'Juniper', 'slug': 'juniper'}"]}' creating module type: {'manufacturer': {'name': 'Juniper', 'slug': 'juniper'}, 'model': 'SRX600-PWR-645AC-POE', 'part_number': '740-024283', 'comments': 'Juniper SRX550 Data Sheet\n', 'power-ports': [{'name': 'PSU {module}', 'type': 'iec-60320-c14', 'maximum_draw': 645}], 'src': '/opt/Device-Type-Library-Import/repo/module-types/Juniper/SRX600-PWR-645AC-POE.yaml'}
Traceback (most recent call last):
File "/opt/Device-Type-Library-Import/./nb-dt-import.py", line 54, in
main()
File "/opt/Device-Type-Library-Import/./nb-dt-import.py", line 35, in main
netbox.create_module_types(module_types)
File "/opt/Device-Type-Library-Import/netbox_api.py", line 176, in create_module_types
self.device_types.create_module_power_ports(curr_mt["power-ports"], module_type_res.id)
^^^^^^^^^^^^^^^
UnboundLocalError: cannot access local variable 'module_type_res' where it is not associated with a value

@aki263
Copy link

aki263 commented Apr 21, 2025

Getting similar error
local variable 'dt' referenced before assignment

Image

@justinsbeck
Copy link

also having issues on 4.2.8

Netbox version 4.2 found. Using new filters.
192 Vendors Found
4304 Device-Types Found
Error creating manufacturers
Error {"manufacturer":["Related object not found using the provided attributes: {'name': 'LiteOn', 'slug': 'liteon'}"]} creating device type: LiteOn PF-2273-2L1M-LF
Error {"manufacturer":["Related object not found using the provided attributes: {'name': 'Datto', 'slug': 'datto'}"]} creating device type: Datto AP840

LHBL2003 added a commit to LHBL2003/Device-Type-Library-Import that referenced this issue May 8, 2025
Troubleshooting “Error creating manufacturers” Only a part of the data was imported. Cisco, Opengear, Fortinet e.g. not.

Removes:
netbox-community#172

Perhaps also:
netbox-community#169

netbox-community#123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants