Git Product home page Git Product logo

Comments (5)

manb911 avatar manb911 commented on May 20, 2024

By any chance, are you running on deepstream-5.1?

from maskcam.

Chockaaa avatar Chockaaa commented on May 20, 2024

yes, I am using deepstream-5.1

from maskcam.

Chockaaa avatar Chockaaa commented on May 20, 2024

currently I am facing this issue after changing to deepstream 5.0

python3 maskcam_run.py
| DEBUG Using selector: EpollSelector selector_events.py:54
INFO maskcam-run | Using input from config file: prints.py:48
v4l2:///dev/video0
INFO maskcam-run | Connecting to MQTT server prints.py:48
192.68.10.130:1883
INFO maskcam-run | Device name: jetsonnano prints.py:48

Traceback (most recent call last):
╭──────────────────────────────────────────────────────────────────────────────╮
│ File "maskcam_run.py", line 443, in │
│ 440 │
│ 441 # Init MQTT or set these to None │
│ 442 if is_live_input: │
│ ❱ 443 mqtt_client = mqtt_init(config) │
│ 444 else: │
│ 445 mqtt_client = None │
│ 446 │
│ File "maskcam_run.py", line 159, in mqtt_init │
│ 156 broker_ip=MQTT_BROKER_IP, │
│ 157 broker_port=MQTT_BROKER_PORT, │
│ 158 subscribe_to=[(MQTT_TOPIC_COMMANDS, 2)], # handles re-sub│
│ ❱ 159 cb_success=mqtt_on_connect, │
│ 160 ) │
│ 161 mqtt_client.on_message = mqtt_process_message │
│ 162 │
│ File "/home/jetsonnano/maskcam/maskcam/mqtt_common.py", line 94, in │
│mqtt_connect_broker │
│ 91 client = paho_mqtt_client.Client(client_id) │
│ 92 client.on_connect = cb_on_connect │
│ 93 client.on_disconnect = cb_on_disconnect │
│ ❱ 94 client.connect(broker_ip, broker_port) │
│ 95 client.loop_start() │
│ 96 return client │
│ 97 │
│ File │
│"/home/jetsonnano/.local/lib/python3.6/site-packages/paho/mqtt/client.py", │
│line 941, in connect │
│ 938 │
│ 939 self.connect_async(host, port, keepalive, │
│ 940 bind_address, bind_port, clean_start, prop│
│ ❱ 941 return self.reconnect() │
│ 942 │
│ 943 def connect_srv(self, domain=None, keepalive=60, bind_address="",│
│ 944 clean_start=MQTT_CLEAN_START_FIRST_ONLY, properti│
│ File │
│"/home/jetsonnano/.local/lib/python3.6/site-packages/paho/mqtt/client.py", │
│line 1075, in reconnect │
│ 1072 # Put messages in progress in a valid state. │
│ 1073 self._messages_reconnect_reset() │
│ 1074 │
│ ❱ 1075 sock = self._create_socket_connection() │
│ 1076 │
│ 1077 if self._ssl: │
│ 1078 # SSL is only supported when SSLContext is available (imp│
│ File │
│"/home/jetsonnano/.local/lib/python3.6/site-packages/paho/mqtt/client.py", │
│line 3546, in _create_socket_connection │
│ 3543 if proxy: │
│ 3544 return socks.create_connection(addr, source_address=sourc│
│ 3545 else: │
│ ❱ 3546 return socket.create_connection(addr, source_address=sour│
│ 3547 │
│ 3548 │
│ 3549 # Compatibility class for easy porting from mosquitto.py. │
│ File "/usr/lib/python3.6/socket.py", line 724, in create_connection │
│ 721 sock.close() │
│ 722 │
│ 723 if err is not None: │
│ ❱ 724 raise err │
│ 725 else: │
│ 726 raise error("getaddrinfo returns an empty list") │
│ 727 │
│ File "/usr/lib/python3.6/socket.py", line 713, in create_connection │
│ 710 sock.settimeout(timeout) │
│ 711 if source_address: │
│ 712 sock.bind(source_address) │
│ ❱ 713 sock.connect(sa) │
│ 714 # Break explicitly a reference cycle │
│ 715 err = None │
│ 716 return sock │
╰──────────────────────────────────────────────────────────────────────────────╯
timeout: timed out
Traceback (most recent call last):
╭──────────────────────────────────────────────────────────────────────────────╮
│ File "maskcam_run.py", line 572, in │
│ 569 except: # noqa │
│ 570 console.print_exception() │
│ 571 try: │
│ ❱ 572 if process_inference is not None and process_inference.is_aliv│
│ 573 terminate_process(P_INFERENCE, process_inference, e_interr│
│ 574 except: # noqa │
│ 575 console.print_exception() │
╰──────────────────────────────────────────────────────────────────────────────╯
NameError: name 'process_inference' is not defined
Traceback (most recent call last):
╭──────────────────────────────────────────────────────────────────────────────╮
│ File "maskcam_run.py", line 577, in │
│ 574 except: # noqa │
│ 575 console.print_exception() │
│ 576 try: │
│ ❱ 577 if process_fileserver is not None and process_fileserver.is_al│
│ 578 terminate_process(P_FILESERVER, process_fileserver, e_inte│
│ 579 except: # noqa │
│ 580 console.print_exception() │
╰──────────────────────────────────────────────────────────────────────────────╯
NameError: name 'process_fileserver' is not defined
Traceback (most recent call last):
╭──────────────────────────────────────────────────────────────────────────────╮
│ File "maskcam_run.py", line 582, in │
│ 579 except: # noqa │
│ 580 console.print_exception() │
│ 581 try: │
│ ❱ 582 if process_streaming is not None and process_streaming.is_aliv│
│ 583 terminate_process(P_STREAMING, process_streaming, e_interr│
│ 584 except: # noqa │
│ 585 console.print_exception() │
╰──────────────────────────────────────────────────────────────────────────────╯
NameError: name 'process_streaming' is not defined

from maskcam.

manb911 avatar manb911 commented on May 20, 2024

I would check:

  1. Are any ports being utilized already?
  2. If the Yolo extraction was done correctly, since I ran across an error in building yolo on deepstream-5.1 so had to edit the makefile abit

from maskcam.

Chockaaa avatar Chockaaa commented on May 20, 2024

I managed to use docker instead to run it. I think I might have missed some steps in the manual installation process. Thanks.

from maskcam.

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.