Bug#859080: spyder-memory-profiler: FTBFS: AttributeError: 'NoneType' object has no attribute 'toUtf8'

Ghislain Vaillant ghisvail at gmail.com
Fri Mar 31 09:39:38 UTC 2017


control: reassign -1 spyder
control: affects -1 spyder-memory-profiler

On Fri, 2017-03-31 at 10:33 +0100, Chris Lamb wrote:
> Ghislain Vaillant wrote:
> 
> > I am going to need some more context here. The build ran fine on the 
> > builders when the package was initially uploaded, and still runs fine on 
> > both my unstable chroot and debomatic [1].
> 
>   /usr/lib/python3/dist-packages/spyder/utils/programs.py:33: in <module>
>       username = encoding.to_unicode_from_fs(os.environ.get('USER'))
> 
> ^ Looks like it assumes that a USER environment variable exists. Is this
> a fair assumption to make?

So that's an issue with upstream spyder, not spyder-memory-profiler
then.

I'll offer a patch to switch to using Python's getpass.getuser(), which
should be more robust than the current reliance on the USER envvar.

Do you believe the RC severity remains justified though?

Cheers,
Ghis



More information about the debian-science-maintainers mailing list