Skip to content

ValueError: source code string cannot contain null bytes #1499

Discussion options

You must be logged in to vote

I'm not sure which source file is broken, it may be one of the external packages, but not sure. You could try reinstalling the virtual env with external packages. Not sure if it helps though.

I found one other report last year: #925 (comment)
Which was fixed by it. You can give those commands a shot, but ensure to bump the code to the latest version first.

sudo supervisorctl stop all
sudo su - dsmr 

# Bump code so the new env below installs the latest one
git checkout v4
git pull

rm -rf ~/.virtualenvs/dsmrreader/
virtualenv /home/dsmr/.virtualenvs/dsmrreader --no-site-packages --python python3
/home/dsmr/.virtualenvs/dsmrreader/bin/pip3 install -r /home/dsmr/dsmr-reader/dsmrreader/prov…

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by q144
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1498 on October 18, 2021 19:04.