Qbot icon indicating copy to clipboard operation
Qbot copied to clipboard

python: can't open file '/usr/local/anaconda3/bin/python': [Errno 2] No such file or directory

Open wnight9527 opened this issue 1 year ago • 2 comments

🐛 Bug Description

To Reproduce

Steps to reproduce the behavior:

Expected Behavior

Screenshot

Environment

Note: User could run cd scripts && python collect_info.py all under project directory to get system information and paste them here directly.

  • Qbot version:
  • Python version:
  • OS (Windows, Linux, MacOS):
  • Commit number (optional, please provide it if you are using the dev version):

Additional Notes

wnight9527 avatar Aug 09 '23 08:08 wnight9527

运行main.py报的错

wnight9527 avatar Aug 09 '23 08:08 wnight9527

修改一下

    # os.popen(
    #     "python /usr/local/anaconda3/bin/python /Users/charmve/Qbot/auto_monitor.py"
    # ) 


    script_name = "auto_monitor.py"
    script_path = os.path.join(os.path.dirname(__file__), script_name)
    os.popen(f"{sys.executable} {script_path}")

Guangdinghou avatar Feb 22 '24 10:02 Guangdinghou