[web2py] Why am I getting "unable to import requests" in web2py even though requests is accessible directly through python

2023-05-26 Thread vald...@gmail.com
Asked this one on SO here as I was just reminded of how much nicer this community tends to be to newb questions. I

[web2py] Re: Why am I getting "unable to import requests" in web2py even though requests is accessible directly through python

2023-05-26 Thread vald...@gmail.com
ilt on python *3.10.10* and using web2py (python3 > version) "Version 2.24.1-stable+timestamp.2023.03.23.05.07.17", the import > *FAILS *within a web2py shell*.* > > In both cases the import of the requests library works fine when running > just the python interpreter. &

Re: [web2py] Why am I getting "unable to import requests" in web2py even though requests is accessible directly through python

2023-05-27 Thread vald...@gmail.com
temp/test/web2py/gluon/packages/yatl', '/home/tclerckx/temp/test/web2py/gluon/packages/dal', '/home/tclerckx/.pyenv/versions/3.10.6/lib/python310.zip', '/home/tclerckx/.pyenv/versions/3.10.6/lib/python3.10', '/home/tclerckx/.pyenv/versions/3.10.6/lib/pyth

Re: [web2py] Why am I getting "unable to import requests" in web2py even though requests is accessible directly through python

2023-05-29 Thread vald...@gmail.com
hub.com/web2py/web2py.git >> cd web2py/ >> git submodule update --init --recursive >> >> Activate the venv: >> >> pyenv local testvenv >> pip install requests >> >> (testvenv) max@d11:~/web2py$ ./web2py.py -S welcome >> web2py Web Framework

Re: [web2py] Why am I getting "unable to import requests" in web2py even though requests is accessible directly through python

2023-06-01 Thread vald...@gmail.com
importer >>>>> result = sys.modules[modules_prefix] >>>>> KeyError: 'applications.welcome.modules.requests' >>>>> >>>>> It seems that pipenv introduces some oddity that broke the >>>>> custom_import in web2py. &

[web2py] Web2py move to a new server resulted in this 'CommonDialect' object has no attribute 'eq'

2023-10-21 Thread vald...@gmail.com
Hi Guys, I recently upgraded an app I wrote with web2py about 4 years ago to work with Python 3. I got a lot of this 'CommonDialect' object has no attribute 'eq' error until I removed the requires=IS_IN_DB() references to other tables and put the majority of the references into a separate mod

[web2py] Re: Web2py move to a new server resulted in this 'CommonDialect' object has no attribute 'eq'

2023-10-22 Thread vald...@gmail.com
g in to the app. Very strange On Saturday, October 21, 2023 at 4:45:09 PM UTC-5 vald...@gmail.com wrote: > Hi Guys, > > I recently upgraded an app I wrote with web2py about 4 years ago to work > with Python 3. > I got a lot of this 'CommonDialect' object has > no attrib

[web2py] Re: Web2py move to a new server resulted in this 'CommonDialect' object has no attribute 'eq'

2023-10-22 Thread vald...@gmail.com
ames/values must be" AssertionError: Header names/values must be of type str (got 50) On Sunday, October 22, 2023 at 3:53:47 AM UTC-5 vald...@gmail.com wrote: > It's as if any attempt to read tables based on the db object causes this > error. > > I was getting this error wher

[web2py] adding routes.py causes a module import error

2024-02-12 Thread vald...@gmail.com
Hi, I'm using web2py Version 2.27.1-stable+timestamp.2023.11.16.08.03.57. Whenever I add a routes.py file I get the below error. I've tried adding "from gluon import fileutils" to the top of the routes.py file even though the issue appears to be with rewrite.py. Any ideas? Traceback (most rece