DoctorFuchs / kiosk

Kiosk cash system app
GNU General Public License v3.0
7 stars 3 forks source link

Can‘t auto install dependencies when running from other directory than project root #20

Closed codenius closed 2 years ago

codenius commented 2 years ago
$ python3 kiosk/run.py 
ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
Traceback (most recent call last):
  File "/root/kiosk/run.py", line 57, in <module>
    __import__("flask")
ModuleNotFoundError: No module named 'flask'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/kiosk/run.py", line 59, in <module>
    upgradeDependencies()
  File "/root/kiosk/run.py", line 23, in upgradeDependencies
subprocess.CalledProcessError: Command '['/usr/bin/python3', '-m', 'pip', 'install', '-r', 'requirements.txt', '-t', '/root/kiosk/lib', '--upgrade', '--no-user']' returned non-zero exit status 1.
codenius commented 2 years ago

Solves with e10feac.