py4web 1.20250603.1 is out

61 views
Skip to first unread message

Massimo

unread,
Jun 4, 2025, 2:30:13 AM6/4/25
to py4web
Major major changes

- new Grid
- new _dashboard dbadmin uses the above Grid
- pydal QueryBuilder as default in dashboard
- fixed ldap_plugin bug (thanks rakeshsingh)
- fixed form upload bug (thanks jpargaf)
- many small fixes.

have been updated to reflect the changes in the dashboard. Thanks Jim!

Please report any problem.

Christian Varas

unread,
Jun 4, 2025, 11:32:08 AM6/4/25
to Massimo, py4web
Hello Massimo, thanks for the update.

I'm facing a bug after updating. The option "-H" to listen in a specific IP is causing errors, and is not possible to access via web browser.
It works normally without the -H option.

python3 py4web.py run apps -A _dashboard -H 0.0.0.0

watching (lazy-mode) python file changes in: /Users/b4rt0/Documents/develop/py4web/apps
Starting Rocket3 20241225.1 > MainThread > 11:22:08.233
Listening on sockets: 0.0.0.0:8000 > MainThread > 11:22:08.237
127.0.0.1 - "GET /_dashboard/static/css/future.css HTTP/1.1" - 200 5926 > Thread-3 > 11:22:13.174
Unhandled Error when serving connection:
Traceback (most recent call last):

  File "/Users/b4rt0/venv11/lib/python3.11/site-packages/rocket3/__init__.py", line 1165, in run
    self.run_app(conn)

  File "/Users/b4rt0/venv11/lib/python3.11/site-packages/rocket3/__init__.py", line 1651, in run_app
    self.environ = environ = self.build_environ(sock_file, conn)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Users/b4rt0/venv11/lib/python3.11/site-packages/rocket3/__init__.py", line 1468, in build_environ
    request = self.read_request_line(sock_file)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Users/b4rt0/venv11/lib/python3.11/site-packages/rocket3/__init__.py", line 1213, in read_request_line
    d = sock_file.readline()
        ^^^^^^^^^^^^^^^^^^^^

  File "/usr/local/Cellar/pyt...@3.11/3.11.9_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/socket.py", line 706, in readinto
    return self._sock.recv_into(b)
           ^^^^^^^^^^^^^^^^^^^^^^^

OSError: [Errno 57] Socket is not connected
 > Thread-4 > 11:22:14.082
Unhandled Error when serving connection:
Traceback (most recent call last):

  File "/Users/b4rt0/venv11/lib/python3.11/site-packages/rocket3/__init__.py", line 1165, in run
    self.run_app(conn)

  File "/Users/b4rt0/venv11/lib/python3.11/site-packages/rocket3/__init__.py", line 1651, in run_app
    self.environ = environ = self.build_environ(sock_file, conn)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Users/b4rt0/venv11/lib/python3.11/site-packages/rocket3/__init__.py", line 1468, in build_environ
    request = self.read_request_line(sock_file)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Users/b4rt0/venv11/lib/python3.11/site-packages/rocket3/__init__.py", line 1213, in read_request_line
    d = sock_file.readline()
        ^^^^^^^^^^^^^^^^^^^^

  File "/usr/local/Cellar/pyt...@3.11/3.11.9_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/socket.py", line 706, in readinto
    return self._sock.recv_into(b)
           ^^^^^^^^^^^^^^^^^^^^^^^ 


Also to install the dependencies with poetry I had to modify pyproject.toml. 
when tried:
$ poetry install
The Poetry configuration is invalid:
  - Project name (py4web) is same as one of its dependencies

I had to change the name in the project section to avoid this issue.
[project]
name = "py4web-framework"


Greetings.
Chris.

--
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/9fe27953-4935-44cb-bbbf-29496bb8dff3n%40googlegroups.com.

Massimo

unread,
Jun 5, 2025, 1:23:09 AM6/5/25
to py4web
I cannot reproduce the problem. Is it possible you are running in a venv and py4web is already installed in the venv?
Reply all
Reply to author
Forward
0 new messages