Your message dated Sat, 5 May 2018 15:32:29 +0100
with message-id <78e4b4c4-abe8-31b6-b206-69fed5c70...@zoho.com>
and subject line Not a bug Re: python*-theano fails to load with nonexisting 
HOME
has caused the Debian Bug report #896421,
regarding python3-theano fails to load with nonexisting HOME
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
896421: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=896421
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: python3-lasagne
Version: 0.1+git20180322.37ca134-1
Severity: serious
User: helm...@debian.org
Usertags: python-import

After installing python3-lasagne importing the module lasagne
into a python interpreter fails with the following error:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/theano/configdefaults.py", line 1738, in 
filter_compiledir
    os.makedirs(path, 0o770)  # read-write-execute for user and group
  File "/usr/lib/python3.6/os.py", line 210, in makedirs
    makedirs(head, mode, exist_ok)
  File "/usr/lib/python3.6/os.py", line 210, in makedirs
    makedirs(head, mode, exist_ok)
  File "/usr/lib/python3.6/os.py", line 220, in makedirs
    mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/nonexistent'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3/dist-packages/lasagne/__init__.py", line 12, in 
<module>
    import theano
  File "/usr/lib/python3/dist-packages/theano/__init__.py", line 66, in <module>
    from theano.compile import (
  File "/usr/lib/python3/dist-packages/theano/compile/__init__.py", line 10, in 
<module>
    from theano.compile.function_module import *
  File "/usr/lib/python3/dist-packages/theano/compile/function_module.py", line 
21, in <module>
    import theano.compile.mode
  File "/usr/lib/python3/dist-packages/theano/compile/mode.py", line 10, in 
<module>
    import theano.gof.vm
  File "/usr/lib/python3/dist-packages/theano/gof/vm.py", line 662, in <module>
    from . import lazylinker_c
  File "/usr/lib/python3/dist-packages/theano/gof/lazylinker_c.py", line 42, in 
<module>
    location = os.path.join(config.compiledir, 'lazylinker_ext')
  File "/usr/lib/python3/dist-packages/theano/configparser.py", line 333, in 
__get__
    self.__set__(cls, val_str)
  File "/usr/lib/python3/dist-packages/theano/configparser.py", line 344, in 
__set__
    self.val = self.filter(val)
  File "/usr/lib/python3/dist-packages/theano/configdefaults.py", line 1745, in 
filter_compiledir
    " '%s'. Check the permissions." % path)
ValueError: Unable to create the compiledir directory 
'/nonexistent/.theano/compiledir_Linux-4.14--amd64-x86_64-with-debian-buster-sid--3.6.5-64'.
 Check the permissions.

The vast majority of import failures is attributed to missing dependencies.
Often times that manifests as an ImportError or ModuleNotFoundError.
Typically, dependencies should be inserted by dh-python via ${python:Depends}
or ${python3:Depends}. Thus a missing dependency can be caused by incomplete
install_requires in setup.py. Sometimes a missing dependency of a dependency
is the cause, in such cases this bug should be reassigned.

Helmut

--- End Message ---
--- Begin Message ---
1.0.1+dfsg-1 adds the above workaround to the error message.

Beyond this, I don't consider this a bug, so am closing it.

--- End Message ---
-- 
debian-science-maintainers mailing list
debian-science-maintainers@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers

Reply via email to