dropbox / nsot

Network Source of Truth is an open source IPAM and network inventory database
https://nsot.readthedocs.io
Other
398 stars 66 forks source link

NSoT Installation failure #377

Open spatel221 opened 4 years ago

spatel221 commented 4 years ago

Hello - hope someone can help me. I followed the nsot installation guide for a CentOS machine, after first reading it through on nsot.readthedocs.io/en/latest/intsallation.html, found on the website. I was successfull up until the actual install of nsot and I came across the below errors. I am on CentOS-7:


[centos@nsot-test-centos-server ~]$ sudo pip install nsot DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support Collecting nsot Downloading nsot-1.4.6.tar.gz (941 kB) |████████████████████████████████| 941 kB 1.2 MB/s ERROR: Command errored out with exit status 1: command: /usr/bin/python2 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-l82_sW/nsot/setup.py'"'"'; file='"'"'/tmp/pip-install-l82_sW/nsot/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-rO4CuV cwd: /tmp/pip-install-l82_sW/nsot/ Complete output (1 lines): error in nsot setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.


Separately, I also tried install for python3 whereby I substituted pip with pip3 where necessary. That installation was successful on the latest version of NSoT and I was able to run nsot-server init and it cerated the config file, however, when trying to start nsot, it was throwing an exception, trying to look for a module that it could not find:

nsot-python3-centos7-start-failt


I am hoping this is something trivial and I am missing some steps somewhere or a mis-config of some sort Regards, Sandip

shorton3 commented 4 years ago

I'm getting a similar issue installing 1.4.6 on latest Centos7: nsot_config module not found. The last successful install of nsot for me was 1.4.4. I've tried with both python2 and python3. Any guidance?

jdhall75 commented 4 years ago

Either of you have any luck sorting this out?

spatel221 commented 4 years ago

Jason, No luck at all at the moment. Would love some help on this. Willing to try anything :)

jdhall75 commented 4 years ago

well.. after much googling I decided to "unloganify" NSoT and make it a normal Django App.I just got it up and running. I'll probably start another repo for just the app portion with instructions on how to get it installed as part of a Django project. I'll keep you all posted if your are interested.

Currently running it on Python 3.4 and Django 1.11.29. The next project is to get Django up on 2.2 LTS which will be supported until 2022. Then start working on bringing the front end up to date. Thennnnn add the functionality that I want. Haha! Right now its time for a long weekend and a couple beers!.

Have a good one! -J

On Thu, May 21, 2020 at 4:00 PM spatel221 notifications@github.com wrote:

Jason, No luck at all at the moment. Would love some help on this. Willing to try anything :)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/dropbox/nsot/issues/377#issuecomment-632313110, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAI5WURSFUE7F5KE5BOG66TRSWB6BANCNFSM4NBW6NAA .

spatel221 commented 4 years ago

Yes please Jason, I would like to be a part of your "Keep you posted" list. Thank you so much for responding to the concerns - look forward to your response (and the new repo when it is there).

spatel221 commented 4 years ago

Hi Jason, My humble question laced with great appreciation for your help is; As you got this working, when do you anticipate having this out? I would love to have a go and see if I can continue playing around with it to get it to work on my VM.

Regards, Sandip

spatel221 commented 3 years ago

Hey Jason, It's been a few months, is there anyone that's working on this? Kinda at a loss right now and I fear our IT folks are starting to get a little concerned and they are thinking of another platform to migrate us to. My team would prefer to stay on NSoT. Any help will do.

atomlab commented 3 years ago

The same problem. Ubuntu 20.04

# pip3 install nsot
# nsot-server init
Configuration file created at '/root/.nsot/nsot.conf.py'
# nsot-server start

output

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/logan/importer.py", line 64, in validate
    execfile(self.config_path, {
  File "/usr/local/lib/python3.8/dist-packages/logan/importer.py", line 21, in execfile
    exec(fh.read(), globalz, localz)
  File "<string>", line 11, in <module>
  File "/usr/local/lib/python3.8/dist-packages/nsot/conf/settings.py", line 414, in <module>
    0, dialect=macaddress.default_dialect(), version=48
  File "/usr/local/lib/python3.8/dist-packages/macaddress/__init__.py", line 18, in default_dialect
    if hasattr(settings, 'MACADDRESS_DEFAULT_DIALECT') and not MACAddressField.dialect:
  File "/usr/local/lib/python3.8/dist-packages/django/conf/__init__.py", line 56, in __getattr__
    self._setup(name)
  File "/usr/local/lib/python3.8/dist-packages/django/conf/__init__.py", line 41, in _setup
    self._wrapped = Settings(settings_module)
  File "/usr/local/lib/python3.8/dist-packages/django/conf/__init__.py", line 110, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named 'nsot_config'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/nsot-server", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.8/dist-packages/nsot/util/core.py", line 347, in main
    run_app(
  File "/usr/local/lib/python3.8/dist-packages/logan/runner.py", line 191, in run_app
    configure_app(config_path=config_path, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/logan/runner.py", line 125, in configure_app
    importer.install(
  File "/usr/local/lib/python3.8/dist-packages/logan/importer.py", line 40, in install
    sys.meta_path.append(LoganImporter(name, config_path, default_settings, **kwargs))
  File "/usr/local/lib/python3.8/dist-packages/logan/importer.py", line 55, in __init__
    self.validate()
  File "/usr/local/lib/python3.8/dist-packages/logan/importer.py", line 69, in validate
    raise ConfigurationError(unicode(e), exc_info[2])
logan.importer.ConfigurationError: ("No module named 'nsot_config'", <traceback object at 0x7fc36fc41780>)