Xpra: Ticket #1330: fedora 23 server giving error importing ffmpeg encoder

I've been seeing this for a little while in the ouptut while starting servers, but it doesn't seem to be causing any real problems.

1.0 r13979 fedora 23 server.

2016-10-03 12:06:42,129 Error importing ffmpeg encoder (enc_ffmpeg)
2016-10-03 12:06:42,130  cannot import name bytestostr

I'm usually starting with xpra --no-daemon --bind-tcp=0.0.0.0:1203 --start-child=xterm --mdns=no --start-new-commands=yes start :13.

I'll attach an xpra info - there's probably just a library that I'm not grabbing/updating?



Mon, 03 Oct 2016 19:16:27 GMT - alas: attachment set

xpra info for server outputting ffmpeg import error


Tue, 04 Oct 2016 02:04:11 GMT - Antoine Martin: owner, description changed

There used to be a bug like this, introduced in r13648 but it has been fixed since r13648:changeset/13648/xpra/trunk/src/xpra/codecs/enc_ffmpeg/encoder.pyx.

Please post the output of:

xpra/codecs/loader.py -v

Which should include the full stacktrace.


Tue, 04 Oct 2016 20:38:34 GMT - alas:

It looks like the output was a bit bulky, so I'll just add as an attachment.


Tue, 04 Oct 2016 20:39:42 GMT - alas: attachment set

loader.py -v output (1.0 r13979)


Tue, 04 Oct 2016 20:39:58 GMT - alas: owner changed


Wed, 05 Oct 2016 03:09:58 GMT - Antoine Martin: owner changed

Your build is not up to date, from the output:

Error importing ffmpeg encoder (enc_ffmpeg)
 cannot import name bytestostr
Traceback (most recent call last):
  File "loader.py", line 61, in codec_import_check
    ic =  __import__(class_module, {}, {}, classname)
  File "xpra/codecs/enc_ffmpeg/encoder.pyx", line 15, in init xpra.codecs.enc_ffmpeg.encoder (xpra/codecs/enc_ffmpeg/encoder.c:10829)
ImportError: cannot import name bytestostr

The import is not on line 15: browser/xpra/trunk/src/xpra/codecs/enc_ffmpeg/encoder.pyx and hasn't been on line 15 since r13648: browser/xpra/trunk/src/xpra/codecs/enc_ffmpeg/encoder.pyx.

Try making a new build, and more importantly try to figure out why you're not running the revision that you think you are! (as this could cause us endless debugging problems)


Thu, 06 Oct 2016 00:47:04 GMT - alas: status changed; resolution set

Well, poked and prodded and eventually asked smo to take a look. Turns out it was an issue with the trunk/src/build directory... deleted it and did a new build, and the error goes away.

There's probably some other things that should be fixed, but this works for now. Closing.


Sat, 23 Jan 2021 05:21:18 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/1330