-
Notifications
You must be signed in to change notification settings - Fork 81
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
cannot change into environment when using babun ( zsh running on windows) #80
Comments
any pointers? |
Perhaps a full log will give better insight. I'm not as familiar with zsh, but I'll see if a log gives me any clues. |
pew logs? Where would i find a log? |
Sorry, I just meant for you to run the command that is failing, and copy-paste the whole session so that I can see it. |
pew new tester Using base prefix 'c:\\python35'
New python executable in tester\Scripts\python.exe
Installing setuptools, pip, wheel...done.
The system cannot find the path specified. pew workon tester The system cannot find the path specified. |
Blast. I was hoping it would tell me which path it didn't find. |
Uhm, that seems a Windows error message (due to CreateProcess). (Again, I procrastinated dealing with the last few issues :/ I'll try to deal with this by the end of the week for real this time) Thank you for the bug report! and sorry for the inconvenience |
I can help out if you need, i couldn't find a |
Ok, I felt really bad by neglecting these issues, and every time that I thought about it, that idea pushed me away from going back to work on pew once again :/ Now I finally booted into windows to dig into this issue. Good news: pew has worked inside Bad news: this applies only to a python installed inside cygwin. This is the Basically, the problem you've found is because You can work around it with But then you'll stumble another error... pew will use I tried to make a simple conversion with You can see the difference in behavior between the 2 pythons here:
Maybe that could be fixed with something like what mingw is doing. Furthermore, I think that if you don't actually need the whole Posix API, but you only want an unix-like shell, mingw is a simpler solution. Another solution could be to change the way the the shell_check is done, but I don't like the idea of making more code that is shell-specific. At the same time, I don't feel like adding kludges to fix this, guessing the correct format for the path that we're dealing with, etc. Especially when pew is already working correctly on a normal Windows environment and a Python installed on that environment, and on a Posix environment and a Python installed on that environment. So, what you might want to do is install pew inside cygwin. (I used the full path for the binaries to avoid ambiguities, since on my system I already have the normal Windows Python and pip inside
and voila (you might need to
I'll leave this issue open for now, in case there'll be another idea... otherwise I'll just document these steps for installing pew inside cygwin. |
Ill try installing pew in babun and report if I have any difficultie. if all goes well we can close this and ill make a pull request for the troubleshooting section |
Hi @timeyyy did you get it to work inside babun? I now updated the README, but if there's something else that can be fixed, please tell me |
In a fresh babun We got a step futher, but i guess i have to setup some more stuff
trying restore env
|
Uhm, I see that you're using python2 (apparently the cygwin guys are now shipping an updated version: 2.7.10, which is good) I wonder if the second error you got might be due to an incompatibility with cygwin of the backported I tried to run the restore command, and I don't get that error, even with a non-existing env, it'll try to readlink A path that ends in Unfortunately, I never use cygwin... I rebooted into windows just to try this out, ohmyzsh got updated, but now almost nothing works: both pip and virtualenv fail due to stuff like |
python3 gave resource errors like you mentioned. I looked around and it seems virtualenvwrapper and so on don't play so nicely with crygwin so i might explore those avenues when i get some time. In the meantime ill try mingw. Thanks for all the help! |
Installs and creates successfully using pip.
However i receive this when it finishes creating the env
The system cannot find the path specified.
The text was updated successfully, but these errors were encountered: