Stream: python-questions
Topic: ValueError when installing my own package
Isla Simpson (Nov 27 2020 at 15:45):
Hello, my google skills are failing me on this. I have made my own package containing functions I want to use. I have also made my own environment because I wanted to become familiar with that. I have the same environment on cheyenne and the cgd machines and I can successfully install my package on the cgd machines using "pip install -e . --user". I can also successfully install it on cheyenne in the base environment but when I try to do it within my own environment, I get an error ValueError: source code string cannot contain null bytes. I can send along the longer error trace if that's helpful.
Googling suggests to me there is some kind of corrupt file somewhere. I have cleared the pip cache but that didn't help. Does anyone know what to do?
I am working here /home/islas/python/ecpaper2020/
and trying to install ecpaper_utils.
Thanks in advance for any help!
Isla Simpson (Nov 27 2020 at 16:14):
Never mind, I have solved my problem. I removed the environment and re-installed it and then it worked. If anyone understands why this would have happened, I'd be glad to know. But if not, it doesn't matter, it's all good now. Thanks!
Last updated: Jan 30 2022 at 12:01 UTC