Greetings, In a new virtual environment using Python3's built-in venv functionality, with IPython installed and latest web2py source. When dropping into a web2py-ipython shell, starting ipython throws a "list index out of range" exception and the shell defaults to interactive. Steps to reproduce below.
jose@VM-ubu1804x64:~/python-environments$ python3 -m venv w2p_test jose@VM-ubu1804x64:~/python-environments$ workon w2p_test (w2p_test) jose@VM-ubu1804x64:~/python-environments$ pip3 install ipython (w2p_test) jose@VM-ubu1804x64:~/python-environments$ ipython Python 3.6.5 (default, Apr 1 2018, 05:46:30) Type 'copyright', 'credits' or 'license' for more information IPython 6.4.0 -- An enhanced Interactive Python. Type '?' for help. In [1]: Do you really want to exit ([y]/n)? y (w2p_test) jose@VM-ubu1804x64:~/python-environments/w2p_test/lib/web2py$ python web2py.py -S welcome web2py Web Framework Created by Massimo Di Pierro, Copyright 2007-2018 Version 2.16.1-stable+timestamp.2018.06.02.04.50.21 Database drivers available: sqlite3, imaplib, pymysql WARNING:web2py:import IPython error; use default python shell. Exception was: list index out of range *<--* I edited line 329 of gluon/shell.py to display the Exception thrown here. Python 3.6.5 (default, Apr 1 2018, 05:46:30) [GCC 7.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole) >>> *** System specs... System: Ubuntu Mate 18.04 (x64) running in Virtualbox VM Python version: 3.6.5 web2py latest available download source (for testers): Version 2.16.1-stable+timestamp.2018.06.02.04.50.21 IPython version installed: 6.4.0 I am able to reproduce this consistently with steps above. Can anyone else reproduce the error as well (so I can rule out an environment problem) in which case I can file an official bug report if necessary? Many thanks, Jose -- Resources: - http://web2py.com - 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.