Problem autobuilding newest builds....
Added by Nihil Baxter over 9 years ago
Got this error:
File "/usr/lib/python2.7/encodings/__init__.py", line 120, in search_function
entry = getregentry()
File "/usr/lib/python2.7/encodings/utf_8.py", line 41, in getregentry
streamwriter=StreamWriter,
TypeError: new() got an unexpected keyword argument 'stzeamreader'
Traceback (most recent call last):
File "/usr/lib/python2.7/encodings/__init__.py", line 120, in search_function
entry = getregentry()
File "/usr/lib/python2.7/encodings/utf_8.py", line 41, in getregentry
streamwriter=StreamWriter,
TypeError: new() got an unexpected keyword argument 'stzeamreader'
dh_pysupport: Cannot detect default Python version
Seems its a simple typing error (stzeamreader), but cannot found some file to change that...anyone can help pls?
Thx
Replies (7)
RE: Problem autobuilding newest builds.... - Added by Prof Yaffle over 9 years ago
Building fine for me here on Ubuntu, so I suspect it's something about your system: I just did a clean build of latest git and ffmpeg with no problems. There's not much python that I can find - most is in the ffmpeg download- but those errors would seem to be coming from your system's Python installation, albeit perhaps triggered by the tvheadend build.
Can you share more of the build log? What's happening when these messages appear - what bit of the process? Is it while building the deb files (which is the dh_pysupport message at the end AFAICT)?
I can find no mention of the string 'stzeamreader' on my system or on the interwebs, so I wonder if you've got a locally-screwed-up file. Can you just grep your system to try to find it (brutal, but effective)?
RE: Problem autobuilding newest builds.... - Added by Nihil Baxter over 9 years ago
It was the end of my building, after that normally the deb packages was build.
Building with same system for last 20+ builds, but not the latest 2,so I think it isn't some system error. I think that is a wrong type in some build script, so that some python module couldn't handle.... BTW, I didn't find that in some file but I didn't know where to search for.
But I'm Linux noob so I didn't know enough about build scripts, python.... only seen this mistype, it's clearly.
thx for any help
RE: Problem autobuilding newest builds.... - Added by Prof Yaffle over 9 years ago
Not a lot I can help with unless we can find where that string is coming from. I can find no reference to it in my cloned copy of the code, in the github repository, or on my system.
Now, you don't say what system you're building on (other than it's a Debian base), so that's perhaps relevant. But the type may have appeared in an update of a different package (e.g. debhelper or Python itself) rather than being anything that tvheadend is doing, or it may be an argument between two parts of the process. Either way, you need to find that string...
The key command is probably 'grep -r <string> <path>' - a recursive search for all files that contain <string>.
You could also look in ~/tvheadend/debian, as that's where the debhelper logs (&c) go - maybe there's more in there somewhere as to why dh_pysupport is failing.
The only matches to 'streamreader' I can find are in /usr/lib/python2.7, which matches what you're using. Look in there as well, then, see if that's where the error is.
I can't really suggest more than that, I'm afraid... it's just a case of searching (e.g. for 'reamreader').
RE: Problem autobuilding newest builds.... - Added by Nihil Baxter over 9 years ago
Ok, thx, i used grep, found it in .pyc file....whatever....needed to clone git again cause it sucks last time, now all fine
RE: Problem autobuilding newest builds.... - Added by Prof Yaffle over 9 years ago
Glad you found it - which .pyc file, by the way? I'd love to know how that z got in there or whether it's on just your system ...
RE: Problem autobuilding newest builds.... - Added by Nihil Baxter over 9 years ago
Was utf_8.pyc in /usr/lib/python2.7/encodings.
RE: Problem autobuilding newest builds.... - Added by Prof Yaffle over 9 years ago
Weird - that's clearly a system file, nothing to do with tvheadend or any other 'normal' application... :-?