Git Product home page Git Product logo

Comments (2)

lavitiy avatar lavitiy commented on July 18, 2024

19:12 $ maintenance/install.py
Do you want switchmap-ng to start automatically after a reboot?: (Y, N) n
OK - Python version 3.10.
OK - Python pip3 executable found.
OK - Python module "setuptools" is installed.
OK - Python pip3 executable found.
OK - Python module "PyYAML" is installed.
OK - Created configuration file /home/gramazeka/switchmap-ng/switchmap-ng/etc/config.yaml.
OK - Installing required pip3 packages from requirements.txt file.
2023-10-31 19:13:19,431962 - gramazeka - STATUS - [1127] Could not start daemon switchmap-ng-api.
2023-10-31 19:13:19,432095 - gramazeka - STATUS - [1001] Failed to start daemon switchmap-ng-api.
2023-10-31 19:13:19,972491 - gramazeka - STATUS - [1127] Could not start daemon switchmap-ng-poller.
2023-10-31 19:13:19,972631 - gramazeka - STATUS - [1001] Failed to start daemon switchmap-ng-poller.


  1. Edit file /home/gramazeka/switchmap-ng/switchmap-ng/etc/config.yaml with correct SNMP parameters and then restart the daemons.
  2. You can restart switchmap-ng daemons with these commands:
    $ bin/switchmap-ng-cil restart api
    $ bin/switchmap-ng-cli restart poller
  3. Switchmap-NG will not automatically restart after a reboot. You need to re-install as the "root" user for this to occur.

19:28 $ bin/switchmap-ng-cli restart poller
Traceback (most recent call last):
File "/home/gramazeka/switchmap-ng/switchmap-ng/bin/switchmap-ng-cli", line 24, in
from switchmap.cli import cli
File "/home/gramazeka/switchmap-ng/switchmap-ng/switchmap/cli/cli.py", line 15, in
from switchmap.cli import show, start, test, stop, restart
File "/home/gramazeka/switchmap-ng/switchmap-ng/switchmap/cli/show.py", line 16, in
from switchmap.main.agent import Agent, AgentAPI, AgentDaemon
File "/home/gramazeka/switchmap-ng/switchmap-ng/switchmap/main/agent.py", line 29, in
from switchmap.www import API
File "/home/gramazeka/switchmap-ng/switchmap-ng/switchmap/www/init.py", line 14, in
from switchmap.www.routes.api.devices import API_DEVICES
File "/home/gramazeka/switchmap-ng/switchmap-ng/switchmap/www/routes/api/devices.py", line 12, in
from switchmap.www.pages import device
File "/home/gramazeka/switchmap-ng/switchmap-ng/switchmap/www/pages/device.py", line 10, in
from flask_table import Table, Col
File "/home/gramazeka/.local/lib/python3.10/site-packages/flask_table/init.py", line 1, in
from .table import Table, create_table
File "/home/gramazeka/.local/lib/python3.10/site-packages/flask_table/table.py", line 5, in
from flask import Markup
ImportError: cannot import name 'Markup' from 'flask' (/home/gramazeka/.local/lib/python3.10/site-packages/flask/init.py)

19:25 $ uname -a
Linux-VirtualBox 6.2.0-35-generic #35~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Oct 6 10:23:26 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
19:25 $ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.3 LTS"

from switchmap-ng.

maxferrario-msf avatar maxferrario-msf commented on July 18, 2024

I have the same error, and the same OS (Ubuntu 22.04.3 LTS).
The only (minor?) difference is that in my case the error message refers to the file lib/python3.10/dist-packages/flask/init.py

from switchmap-ng.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.