-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
, you're encountering a validation error related to the handling of image data in your conversation history. #35
Comments
Same problem, not able to generate any output on MacOS Sonoma 14.2.1 with Python 3.11.5 and convoviz 0.1.7 installed via
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
A clear and concise description of what the bug is.
➡️ https://github.com/mohamed-chs/chatgpt-history-export-to-md/issues/new/choose 🔗
? Enter the path to the zip file : C:\Users\mydjt\Downloads\2024_03_20_chatgpt_export_cd833544d1e9d430427877b3357ec5b40
df5d0062769dde85ac4b09bc0e74a93-2024-03-20-19-53-00.zip
? Enter the path to the output folder : C:\Users\mydjt\Documents\ChatGPT Data
? Enter the message header (#) for messages from 'system' : ### System
? Enter the message header (#) for messages from 'user' : # User
? Enter the message header (#) for messages from 'assistant' : # ChatGPT
? Enter the message header (#) for messages from 'tool' : ### Tool output
? Select the LaTeX math delimiters you want to use : default
? Select the YAML metadata headers you want to include : done (9 selections)
? Select the font you want to use for the word clouds : RobotoSlab-Thin
? Select the color theme you want to use for the word clouds : prism
? Enter custom stopwords (separated by commas) : use, file,
And we're off! 🚀🚀🚀
Loading data 📂 ...
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Users\mydjt\Documents\GitHub\chatgpt-history-export-to-md2\convoviz_main.py", line 5, in
main()
File "C:\Users\mydjt\Documents\GitHub\chatgpt-history-export-to-md2\convoviz\cli.py", line 38, in main
entire_collection = ConversationSet.from_zip(user.configs["zip_filepath"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\mydjt\Documents\GitHub\chatgpt-history-export-to-md2\convoviz\models_conversation_set.py", line 55, in from_zip
return cls.from_json(convos_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\mydjt\Documents\GitHub\chatgpt-history-export-to-md2\convoviz\models_conversation_set.py", line 47, in from_json
return cls(array=loads(file.read()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\mydjt\Documents\GitHub\chatgpt-history-export-to-md2\env\Lib\site-packages\pydantic\main.py", line 171, in init
self.pydantic_validator.validate_python(data, self_instance=self)
pydantic_core._pydantic_core.ValidationError: 182 validation errors for ConversationSet
array.59.mapping.bbb217b1-2cd2-4c3e-a26c-0cf7dbe287e0.message.content.parts.0
Input should be a valid string [type=string_type, input_value={'content_type': 'image_a... None, 'metadata': None}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.6/v/string_type
array.59.mapping.bbb21ce6-538c-46a9-b944-19711e2a3611.message.content.parts.0
Input should be a valid string [type=string_type, input_value={'content_type': 'image_a... None, 'metadata': None}, input_type=dict]
array.4333.mapping.5bc365ac-6368-491f-9ad2-3bdd43b40ae8.message.content.parts.3
Input should be a valid string [type=string_type, input_value={'content_type': 'image_a... generation metadata'}}}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.6/v/string_type
To Reproduce
Steps to reproduce the behavior:
1.Follow directions. See above.
Expected behavior
Normal output
Screenshots
If applicable, add screenshots to help explain your problem.
https://share.zight.com/RBukD70Y
https://share.zight.com/ApuPdnyD
OS
Additional context
Add any other context about the problem here.
I copied and pasted everything into chatgpt and got this as a reply. Any way to fix this?
It seems like you're trying to use the ChatGPT Data Visualizer (Convoviz) to visualize your ChatGPT conversation data. However, you're encountering a validation error related to the handling of image data in your conversation history. The error suggests that the tool is expecting a string input, but it's receiving a dictionary containing image data instead.
This might be due to a limitation in the current version of Convoviz, which may not fully support conversations that include image data. You might want to check if there are updates to Convoviz that address this issue, or you could try removing the image data from your conversation history before running the tool.
The text was updated successfully, but these errors were encountered: