Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Error after update werkzeug to 3.0.1

189 views
Skip to first unread message

Fabio Lenzarini

unread,
Nov 3, 2023, 4:20:51 AM11/3/23
to Jam.py Users Mailing List
Hi all,
I've installed Jam.py 7.19 and updated werkzeug to versione 3.0.1

when I start my application I got:

  • File "c:\python310\lib\site-packages\werkzeug\local.py", line 232, in application
    return ClosingIterator(app(environ, start_response), self.cleanup)
  • File "c:\python310\lib\site-packages\werkzeug\middleware\shared_data.py", line 249, in __call__
    return self.app(environ, start_response)
  • File "c:\python310\lib\site-packages\jam\wsgi.py", line 241, in __call__
    return self.on_api(request)(environ, start_response)
  • File "c:\python310\lib\site-packages\jam\wsgi.py", line 725, in on_api
    request.save_client_cookie(response, task)
  • File "c:\python310\lib\site-packages\jam\wsgi.py", line 84, in save_client_cookie
    cookie.save_cookie(response, key=self.session_key, session_expires=expires, httponly=True, samesite='Lax')
  • File "c:\python310\lib\site-packages\jam\wsgi.py", line 54, in save_cookie
    response.set_cookie(
  • File "c:\python310\lib\site-packages\werkzeug\sansio\response.py", line 224, in set_cookie
    dump_cookie(
  • File "c:\python310\lib\site-packages\werkzeug\http.py", line 1303, in dump_cookie
    if not _cookie_no_quote_re.fullmatch(value):
TypeError: cannot use a string pattern on a bytes-like object

Can somewone help me?

thanks
Fabio 

Dean D. Babic

unread,
Nov 3, 2023, 4:29:27 AM11/3/23
to Jam.py Users Mailing List

Drazen Babic

unread,
Nov 3, 2023, 10:04:45 AM11/3/23
to Jam.py Users Mailing List
sqlite3 admin.sqlite

select * from sys_users

Thats the username/password

--
You received this message because you are subscribed to a topic in the Google Groups "Jam.py Users Mailing List" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jam-py/y6a_E7yxPdM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jam-py+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jam-py/91fba571-ca79-4b8e-a489-d0b0fa1bba9bn%40googlegroups.com.

Fabio Lenzarini

unread,
Nov 3, 2023, 1:32:34 PM11/3/23
to Drazen Babic, Jam.py Users Mailing List
Thanks Drazen,
but I've not understand how to fix...

thanks
Fabio

You received this message because you are subscribed to the Google Groups "Jam.py Users Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jam-py+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jam-py/CAMvz_HqYO9EoeEfc5qU1HYDrAcunm08%2BRpJS__%3D-1eHhL02-GQ%40mail.gmail.com.

Fabio Lenzarini

unread,
Nov 3, 2023, 2:39:13 PM11/3/23
to Drazen Babic, Jam.py Users Mailing List
I installed version 3 of werkzeug.
I intsalled version 7_19 of jam py.

Fabio Lenzarini

unread,
Nov 3, 2023, 2:43:26 PM11/3/23
to Drazen Babic, Jam.py Users Mailing List
C:\temp\Jam\jam-py-develop>pip list
Package            Version
------------------ -----------
adal               1.2.7
aenum              3.1.11
beautifulsoup4     4.11.1
certifi            2022.9.24
cffi               1.15.1
charset-normalizer 2.1.1
cryptography       41.0.1
dbf                0.99.2
deep-translator    1.9.1
defusedxml         0.7.1
esprima            4.0.1
et-xmlfile         1.1.0
ezodf              0.3.2
greenlet           1.1.3.post0
idna               3.4
jam.py             6.0.27
lml                0.1.0
lxml               4.9.0
MarkupSafe         2.1.1
numpy              1.22.4
odfpy              1.4.1
openpyxl           3.0.10
pandas             1.4.2
pandas-ods-reader  0.1.4
pip                23.3.1
pycparser          2.21
pyexcel-io         0.6.6
pyexcel-ods        0.6.0
PyJWT              2.7.0
python-dateutil    2.8.2
pytz               2022.1
requests           2.28.1
setuptools         63.2.0
simpledbf          0.2.6
six                1.16.0
soupsieve          2.3.2.post1
SQLAlchemy         1.4.42
urllib3            1.26.12
Werkzeug           3.0.1
XlsxWriter         3.0.6
xlwt               1.3.0

C:\temp\Jam\jam-py-develop>




If I try to install new jam-py I get the error:
C:\temp\Jam\jam-py-develop>python setup.py install
running install
C:\Python310\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
C:\Python310\lib\site-packages\setuptools\command\easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
running bdist_egg
running egg_info
creating jam.py.egg-info
writing jam.py.egg-info\PKG-INFO
writing dependency_links to jam.py.egg-info\dependency_links.txt
writing top-level names to jam.py.egg-info\top_level.txt
writing manifest file 'jam.py.egg-info\SOURCES.txt'
error: package directory 'jam\third_party' does not exist


Fabio Lenzarini

unread,
Nov 3, 2023, 3:02:45 PM11/3/23
to Drazen Babic, Jam.py Users Mailing List
I've also try this

C:\temp\Jam\jam-py-develop>pip install .
Processing c:\temp\jam\jam-py-develop
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [5 lines of output]
      running egg_info

      writing jam.py.egg-info\PKG-INFO
      writing dependency_links to jam.py.egg-info\dependency_links.txt
      writing top-level names to jam.py.egg-info\top_level.txt
      error: package directory 'jam\third_party' does not exist
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

C:\temp\Jam\jam-py-develop>

Andrew Yushev

unread,
Nov 3, 2023, 3:32:58 PM11/3/23
to Fabio Lenzarini, Drazen Babic, Jam.py Users Mailing List
Hi

I fixed the bug related to the transition to version 3 of werkzeug.

Regards,
Andrew

пт, 3 нояб. 2023 г. в 22:02, Fabio Lenzarini <fabio.l...@gmail.com>:

Fabio Lenzarini

unread,
Nov 3, 2023, 4:18:38 PM11/3/23
to Andrew Yushev, Drazen Babic, Jam.py Users Mailing List
Hi Andrew,
But with the release 7.19?
I've already try with that.

Tanks
Fabio

Fabio Lenzarini

unread,
Nov 4, 2023, 12:07:26 PM11/4/23
to Andrew Yushev, Drazen Babic, Jam.py Users Mailing List
Hi Andrew,
many thanks, now work again

Kannimalar K

unread,
May 9, 2024, 6:50:18 AM5/9/24
to Jam.py Users Mailing List
Hi all,

could anyone please share what's the fix?

Thanks,
Kannimalar.

Drazen Babic

unread,
May 9, 2024, 7:00:57 AM5/9/24
to Kannimalar K, Jam.py Users Mailing List
Hi,

this is for development version of Jam v7.

Not for the v5, which has locked in version of 
werkzeug. If u installing werkzeug, this is not the way to go.

D.



Reply all
Reply to author
Forward
0 new messages