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

After installing green on Windows from pip it fails to run #127

Closed
mairsbw opened this issue Jun 29, 2016 · 9 comments
Closed

After installing green on Windows from pip it fails to run #127

mairsbw opened this issue Jun 29, 2016 · 9 comments
Labels

Comments

@mairsbw
Copy link

mairsbw commented Jun 29, 2016

I installed green using pip with administrator permissions on my Windows 10 x64 machine where Python3.5 is install into Program Files. After installing if I run green green.examples I see only failed to create process and the program returns. But if I run it like python -m green green.examples, then it works correctly. It looks like that program is an executable, so it shouldn't be a Python pathing issue. Any ideas what's going on here?

@CleanCut
Copy link
Owner

I don't use Windows! So...no, I really have no idea.

@MinchinWeb @jayvdb Do you guys have any ideas on this?

@CleanCut CleanCut added the bug label Jun 30, 2016
@MinchinWeb
Copy link
Contributor

I can confirm the issue. I tried running green --version on a fresh system going back to green 1.8 and the issue ('failed to create process`) came up each time. My guess is there is some dependency that is not being installed...

@MinchinWeb
Copy link
Contributor

I suspect it may be this issue with using pip to install --> pypa/pip#2783

The issue is that the green launcher is being install into a directory with a space in the path. To workaround, I would suggest you download the code, and then install manually using python setup.py install. Let me know if that works.

@jayvdb
Copy link
Contributor

jayvdb commented Jul 1, 2016

Maybe this is the underlying problem, and is now fixed?

pypa/setuptools#398 (comment)

@CleanCut
Copy link
Owner

Unless someone knows otherwise, I will consider this as a bug in setuptools on Windows that has been fixed in some recent setuptools release.

@jayvdb
Copy link
Contributor

jayvdb commented Jul 20, 2016

@mairsbw , @MinchinWeb , can you check whether you have installed python in a directory with spaces in the name?
I will have access to a decent Windows maxhine tomorrow.

But we should be able to reproduce this on Appveyor.

@MinchinWeb
Copy link
Contributor

@jayvdb The default installation directory for Python 3.5 on Windows is now the Program Files directory, so my Python 3.5 is installed to C:\Program Files\Python 3.5\python.EXE.

My green wasn't working, so I uninstalled it with pip and then reinstalled it (just now), and green seems to be working now. So hopefully this is now fixed in setuptools, and remains that waypip . I'm currently running Windows 10x64, Python 3.5.2, pip 8.1.2, setuptools 24.0.3, and green 2.5.1.

@jayvdb
Copy link
Contributor

jayvdb commented Jul 28, 2016

This is probably the same problem as #98

@MinchinWeb
Copy link
Contributor

@jayvdb The way I described it, this may well be the same as 98. Good catch.

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

No branches or pull requests

4 participants