DoctorFuchs / kiosk

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

Error after auto dependencies installation at first run (beta) #32

Closed codenius closed 2 years ago

codenius commented 2 years ago
Traceback (most recent call last):
  File "/root/kiosk/run.py", line 74, in <module>
    import server
  File "/root/kiosk/backend/server.py", line 5, in <module>
    from api import api
  File "/root/kiosk/backend/api.py", line 12, in <module>
    if not os.path.isdir(storageDir): os.mkdir(__file__.replace(f"backend{os.sep}shop.py", "storages"))
FileExistsError: [Errno 17] File exists: '/root/kiosk/backend/api.py'
codenius commented 2 years ago

Error at run after auto dependencies installation (gives error above)

Traceback (most recent call last):
  File "/root/kiosk/run.py", line 74, in <module>
    import server
  File "/root/kiosk/backend/server.py", line 5, in <module>
    from api import api
  File "/root/kiosk/backend/api.py", line 12, in <module>
codenius commented 2 years ago

Both are related to storages folder because they don't occur when creating it manually.

codenius commented 2 years ago

Please consider the 5th line in run.py while fixing. The working directory is set to projects root directory.

codenius commented 2 years ago

Probably solves with 2ccc10c