Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows failure: Bash not found #121

Open
tommix626 opened this issue Jun 11, 2021 · 6 comments
Open

Windows failure: Bash not found #121

tommix626 opened this issue Jun 11, 2021 · 6 comments

Comments

@tommix626
Copy link

PS D:\git\himawaripy> python3 himawaripy --auto-offset
himawaripy 2.2.0
Updating...
Latest version: 2021/06/11 13:30:00 GMT.
Detected offset: UTC+08:00
Offset version: 2021/06/11 11:30:00 GMT.
Downloading tiles...
Downloading tiles: 1/16 completed...
Downloading tiles: 2/16 completed...
Downloading tiles: 3/16 completed...
Downloading tiles: 4/16 completed...
Downloading tiles: 5/16 completed...
Downloading tiles: 6/16 completed...
Downloading tiles: 7/16 completed...
Downloading tiles: 8/16 completed...
Downloading tiles: 9/16 completed...
Downloading tiles: 10/16 completed...
Downloading tiles: 11/16 completed...
Downloading tiles: 12/16 completed...
Downloading tiles: 13/16 completed...
Downloading tiles: 14/16 completed...
Downloading tiles: 15/16 completed...
Downloading tiles: completed.
Saving to 'C:\Users\Tom\AppData\Local\himawaripy\Cache\himawari-20210611T113000.png'...
'bash' 不是内部或外部命令,也不是可运行的程序
或批处理文件。( is neither a command nor executable)
Could NOT retrieve env. var. DBUS_SESSION_BUS_ADDRESS
'bash' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
Could NOT retrieve env. var. DISPLAY
Exception in thread himawaripy-main-thread:
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\threading.py", line 954, in _bootstrap_inner
self.run()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\threading.py", line 892, in run
self._target(*self._args, **self.kwargs)
File "D:\git\himawaripy\himawaripy_main
.py", line 214, in thread_main
r = set_background(output_file)
File "C:\Users\Tom\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\himawaripy\utils.py", line 92, in set_background
elif has_program("feh"):
File "C:\Users\Tom\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\himawaripy\utils.py", line 199, in has_program
subprocess.check_output(["which", "--", program])
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 424, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 505, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 951, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 1420, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] 系统找不到指定的文件。

@tommix626
Copy link
Author

win10 terminal python3.9

@tommix626
Copy link
Author

when changing the wallpaper somehow it went wrong but the downloading is successful

@jasonho1308
Copy link

Windows don't have bash

@tommix626
Copy link
Author

So Is there a way to let it work on windows' python terminal?

@jasonho1308
Copy link

You may try this #118

@tommix626
Copy link
Author

Thank you! I'll give it a try

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants