I got error name 'text_type' is not defined while generating a report in version 7

38 views
Skip to first unread message

Ahmed Amine Nair

unread,
Dec 27, 2024, 11:33:57 AM12/27/24
to Jam.py Users Mailing List
Hello awesome jam.py community ,
I'm trying out the version 7.0.40.

In trying to generate a report I stumbled on the error "text_type not defined" (see the attached screenshot)

I got this while trying to display a lookup_value of type date.

I managed to solve the problem, but not sure if that's the exact solution.

I wanted to report this here so it can be fixed in the next updates.

have a great day 

Error.pnglookup_value.png

Dean D. Babic

unread,
Dec 27, 2024, 10:24:05 PM12/27/24
to Jam.py Users Mailing List
Thank you for reporting. For reports, the datetime should be used for conversion -> date_garantie = ...
If may I ask, where did you find about Jam.py?

Ahmed Amine Nair

unread,
Dec 28, 2024, 2:51:20 AM12/28/24
to Jam.py Users Mailing List
You are welcome, I find out about jam.py 2 or 3 years ago from a google search. I was searching for tools that uses python and help speedup the development process.

about your quote: " For reports, the datetime should be used for conversion" 

I'm not sure if I understand what you mean, the data_type of my field is date not datetime, and since it was a lookup_value I got an error of "text_type not define" from the line [ if isinstance(result, text_type):] line 412  dataset.py


line_error.png

Zoi Moravec

unread,
Jan 16, 2026, 1:09:09 AM (3 days ago) Jan 16
to Jam.py Users Mailing List
I confirm the error.
Thanks for the fix.
It's work!

суббота, 28 декабря 2024 г. в 10:51:20 UTC+3, Ahmed Amine Nair:
Reply all
Reply to author
Forward
0 new messages