Skip to content

Configure.py / main.py cannot be run from another folder #358

@pingyaru

Description

@pingyaru

Problem
I was trying to make step 4 "Configure system monitor" in the "how to start" guide, but it won't start. I was using C:\Users\Sergey\AppData\Local\Programs\Python\Python311\python.exe "D:\small programs\turing-smart-screen-python-3.3.3\configure.py" command to run configure.py. I also tried to run cmd as and administrator.

Screenshot 2023-10-12 215912

C:\Windows\System32>C:\Users\Sergey\AppData\Local\Programs\Python\Python311\python.exe "D:\small programs\turing-smart-screen-python-3.3.3\configure.py" Traceback (most recent call last): File "D:\small programs\turing-smart-screen-python-3.3.3\configure.py", line 434, in <module> configurator = TuringConfigWindow() ^^^^^^^^^^^^^^^^^^^^ File "D:\small programs\turing-smart-screen-python-3.3.3\configure.py", line 148, in __init__ self.window.iconphoto(True, PhotoImage(file="res/icons/monitor-icon-17865/64.png")) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Sergey\AppData\Local\Programs\Python\Python311\Lib\tkinter\__init__.py", line 4125, in __init__ Image.__init__(self, 'photo', name, cnf, master, **kw) File "C:\Users\Sergey\AppData\Local\Programs\Python\Python311\Lib\tkinter\__init__.py", line 4072, in __init__ self.tk.call(('image', 'create', imgtype, name,) + options) _tkinter.TclError: couldn't open "res/icons/monitor-icon-17865/64.png": no such file or directory

I made path to 64.png absolute in configure.py but next it said there was a problem with path to config.yaml. I cound't solve it, so I decided to open an issue

Screenshot 2023-10-12 215947

Environment:

  • Smart screen model: XuanFang 3.5" Revision flagship
  • OS with version: Windows 11
  • Python version: Python 3.11
  • Hardware: gigabyte b760 ds3h ddr4, i5-12400f, sapphire rx 6700 xt, Adata XPG gammix D20 32gb, Kingston KC3000 1tb

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions