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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[windows] "failed to create process." #500

Closed
cpoptic opened this issue Jun 15, 2016 · 8 comments
Closed

[windows] "failed to create process." #500

cpoptic opened this issue Jun 15, 2016 · 8 comments

Comments

@cpoptic
Copy link

cpoptic commented Jun 15, 2016

馃毃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."

@balta2ar
Copy link
Member

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

@balta2ar
Copy link
Member

@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.

@vishalgakhare
Copy link

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

@vishalgakhare
Copy link

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

@balta2ar
Copy link
Member

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?

@balta2ar balta2ar changed the title "failed to create process." [windows] "failed to create process." Jun 16, 2016
@lorendunlop
Copy link

lorendunlop commented Jun 17, 2016

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:https://stackoverflow.com/questions/31808180/installing-pyinstaller-via-pip-leads-to-failed-to-create-process

@balta2ar
Copy link
Member

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

@cpoptic
Copy link
Author

cpoptic commented Jun 17, 2016

@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.

@cpoptic cpoptic closed this as completed Jun 17, 2016
balta2ar added a commit that referenced this issue Jun 17, 2016
Thanks to @lorendunlop for providing the solution!

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

No branches or pull requests

4 participants