sushantnadkar / vcgencmd

Python binding for Raspberry Pi's Video Core General Command Service (vcgencmd)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python can't find vcgencmd after install in Debian Buster 64-bit

slowtoaccept opened this issue · comments

debian@beaglebone:~$ python3
Python 3.7.3 (default, Dec 20 2019, 18:57:59)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

KeyboardInterrupt

from vcgencmd import Vcgencmd
Traceback (most recent call last):
File "/home/debian/.local/lib/python3.7/site-packages/vcgencmd/init.py", line 4, in
subprocess.check_output("vcgencmd")
File "/usr/lib/python3.7/subprocess.py", line 395, in check_output
**kwargs).stdout
File "/usr/lib/python3.7/subprocess.py", line 472, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/python3.7/subprocess.py", line 775, in init
restore_signals, start_new_session)
File "/usr/lib/python3.7/subprocess.py", line 1522, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'vcgencmd': 'vcgencmd'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "", line 1, in
File "/home/debian/.local/lib/python3.7/site-packages/vcgencmd/init.py", line 6, in
raise ImportError(""vcgencmd" command not found")
ImportError: "vcgencmd" command not found

### Note that using 'pip3 show vcgencmd' got this:
debian@beaglebone:$ pip3 show vcgencmd
Name: vcgencmd
Version: 0.1.1
Summary: Python binding for RaspberryPi vcgencmd command-line tool
Home-page: https://github.com/sushantnadkar/vcgencmd.git
Author: Sushant Nadkar
Author-email: None
License: The MIT License (MIT)
Location: /home/debian/.local/lib/python3.7/site-packages
Requires:
Required-by:
debian@beaglebone:
$