Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

onvif-cli does not work #74

Closed
wpyoga opened this issue Dec 10, 2024 · 1 comment · Fixed by #89
Closed

onvif-cli does not work #74

wpyoga opened this issue Dec 10, 2024 · 1 comment · Fixed by #89

Comments

@wpyoga
Copy link

wpyoga commented Dec 10, 2024

The README mentions the existence of onvif-cli, but it does not work.

What I did, at first:

  1. Create a virtual environment
  2. Install onvif-zeep-async inside the virtual environment with pip3 install onvif-zeep-async
  3. Call onvif-cli

This is the output on my terminal:

(venv) william@x99:~/p$ onvif-cli
Traceback (most recent call last):
  File "/home/william/p/venv/bin/onvif-cli", line 5, in <module>
    from onvif.cli import main
ModuleNotFoundError: No module named 'onvif.cli'

I also tried the other method mentioned in the README, but with a virtual environment:

  1. Create a virtual environment
  2. Clone this repo
  3. Install this package inside the virtual environment with python setup.py install
  4. Call onvif-cli

This is the output I get:

(venv) william@x99:~/python-onvif-zeep-async$ onvif-cli
Traceback (most recent call last):
  File "/home/william/python-onvif-zeep-async/venv/bin/onvif-cli", line 33, in <module>
    sys.exit(load_entry_point('onvif-zeep-async==3.1.13', 'console_scripts', 'onvif-cli')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/william/python-onvif-zeep-async/venv/bin/onvif-cli", line 25, in importlib_load_entry_point
    return next(matches).load()
           ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/importlib/metadata/__init__.py", line 205, in load
    module = import_module(match.group('module'))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'onvif.cli'

Now, I'm not very familiar with Python CLI tool development, but I should be able to contribute code if someone can give me a pointer here.

bdraco added a commit that referenced this issue Jan 23, 2025
@bdraco
Copy link
Member

bdraco commented Jan 23, 2025

This lib was forked from another project which had a CLI. Its left-overs and doesn't actually exist

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants