reorx / httpstat

curl statistics made simple
MIT License
5.98k stars 384 forks source link

FileNotFoundError on WIN7/Python3.6.0, installed with Pip #28

Closed janik6n closed 7 years ago

janik6n commented 7 years ago

Trying to run httpstat https://google.com on Windows 7 with Python 3.6.0, results a stack trace:

Traceback (most recent call last):
  File "C:\Users\me\AppData\Local\Programs\Python\Python36\Scripts\httpstat-script.py", line 11, in <module>
    load_entry_point('httpstat==1.2.1', 'console_scripts', 'httpstat')()
  File "c:\users\me\appdata\local\programs\python\python36\lib\site-packages\httpstat.py", line 221, in main
    p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=cmd_env)
  File "c:\users\me\appdata\local\programs\python\python36\lib\subprocess.py", line 707, in __init__
    restore_signals, start_new_session)
  File "c:\users\me\appdata\local\programs\python\python36\lib\subprocess.py", line 990, in _execute_child
    startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
reorx commented 7 years ago

This should be caused by no curl is installed on your machine, because httpstat must be work with a curl exists on your PATH, you can try install curl to see if it can fix the problem On Thu, 26 Jan 2017 at 06:05 Jani Karhunen notifications@github.com wrote:

Trying to run httpstat https://google.com on Windows 7 with Python 3.6.0, results a stack trace:

Traceback (most recent call last): File "C:\Users\me\AppData\Local\Programs\Python\Python36\Scripts\httpstat-script.py", line 11, in load_entry_point('httpstat==1.2.1', 'console_scripts', 'httpstat')() File "c:\users\me\appdata\local\programs\python\python36\lib\site-packages\httpstat.py", line 221, in main p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=cmd_env) File "c:\users\me\appdata\local\programs\python\python36\lib\subprocess.py", line 707, in init restore_signals, start_new_session) File "c:\users\me\appdata\local\programs\python\python36\lib\subprocess.py", line 990, in _execute_child startupinfo) FileNotFoundError: [WinError 2] The system cannot find the file specified

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/reorx/httpstat/issues/28, or mute the thread https://github.com/notifications/unsubscribe-auth/AAYx1AzBjXDJsqOhQDiu3z-tSDhXS8ykks5rWH3igaJpZM4LuhR_ .

janik6n commented 7 years ago

Did not have curl on my PATH for some reason. Solved, thanks!