Python 3.13 compatibility

95 views
Skip to first unread message

Nico Zanferrari

unread,
Nov 12, 2024, 3:59:49 PM11/12/24
to py4web
Hi,

it seems we've finally reached it with the latest version of py4web, ombott and pydal! Please report any issue.

I've only found this error on a fresh pip-installation on Windows and the showcase app startup. Can someone confirm it?

Nico
--------------------------------------------------------------------------------------------------------------------------------------

C:\Users\nico\Desktop\py4web>python py4web.py run apps

██████◣◥█◣  ◢█◤ ██   ██ ██      ██ ███████ ██████◣
██   ██ ◥█◣◢█◤  ██   ██ ██      ██ ██      ██   ██
██████◤  ◥██◤   ███████ ██  ◢◣  ██ ██████  ██████
██        ██         ██ ◥█◣◢██◣◢█◤ ██      ██   ██
██        ██         ██  ◥██◤◥██◤  ███████ ██████◤

Py4web: 1.20241019.1 on Python 3.13.0 (tags/v3.13.0:60403a5, Oct  7 2024, 09:38:07) [MSC v.1941 64 bit (AMD64)]


[X] loaded fadebook
[ ] loading showcase ...
[2024-11-12T19:28:34.137317]: Traceback (most recent call last):
  File "C:\Users\nico\Desktop\py4web\py4web\core.py", line 1431, in import_app
    module = load_module(module_name, init)
  File "C:\Users\nico\Desktop\py4web\py4web\core.py", line 162, in load_module
    spec.loader.exec_module(module)
    ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
  File "<frozen importlib._bootstrap_external>", line 1022, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "C:\Users\nico\Desktop\py4web\apps\showcase\__init__.py", line 47, in <module>
    from .vue_components_examples.vue_edit_form import vue_edit_form
  File "C:\Users\nico\Desktop\py4web\apps\showcase\vue_components_examples\vue_edit_form.py", line 28, in <module>
    edit_form = EditForm()
  File "C:\Users\nico\Desktop\py4web\apps\showcase\vue_components_examples\vue_edit_form.py", line 10, in __init__
    db.vue_form_table, session, "edit-form-vue", use_id=True, db=db, auth=auth
    ^^^^^^^^^^^^^^^^^
  File "C:\Users\nico\AppData\Local\Programs\Python\Python313\Lib\site-packages\pydal\base.py", line 788, in __getattr__
    return BasicStorage.__getattribute__(self, key)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
AttributeError: 'DAL' object has no attribute 'vue_form_table'
[FAILED] loading showcase ('DAL' object has no attribute 'vue_form_table')
[X] loaded tagged_posts
[X] loaded todo
[X] loaded _dashboard
[X] loaded _default
[X] loaded _documentation
[X] loaded _minimal
[X] loaded _scaffold
[X] loaded _websocket

You have not set a dashboard password. Run "py4web.py set_password" to do so.
Ombott v2.3 server starting up (using <class 'py4web.server_adapters.adapter_rocket3.Rocket3Adapter'>(reloader=False, logging_level=20))...
Listening on http://127.0.0.1:8000/
watching (lazy-mode) python file changes in: C:\Users\nico\Desktop\py4web\apps
Hit Ctrl-C to quit.

Starting Rocket3 20241019.1 > MainThread > 19:28:34.325
Listening on sockets: 127.0.0.1:8000 > MainThread > 19:28:34.327

Massimo

unread,
Nov 13, 2024, 1:17:20 AM11/13/24
to py4web
Can you please check the  latest? I am unable to reproduce but I think I fixed it anyway

Nico Zanferrari

unread,
Nov 13, 2024, 4:00:43 PM11/13/24
to Massimo, py4web
Now it works like a charm!

Thank you,
Nico

image.png

--
You received this message because you are subscribed to the Google Groups "py4web" group.
To unsubscribe from this group and stop receiving emails from it, send an email to py4web+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/py4web/fe028fff-29c7-4317-b2d7-79045bb44dd8n%40googlegroups.com.

donal...@gmail.com

unread,
Nov 15, 2024, 4:34:27 PM11/15/24
to py4web
Excellent work on getting py4web to 3.13.  However for me would be nice if cgi module could also be moved out of markmin or advise if there is an alternative approach?

Donald



Massimo DiPierro

unread,
Nov 16, 2024, 12:14:59 AM11/16/24
to donal...@gmail.com, py4web
will do that. should be easy

Massimo

unread,
Nov 18, 2024, 12:47:37 AM11/18/24
to py4web
Which markmin code do you refer to?

Reply all
Reply to author
Forward
0 new messages