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

NSoT Installation failure #377

Open
spatel221 opened this issue May 15, 2020 · 8 comments
Open

NSoT Installation failure #377

spatel221 opened this issue May 15, 2020 · 8 comments

Comments

@spatel221
Copy link

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
Copy link

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
Copy link

Either of you have any luck sorting this out?

@spatel221
Copy link
Author

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

@jdhall75
Copy link

jdhall75 commented May 22, 2020 via email

@spatel221
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Copy link

atomlab commented Mar 24, 2021

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>)

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

4 participants