FreeBSD 10.3
While running 'make' I get the following warning and errors. I need help to decide if these are benign warnings or something that needs to be fixed before I install.
Running Sphinx v1.5.2 making output directory... WARNING: sphinx.ext.pngmath has been deprecated. Please use sphinx.ext.imgmath instead. loading pickled environment... not yet created building [mo]: targets for 0 po files that are out of date building [html]: targets for 43 source files that are out of date updating environment: 43 added, 0 changed, 0 removed reading sources... [100%] release-notes
/usr/local/src/nav-4.8.2/doc/api/mibretriever.rst:4: WARNING: autodoc: failed to import module u'nav.mibs.mibretriever'; the following exception was raised: Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/sphinx/ext/autodoc.py", line 551, in import_object __import__(self.modname)
File "/usr/local/src/nav-4.8.2/python/nav/mibs/__init__.py", line 20, in <module> from . import mibretriever
File "/usr/local/src/nav-4.8.2/python/nav/mibs/mibretriever.py", line 41, in <module> from nav.ipdevpoll import ContextLogger
File "/usr/local/src/nav-4.8.2/python/nav/ipdevpoll/__init__.py", line 24, in <module> from nav.models import manage
File "/usr/local/src/nav-4.8.2/python/nav/models/__init__.py", line 30, in <module> django.setup()
File "/usr/local/lib/python2.7/site-packages/django/__init__.py", line 20, in setup configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
File "/usr/local/lib/python2.7/site-packages/django/conf/__init__.py", line 46, in __getattr__ self._setup(name)
File "/usr/local/lib/python2.7/site-packages/django/conf/__init__.py", line 42, in _setup self._wrapped = Settings(settings_module)
File "/usr/local/lib/python2.7/site-packages/django/conf/__init__.py", line 98, in __init__ % (self.SETTINGS_MODULE, e)
ImportError: Could not import settings 'nav.django.settings' (Is it on sys.path? Is there an import error in the settings file?): No module named configparser /usr/local/src/nav-4.8.2/doc/api/searchproviders.rst:75: WARNING: autodoc: failed to import class u'SearchProvider' from module u'nav.web.info.searchproviders'; the following exception was raised: Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/sphinx/ext/autodoc.py", line 551, in import_object __import__(self.modname)
File "/usr/local/src/nav-4.8.2/python/nav/web/__init__.py", line 18, in <module> import configparser
ImportError: No module named configparser
/usr/local/src/nav-4.8.2/doc/api/searchproviders.rst:87: WARNING: autodoc: failed to import class u'SearchResult' from module u'nav.web.info.searchproviders'; the following exception was raised: Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/sphinx/ext/autodoc.py", line 551, in import_object __import__(self.modname)
File "/usr/local/src/nav-4.8.2/python/nav/web/__init__.py", line 18, in <module> import configparser
ImportError: No module named configparser
/usr/local/src/nav-4.8.2/doc/api/sensor.rst:3: WARNING: autodoc: failed to import class u'Sensor' from module u'nav.models.manage'; the following exception was raised: Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/sphinx/ext/autodoc.py", line 551, in import_object __import__(self.modname)
File "/usr/local/src/nav-4.8.2/python/nav/models/__init__.py", line 30, in <module> django.setup()
File "/usr/local/lib/python2.7/site-packages/django/__init__.py", line 20, in setup configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
File "/usr/local/lib/python2.7/site-packages/django/conf/__init__.py", line 46, in __getattr__ self._setup(name)
File "/usr/local/lib/python2.7/site-packages/django/conf/__init__.py", line 42, in _setup self._wrapped = Settings(settings_module)
File "/usr/local/lib/python2.7/site-packages/django/conf/__init__.py", line 98, in __init__ % (self.SETTINGS_MODULE, e)
ImportError: Could not import settings 'nav.django.settings' (Is it on sys.path? Is there an import error in the settings file?): No module named configparser /usr/local/src/nav-4.8.2/doc/api/sensor.rst:10: WARNING: autodoc: failed to import module u'nav.ipdevpoll.plugins.sensors'; the following exception was raised: Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/sphinx/ext/autodoc.py", line 551, in import_object __import__(self.modname)
File "/usr/local/src/nav-4.8.2/python/nav/ipdevpoll/__init__.py", line 24, in <module> from nav.models import manage
File "/usr/local/src/nav-4.8.2/python/nav/models/__init__.py", line 30, in <module> django.setup()
File "/usr/local/lib/python2.7/site-packages/django/__init__.py", line 20, in setup configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
File "/usr/local/lib/python2.7/site-packages/django/conf/__init__.py", line 46, in __getattr__ self._setup(name)
File "/usr/local/lib/python2.7/site-packages/django/conf/__init__.py", line 42, in _setup self._wrapped = Settings(settings_module)
File "/usr/local/lib/python2.7/site-packages/django/conf/__init__.py", line 98, in __init__ % (self.SETTINGS_MODULE, e)
ImportError: Could not import settings 'nav.django.settings' (Is it on sys.path? Is there an import error in the settings file?): No module named configparser /usr/local/src/nav-4.8.2/doc/reference/smsd.rst:155: WARNING: autodoc: failed to import module u'nav.smsd.navdbqueue'; the following exception was raised: Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/sphinx/ext/autodoc.py", line 551, in import_object __import__(self.modname)
File "/usr/local/src/nav-4.8.2/python/nav/smsd/navdbqueue.py", line 27, in <module> import nav.db
File "/usr/local/src/nav-4.8.2/python/nav/db/__init__.py", line 32, in <module> from nav import config
File "/usr/local/src/nav-4.8.2/python/nav/config.py", line 24, in <module>
import configparser
ImportError: No module named configparser
On Thu, 14 Dec 2017 09:36:10 +0100 Ingeborg Hellemo ingeborg.hellemo@uit.no wrote:
FreeBSD 10.3
While running 'make' I get the following warning and errors. I need help to decide if these are benign warnings or something that needs to be fixed before I install.
These error messages are all related to building the NAV documentation. Parts of the documentation uses autodoc to autogenerate the documentation of various code interfaces, and will fail if parts of the NAV code cannot be loaded at build time.
If the documentation is not critical to you, then no worries.
Whether this will be an actual problem depends entirely on whether you are building this on a separate environment, or in the environment it is supposed to run. If it will be running in the same environment, you are missing something - in this case, at least the configparser module, as mentioned in the release notes of NAV 4.8