web2py 2.25.1 - bug when running interactive shell?

37 views
Skip to first unread message

Tom Clerckx

unread,
Oct 27, 2023, 4:28:59 AM10/27/23
to web2py-users
I believe web2py/gluon/shell.py", line 238 should use os.path.abspath instead of absdir?

Unpacked and ran a clean version of web2py:

command: python web2py.py -B -S welcome -M

web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2023
Version 2.25.1-stable+timestamp.2023.10.08.18.44.43
Database drivers available: sqlite3, imaplib, pymysql, pyodbc
Traceback (most recent call last):
  File "/odindrive/temp/web2pytest/web2py/web2py.py", line 58, in <module>
    gluon.widget.start()
  File "/odindrive/temp/web2pytest/web2py/gluon/widget.py", line 746, in start
    run(options.shell, plain=options.plain, bpython=options.bpython,
  File "/odindrive/temp/web2pytest/web2py/gluon/shell.py", line 238, in run
    adir = os.path.absdir(os.path.join('applications', a))
AttributeError: module 'posixpath' has no attribute 'absdir'. Did you mean: 'isdir'?

Massimo Di Pierro

unread,
Oct 29, 2023, 2:31:48 PM10/29/23
to web2py-users
It should be abspath and should be fixed in master. I plan to release a new version today.
Reply all
Reply to author
Forward
0 new messages