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

running deploy on Windows raises "assert os.path.isfile(pip_exe)" #31

Closed
rupello opened this issue Jul 12, 2016 · 4 comments
Closed

running deploy on Windows raises "assert os.path.isfile(pip_exe)" #31

rupello opened this issue Jul 12, 2016 · 4 comments
Labels

Comments

@rupello
Copy link

rupello commented Jul 12, 2016

I'm following the tutorial instructions and getting the error below:

chalice deploy
Initial creation of lambda function.
Updating IAM policy.
Creating deployment package.
Traceback (most recent call last):
File "C:\Python27\Lib\runpy.py", line 162, in run_module_as_main
"main", fname, loader, pkg_name)
File "C:\Python27\Lib\runpy.py", line 72, in run_code
exec code in run_globals
File "C:\Users\rlloyd\venvs\chalice-demo\Scripts\chalice.exe__main
.py", line 9, in

...snipped...

_first_time_lambda_create
config['project_dir'])
File "c:\users\rlloyd\venvs\chalice-demo\lib\site-packages\chalice\deployer.py", line 633, in create_deployment_package
assert os.path.isfile(pip_exe)
AssertionError

@rupello
Copy link
Author

rupello commented Jul 12, 2016

Here is a workaround for this

deployer.py line #632:
#pip_exe = os.path.join(venv_dir, 'Scripts', 'pip')
pip_exe = os.path.join(venv_dir, 'Scripts', 'pip.exe')

deployer.py line #644:
#python_dir = os.listdir(os.path.join(venv_dir, 'lib'))[0]
#deps_dir = os.path.join(venv_dir, 'lib', python_dir,
deps_dir = os.path.join(venv_dir, 'lib',
'site-packages')

@jamesls
Copy link
Member

jamesls commented Jul 12, 2016

Thanks for reporting. I'll get this updated.

@jamesls jamesls added the bug label Jul 12, 2016
@sdole
Copy link

sdole commented Aug 10, 2016

I had the same issue. listed workaround worked for me. thanks.

@jamesls jamesls mentioned this issue Sep 21, 2016
@jamesls
Copy link
Member

jamesls commented Sep 21, 2016

Fixed via: #124

@jamesls jamesls closed this as completed Sep 21, 2016
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

3 participants