Bug#896427: Bug#896408: python3-spyder-memory-profiler: spyder_memory_profiler fails to import

Adrian Bunk bunk at debian.org
Mon Apr 23 20:39:13 BST 2018


Control: severity -1 important

On Fri, Apr 20, 2018 at 10:01:37PM +0200, Helmut Grohne wrote:
> Package: python3-spyder-memory-profiler
> Version: 0.1.2-1
> Severity: serious
> User: helmutg at debian.org
> Usertags: python-import
> 
> After installing python3-spyder-memory-profiler importing the module spyder_memory_profiler
> into a python interpreter fails with the following error:
> 
> Traceback (most recent call last):
>   File "<string>", line 1, in <module>
>   File "/usr/lib/python3/dist-packages/spyder_memory_profiler/__init__.py", line 12, in <module>
>     from .memoryprofiler import MemoryProfiler
>   File "/usr/lib/python3/dist-packages/spyder_memory_profiler/memoryprofiler.py", line 14, in <module>
>     from spyder.utils.qthelpers import qapplication
>   File "/usr/lib/python3/dist-packages/spyder/utils/qthelpers.py", line 25, in <module>
>     from spyder.config.base import get_image_path, running_in_mac_app
>   File "/usr/lib/python3/dist-packages/spyder/config/base.py", line 221, in <module>
>     LANG_FILE = get_conf_path('langconfig')
>   File "/usr/lib/python3/dist-packages/spyder/config/base.py", line 126, in get_conf_path
>     xdg_config_home = osp.join(get_home_dir(), '.config')
>   File "/usr/lib/python3/dist-packages/spyder/config/base.py", line 116, in get_home_dir
>     raise RuntimeError('Please define environment variable $HOME')
> RuntimeError: Please define environment variable $HOME
>...

This a problem specific to HOME not pointing to a valid home directory.

And depending on the circumstances (I cannot judge it here) it might not 
even be a bug that this module expect a $HOME that points to a real location.

> Helmut

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed



More information about the debian-science-maintainers mailing list