coursera-dl / coursera-dl

Script for downloading Coursera.org videos and naming them.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[windows] "failed to create process."

cpoptic opened this issue · comments

commented

🚨Please review the Troubleshooting section
before reporting any issue. Don't forget to check also the current issues to
avoid duplicates.

Subject of the issue

"failed to create process." when i run coursera-dl from command line terminal

Your environment

  • Operating System (name/version): Windows 10
  • Python version: 3.5.1
  • coursera-dl version: 0.5.2

Steps to reproduce

Tell us how to reproduce this issue, please don't forget to include
enough information so that you can help us help you:

  • Is the problem happening with the latest version of the script? I downloaded the most recent version so I believe so.
  • Do you have all the recommended versions of the modules? See them in the
    file requirements.txt.
    I manually ran "pip show " for all 7 of the dependencies listed in requirements.txt and they all meet or exceed the version requirement.
  • What is the course that you are trying to access? multiple. They all failed to run. pgm-003, among others.
  • What is the precise command line that you are using (don't forget to obfuscate
    your username and password, but leave all other information untouched). coursera-dl --version` returns error message "

failed to create process.

"
Running pip show coursera-dl returns nothing and simply returns an empty prompt.

  • What are the precise messages that you get? Please, use the --debug
    option before posting the messages as a bug report. Please, copy and paste
    them. Don't reword/paraphrase the messages. Simply returns:

failed to create process.

Expected behaviour

Tell us what should happen. I should at least get the version of coursera-dl

Actual behaviour

Tell us what happens instead. If the script fails, please copy the entire
output of the command or the stacktrace (don't forget to obfuscate your
username and password). If you cannot copy the exception, attach a screenshot.

actual behavior is it simply returns the error message "failed to create process."

@cpoptic Could you make a screenshot? I've never seen anything like that before.

@cpoptic That's weird... Could you try putting your password into double quotes?
Also, pip version is outdated and buggy. Please use the latest github version.

The "coursera-dl" process won't launch. Details are same as provided by the initial submitter:
image

pip version is little behind but that should be find.
image

Judging from what I've quickly found on the Internet, this might be a setuptools bug. Need to look into that.

For the moment, could you make sure path to your Python installation does not contain spaces? For example, if your python is installed into "C:\Program Files\Python 3.5", could you reinstall it into, say, "C:\Python3.5" and see if that helps?

in
C:\Users\AppData\Local\Programs\Python\Python35-32\Scripts

or wherever python installed (above is default for windows)

edit below file in idle: (right click on script name and select 'edit with idle in menu)

coursera-dl-script

from

#!c:\users\loren dunlop\appdata\local\programs\python\python35-32\python.exe

to

#"!c:\users\loren dunlop\appdata\local\programs\python\python35-32\python.exe"

(add quotes)

this is a known PIP bug - took me nearly two hours of messing about but I got there....

source

http://stackoverflow.com/questions/31808180/installing-pyinstaller-via-pip-leads-to-failed-to-create-process

@lorendunlop Thank you! That's definitely worth adding to the README.

commented

@lorendunlop Thanks so much! This solved the issue for my config. I'm guessing it's related to the Python.exe path having spaces in it. The double quotes around the full pathname fixed it.