Asked this one on SO here as I was just reminded of how much nicer this community tends to be to newb questions.
I'm attempting to integrate MSAL which requires the requests module.
I'm running python 3.7 on Linux and using pipenv to manage the environment. I'm also using web2py 2.24.1 from source (as in I download the web2py framework via the source button on the web2py website).
When I am in pipenv shell and go into the python shell, I can access the requests, however when I try to access it from web2py (running in same shell), I get the "module not found" error.
When I check the site-packages folder the requests packages is present. I have checked the pythonpath and seen that the path from the virtual environment is present.
When attempting to load the web2py python shell, it gives the same error.
I'm probably missing something, but it sometimes appears as if web2py
does some code compilation and then uses the compiled stuff and ignores
code changes after a certain point. Asking as I have commented out all
the code involving the requests module in an effort to get the web2py
shell working, but still get the error and now the entire app is not working even on the master branch which was previously working.
Not sure what to try next. Any ideas are appreciated.
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/83b8a4ab-120a-4106-83f2-d37652c23093n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/9e3df18e-403a-4bd2-b42b-8c9028da601fn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/7e1b981a-d2fe-4af2-8e42-57acc4ca1e7cn%40googlegroups.com.
export PYENV_ROOT="$HOME/.pyenv"command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"eval "$(pyenv init -)"eval "$(pyenv virtualenv-init -)"
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/da72c846-1b5a-448f-a51c-32be529a1935n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/3c344817-a69f-427b-ac52-4e1b3918cd85n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/CANPTPxK2oeg_5KxvEjzVoYU_xo0LLJKZWZGvP5Mr%2BoGVcSHrYQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/97b021b0-ae9d-4395-8692-9669993e7c0bn%40googlegroups.com.