Small bug with Unsub Extender uploads

24 views
Skip to first unread message

Joanne Smyth

unread,
Sep 2, 2022, 9:49:39 AM9/2/22
to Unsub discuss
Good morning. First, thank you for this tool. It will help us a great deal!

We are having a slight problem uploading .csv files from Unsub. I am getting the following message: StreamlitAPIException: ("Expected bytes, got a 'int' object", 'Conversion failed for column subject_top_three with type object')
Traceback:
File "/opt/app-root/src/unsub_extender.py", line 312, in <module> st.altair_chart(weighted_vs_cost, use_container_width=True)
The same message appears for subjects_all if we delete the first troublesome column.
If we delete the two columns: 
subject_top_three
subjects_all

the file will load and seems to work well, but the final analysis, Consider journal subject areas, won't populate with multiple designations. 

Please could someone have a look? 
Thanks and have a lovely day.
Joanne

Scott Chamberlain

unread,
Sep 2, 2022, 11:45:35 AM9/2/22
to Unsub discuss
Hi Joanne, 

Thanks for raising the issue. I've contacted Eric, who maintains that tool. Hopefully we'll get this sorted out very soon. 

To confirm what you're uploading, are you trying to upload an export of an Unsub scenario as you get from the Export tab within unsub?

Best, Scott

Eric Schares

unread,
Sep 2, 2022, 12:45:41 PM9/2/22
to Scott Chamberlain, Unsub discuss
Hi Joanne,

I'm Eric, the owner of Unsub Extender. Thanks for using the tool and reporting this bug!

Could you send me the file you're trying to upload? I just tested with a fresh export from Unsub and the graphs worked for me. I'd like to know if I'm missing something.

Thanks,
Eric

--
You received this message because you are subscribed to the Google Groups "Unsub discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to unsub-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/unsub-discuss/19bd1113-b7ef-444c-8207-ff735ddc175en%40googlegroups.com.

Eric Schares

unread,
Sep 6, 2022, 9:10:59 AM9/6/22
to Scott Chamberlain, Unsub discuss
Just to resolve this thread: I was able to reproduce the issue and added some code to explicitly declare the datatype of these columns.

Thank you Joanne for reporting this. I'm always happy to know if you find other bugs or issues!

Thanks,
Eric Schares

Reply all
Reply to author
Forward
0 new messages