Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Conversation

@BerkaJakub
Copy link

When running this script I found an error:
TypeError: Argument must be bytes or unicode, got 'None Type' in convertNode.
In dialog JSON file I had nodes with null value.
Converting nodeJSON['title'] to string solved this problem, on line 74.
Regarding this issue on stackoverflow: https://stackoverflow.com/questions/44525081/lxml-html-set-error-typeerror-argument-must-be-bytes-or-unicode-got-nonetype
I checked my lxml version, but I have the latest one.

When running this script I found an error:
TypeError: Argument must be bytes or unicode, got 'None Type'
In JSON file I had nodes with none in value.
Converting nodeJSON['title']  to string solved this problem, on line 74. 
Regarding this issue on stackoverflow: https://stackoverflow.com/questions/44525081/lxml-html-set-error-typeerror-argument-must-be-bytes-or-unicode-got-nonetype
I checked my lxml version, but I have the latest one.
@Tereza-Pytelova Tereza-Pytelova self-requested a review June 10, 2019 14:14
@Tereza-Pytelova Tereza-Pytelova self-assigned this Jun 10, 2019
@Tereza-Pytelova Tereza-Pytelova added bug Unexpected problem or unintended behavior customer request Priority: medium Issues with medium priority labels Jun 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Unexpected problem or unintended behavior customer request Priority: medium Issues with medium priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants