Installing FeniCS on Ubuntu

Hi:

In the past I’ve installed FeniCS on two computers:

  1. On Ubuntu, via Anaconda
  2. On Windows, with the Windows Subsystem for Linux and following the Ubuntu instructions

Both of them worked as expected.

I’m installing FeniCS for the third time, and this time I wanted to install it on Ubuntu, without resorting to Anaconda or Docker, simply by running the “FEniCS on Ubuntu” part of the manual through the Ubuntu PPA. I’ve been able to install everything, however trying to load the libraries fails and gives a segfault. For example, if I run

python3 -c “from fenics import *”

then I get a SEGFAULT.
I’d like to ask first if what I’m trying to do is even possible, and second what could be causing the problem. The version I installed is 2019.1.0.1 and my Ubuntu is 18.04.

Thanks a lot!

Hi Javi. First make sure you’ve removed all other fenics installations, such that your python is accessing the ubuntu version not one of the others. Otherwise, library version mismatches could cause problems like that.

Then get verbose logging to check what’s actually being loaded, python3 -v -c “from fenics import *”, with -v (if not -vv).

Check also if python3 -c “from dolfin import *” is failing the same way.

Hi dparsons:

Thanks a lot for replying! This is an actual new clean computer, so there are no other versions installed here. After running python3 -v -c “from fenics import *” the output starts as:

import _frozen_importlib # frozen
import _imp # builtin
import sys # builtin
import ‘_warnings’ # <class ‘_frozen_importlib.BuiltinImporter’>

and finishes (after many lines) with

# /usr/lib/python3/dist-packages/apt/__pycache__/cache.cpython-36.pyc matches /usr/lib/python3/dist-packages/apt/cache.py
# code object from '/usr/lib/python3/dist-packages/apt/__pycache__/cache.cpython-36.pyc'
import 'apt.cache' # <_frozen_importlib_external.SourceFileLoader object at 0x7f0c4e90e358>
# /usr/lib/python3/dist-packages/apt/__pycache__/cdrom.cpython-36.pyc matches /usr/lib/python3/dist-packages/apt/cdrom.py
# code object from '/usr/lib/python3/dist-packages/apt/__pycache__/cdrom.cpython-36.pyc'
import 'apt.cdrom' # <_frozen_importlib_external.SourceFileLoader object at 0x7f0c4e849160>
Segmentation fault (core dumped)

python3 -v -c “from dolfin import *” fails the same way.

Thanks!
Javi

It is strange that it is trying to access apt/cdrom.py. Perhaps best to provide the whole -v log.

Do other modules import successfully? e.g. numpy, scipy, or mpi4py?
What is your version exactly? dpkg -l python3-dolfin

Hi:

numpy, scipy and mpi4py import correctly. I don’t have any issue with them.

dpkg -l python3-dolfin gives:
||/ Name Version Architecture Description +++-=====================-===============-===============-================================================ ii python3-dolfin 2019.1.0-1~ppa1 amd64 Python interface for DOLFIN (Python 3)

Here’s the full -v log:

Log (1/2)

javi@Javi-TPX1:~/Work$ python3 -v -c “from fenics import *”
import _frozen_importlib # frozen
import _imp # builtin
import sys # builtin
import ‘_warnings’ # <class ‘_frozen_importlib.BuiltinImporter’>
import ‘_thread’ # <class ‘_frozen_importlib.BuiltinImporter’>
import ‘_weakref’ # <class ‘_frozen_importlib.BuiltinImporter’>
import ‘_frozen_importlib_external’ # <class ‘_frozen_importlib.FrozenImporter’>
import ‘_io’ # <class ‘_frozen_importlib.BuiltinImporter’>
import ‘marshal’ # <class ‘_frozen_importlib.BuiltinImporter’>
import ‘posix’ # <class ‘_frozen_importlib.BuiltinImporter’>
import _thread # previously loaded (’_thread’)
import ‘_thread’ # <class ‘_frozen_importlib.BuiltinImporter’>
import _weakref # previously loaded (’_weakref’)
import ‘_weakref’ # <class ‘_frozen_importlib.BuiltinImporter’>

installing zipimport hook

import ‘zipimport’ # <class ‘_frozen_importlib.BuiltinImporter’>

installed zipimport hook

/usr/lib/python3.6/encodings/pycache/init.cpython-36.pyc matches /usr/lib/python3.6/encodings/init.py

code object from ‘/usr/lib/python3.6/encodings/pycache/init.cpython-36.pyc’

/usr/lib/python3.6/pycache/codecs.cpython-36.pyc matches /usr/lib/python3.6/codecs.py

code object from ‘/usr/lib/python3.6/pycache/codecs.cpython-36.pyc’

import ‘_codecs’ # <class ‘_frozen_importlib.BuiltinImporter’>
import ‘codecs’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b35296588>

/usr/lib/python3.6/encodings/pycache/aliases.cpython-36.pyc matches /usr/lib/python3.6/encodings/aliases.py

code object from ‘/usr/lib/python3.6/encodings/pycache/aliases.cpython-36.pyc’

import ‘encodings.aliases’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b352a6f28>
import ‘encodings’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b352960f0>

/usr/lib/python3.6/encodings/pycache/utf_8.cpython-36.pyc matches /usr/lib/python3.6/encodings/utf_8.py

code object from ‘/usr/lib/python3.6/encodings/pycache/utf_8.cpython-36.pyc’

import ‘encodings.utf_8’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b352b5d30>
import ‘_signal’ # <class ‘_frozen_importlib.BuiltinImporter’>

/usr/lib/python3.6/encodings/pycache/latin_1.cpython-36.pyc matches /usr/lib/python3.6/encodings/latin_1.py

code object from ‘/usr/lib/python3.6/encodings/pycache/latin_1.cpython-36.pyc’

import ‘encodings.latin_1’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b352bc860>

/usr/lib/python3.6/pycache/io.cpython-36.pyc matches /usr/lib/python3.6/io.py

code object from ‘/usr/lib/python3.6/pycache/io.cpython-36.pyc’

/usr/lib/python3.6/pycache/abc.cpython-36.pyc matches /usr/lib/python3.6/abc.py

code object from ‘/usr/lib/python3.6/pycache/abc.cpython-36.pyc’

/usr/lib/python3.6/pycache/_weakrefset.cpython-36.pyc matches /usr/lib/python3.6/_weakrefset.py

code object from ‘/usr/lib/python3.6/pycache/_weakrefset.cpython-36.pyc’

import ‘_weakrefset’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b352c07f0>
import ‘abc’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b352bce48>
import ‘io’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b352bca90>

/usr/lib/python3.6/pycache/site.cpython-36.pyc matches /usr/lib/python3.6/site.py

code object from ‘/usr/lib/python3.6/pycache/site.cpython-36.pyc’

/usr/lib/python3.6/pycache/os.cpython-36.pyc matches /usr/lib/python3.6/os.py

code object from ‘/usr/lib/python3.6/pycache/os.cpython-36.pyc’

import ‘errno’ # <class ‘_frozen_importlib.BuiltinImporter’>

/usr/lib/python3.6/pycache/stat.cpython-36.pyc matches /usr/lib/python3.6/stat.py

code object from ‘/usr/lib/python3.6/pycache/stat.cpython-36.pyc’

import ‘_stat’ # <class ‘_frozen_importlib.BuiltinImporter’>
import ‘stat’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b35263ba8>

/usr/lib/python3.6/pycache/posixpath.cpython-36.pyc matches /usr/lib/python3.6/posixpath.py

code object from ‘/usr/lib/python3.6/pycache/posixpath.cpython-36.pyc’

/usr/lib/python3.6/pycache/genericpath.cpython-36.pyc matches /usr/lib/python3.6/genericpath.py

code object from ‘/usr/lib/python3.6/pycache/genericpath.cpython-36.pyc’

import ‘genericpath’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b3526e5c0>
import ‘posixpath’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b352682b0>

/usr/lib/python3.6/pycache/_collections_abc.cpython-36.pyc matches /usr/lib/python3.6/_collections_abc.py

code object from ‘/usr/lib/python3.6/pycache/_collections_abc.cpython-36.pyc’

import ‘_collections_abc’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b3526ec18>
import ‘os’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b352574e0>

/usr/lib/python3.6/pycache/_sitebuiltins.cpython-36.pyc matches /usr/lib/python3.6/_sitebuiltins.py

code object from ‘/usr/lib/python3.6/pycache/_sitebuiltins.cpython-36.pyc’

import ‘_sitebuiltins’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b352578d0>

/usr/lib/python3.6/pycache/sysconfig.cpython-36.pyc matches /usr/lib/python3.6/sysconfig.py

code object from ‘/usr/lib/python3.6/pycache/sysconfig.cpython-36.pyc’

import ‘sysconfig’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b352100b8>

/usr/lib/python3.6/pycache/_sysconfigdata_m_linux_x86_64-linux-gnu.cpython-36.pyc matches /usr/lib/python3.6/_sysconfigdata_m_linux_x86_64-linux-gnu.py

code object from ‘/usr/lib/python3.6/pycache/_sysconfigdata_m_linux_x86_64-linux-gnu.cpython-36.pyc’

import ‘_sysconfigdata_m_linux_x86_64-linux-gnu’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b35214978>

/usr/lib/python3.6/pycache/_bootlocale.cpython-36.pyc matches /usr/lib/python3.6/_bootlocale.py

code object from ‘/usr/lib/python3.6/pycache/_bootlocale.cpython-36.pyc’

import ‘_locale’ # <class ‘_frozen_importlib.BuiltinImporter’>
import ‘_bootlocale’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b35222940>

/usr/lib/python3.6/pycache/types.cpython-36.pyc matches /usr/lib/python3.6/types.py

code object from ‘/usr/lib/python3.6/pycache/types.cpython-36.pyc’

/usr/lib/python3.6/pycache/functools.cpython-36.pyc matches /usr/lib/python3.6/functools.py

code object from ‘/usr/lib/python3.6/pycache/functools.cpython-36.pyc’

import ‘_functools’ # <class ‘_frozen_importlib.BuiltinImporter’>

/usr/lib/python3.6/collections/pycache/init.cpython-36.pyc matches /usr/lib/python3.6/collections/init.py

code object from ‘/usr/lib/python3.6/collections/pycache/init.cpython-36.pyc’

/usr/lib/python3.6/pycache/operator.cpython-36.pyc matches /usr/lib/python3.6/operator.py

code object from ‘/usr/lib/python3.6/pycache/operator.cpython-36.pyc’

import ‘_operator’ # <class ‘_frozen_importlib.BuiltinImporter’>
import ‘operator’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b335ad7b8>

/usr/lib/python3.6/pycache/keyword.cpython-36.pyc matches /usr/lib/python3.6/keyword.py

code object from ‘/usr/lib/python3.6/pycache/keyword.cpython-36.pyc’

import ‘keyword’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b335b5a20>

/usr/lib/python3.6/pycache/heapq.cpython-36.pyc matches /usr/lib/python3.6/heapq.py

code object from ‘/usr/lib/python3.6/pycache/heapq.cpython-36.pyc’

import ‘_heapq’ # <class ‘_frozen_importlib.BuiltinImporter’>
import ‘heapq’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b335b9278>
import ‘itertools’ # <class ‘_frozen_importlib.BuiltinImporter’>

/usr/lib/python3.6/pycache/reprlib.cpython-36.pyc matches /usr/lib/python3.6/reprlib.py

code object from ‘/usr/lib/python3.6/pycache/reprlib.cpython-36.pyc’

import ‘reprlib’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b335b0f28>
import ‘_collections’ # <class ‘_frozen_importlib.BuiltinImporter’>
import ‘collections’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b33587e80>

/usr/lib/python3.6/pycache/weakref.cpython-36.pyc matches /usr/lib/python3.6/weakref.py

code object from ‘/usr/lib/python3.6/pycache/weakref.cpython-36.pyc’

import ‘weakref’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b335902b0>
import ‘functools’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b3522e710>

/usr/lib/python3.6/collections/pycache/abc.cpython-36.pyc matches /usr/lib/python3.6/collections/abc.py

code object from ‘/usr/lib/python3.6/collections/pycache/abc.cpython-36.pyc’

import ‘collections.abc’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b335803c8>
import ‘types’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b35229a58>

/usr/lib/python3.6/importlib/pycache/init.cpython-36.pyc matches /usr/lib/python3.6/importlib/init.py

code object from ‘/usr/lib/python3.6/importlib/pycache/init.cpython-36.pyc’

/usr/lib/python3.6/pycache/warnings.cpython-36.pyc matches /usr/lib/python3.6/warnings.py

code object from ‘/usr/lib/python3.6/pycache/warnings.cpython-36.pyc’

import ‘warnings’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b335805f8>
import ‘importlib’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b35229c88>

/usr/lib/python3.6/importlib/pycache/util.cpython-36.pyc matches /usr/lib/python3.6/importlib/util.py

code object from ‘/usr/lib/python3.6/importlib/pycache/util.cpython-36.pyc’

/usr/lib/python3.6/importlib/pycache/abc.cpython-36.pyc matches /usr/lib/python3.6/importlib/abc.py

code object from ‘/usr/lib/python3.6/importlib/pycache/abc.cpython-36.pyc’

/usr/lib/python3.6/importlib/pycache/machinery.cpython-36.pyc matches /usr/lib/python3.6/importlib/machinery.py

code object from ‘/usr/lib/python3.6/importlib/pycache/machinery.cpython-36.pyc’

import ‘importlib.machinery’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b33567ba8>
import ‘importlib.abc’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b335674e0>

/usr/lib/python3.6/pycache/contextlib.cpython-36.pyc matches /usr/lib/python3.6/contextlib.py

code object from ‘/usr/lib/python3.6/pycache/contextlib.cpython-36.pyc’

import ‘contextlib’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b335755f8>
import ‘importlib.util’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b33559e10>

/usr/lib/python3.6/pycache/sitecustomize.cpython-36.pyc matches /usr/lib/python3.6/sitecustomize.py

code object from ‘/usr/lib/python3.6/pycache/sitecustomize.cpython-36.pyc’

/usr/lib/python3/dist-packages/pycache/apport_python_hook.cpython-36.pyc matches /usr/lib/python3/dist-packages/apport_python_hook.py

code object from ‘/usr/lib/python3/dist-packages/pycache/apport_python_hook.cpython-36.pyc’

import ‘apport_python_hook’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b3350afd0>
import ‘sitecustomize’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b35229860>
import ‘site’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b352d3160>
Python 3.6.8 (default, Oct 7 2019, 12:59:55)
[GCC 8.3.0] on linux
Type “help”, “copyright”, “credits” or “license” for more information.

/usr/lib/python3/dist-packages/fenics/pycache/init.cpython-36.pyc matches /usr/lib/python3/dist-packages/fenics/init.py

code object from ‘/usr/lib/python3/dist-packages/fenics/pycache/init.cpython-36.pyc’

possible namespace for /home/javi/Work/dolfin

/usr/lib/python3/dist-packages/dolfin/pycache/init.cpython-36.pyc matches /usr/lib/python3/dist-packages/dolfin/init.py

code object from ‘/usr/lib/python3/dist-packages/dolfin/pycache/init.cpython-36.pyc’

/usr/lib/python3.6/ctypes/pycache/init.cpython-36.pyc matches /usr/lib/python3.6/ctypes/init.py

code object from ‘/usr/lib/python3.6/ctypes/pycache/init.cpython-36.pyc’

extension module ‘_ctypes’ loaded from ‘/usr/lib/python3.6/lib-dynload/_ctypes.cpython-36m-x86_64-linux-gnu.so’

extension module ‘_ctypes’ executed from ‘/usr/lib/python3.6/lib-dynload/_ctypes.cpython-36m-x86_64-linux-gnu.so’

import ‘_ctypes’ # <_frozen_importlib_external.ExtensionFileLoader object at 0x7f2b335234a8>

/usr/lib/python3.6/pycache/struct.cpython-36.pyc matches /usr/lib/python3.6/struct.py

code object from ‘/usr/lib/python3.6/pycache/struct.cpython-36.pyc’

import ‘_struct’ # <class ‘_frozen_importlib.BuiltinImporter’>
import ‘struct’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b33523b00>

/usr/lib/python3.6/ctypes/pycache/_endian.cpython-36.pyc matches /usr/lib/python3.6/ctypes/_endian.py

code object from ‘/usr/lib/python3.6/ctypes/pycache/_endian.cpython-36.pyc’

import ‘ctypes._endian’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b3352f898>
import ‘ctypes’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b33516588>

/usr/lib/python3.6/pycache/re.cpython-36.pyc matches /usr/lib/python3.6/re.py

code object from ‘/usr/lib/python3.6/pycache/re.cpython-36.pyc’

/usr/lib/python3.6/pycache/enum.cpython-36.pyc matches /usr/lib/python3.6/enum.py

code object from ‘/usr/lib/python3.6/pycache/enum.cpython-36.pyc’

import ‘enum’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b3353c240>

/usr/lib/python3.6/pycache/sre_compile.cpython-36.pyc matches /usr/lib/python3.6/sre_compile.py

code object from ‘/usr/lib/python3.6/pycache/sre_compile.cpython-36.pyc’

import ‘_sre’ # <class ‘_frozen_importlib.BuiltinImporter’>

/usr/lib/python3.6/pycache/sre_parse.cpython-36.pyc matches /usr/lib/python3.6/sre_parse.py

code object from ‘/usr/lib/python3.6/pycache/sre_parse.cpython-36.pyc’

/usr/lib/python3.6/pycache/sre_constants.cpython-36.pyc matches /usr/lib/python3.6/sre_constants.py

code object from ‘/usr/lib/python3.6/pycache/sre_constants.cpython-36.pyc’

import ‘sre_constants’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b330b4c18>
import ‘sre_parse’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b330ae2e8>
import ‘sre_compile’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b330a24e0>

/usr/lib/python3.6/pycache/copyreg.cpython-36.pyc matches /usr/lib/python3.6/copyreg.py

code object from ‘/usr/lib/python3.6/pycache/copyreg.cpython-36.pyc’

import ‘copyreg’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b330bcbe0>
import ‘re’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b335230b8>

/usr/lib/python3.6/pycache/traceback.cpython-36.pyc matches /usr/lib/python3.6/traceback.py

code object from ‘/usr/lib/python3.6/pycache/traceback.cpython-36.pyc’

/usr/lib/python3.6/pycache/linecache.cpython-36.pyc matches /usr/lib/python3.6/linecache.py

code object from ‘/usr/lib/python3.6/pycache/linecache.cpython-36.pyc’

/usr/lib/python3.6/pycache/tokenize.cpython-36.pyc matches /usr/lib/python3.6/tokenize.py

code object from ‘/usr/lib/python3.6/pycache/tokenize.cpython-36.pyc’

/usr/lib/python3.6/pycache/token.cpython-36.pyc matches /usr/lib/python3.6/token.py

code object from ‘/usr/lib/python3.6/pycache/token.cpython-36.pyc’

import ‘token’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b3305fbe0>
import ‘tokenize’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b330572e8>
import ‘linecache’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b330cbf98>
import ‘traceback’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b330bceb8>

/usr/lib/python3/dist-packages/apport/pycache/init.cpython-36.pyc matches /usr/lib/python3/dist-packages/apport/init.py

code object from ‘/usr/lib/python3/dist-packages/apport/pycache/init.cpython-36.pyc’

import ‘time’ # <class ‘_frozen_importlib.BuiltinImporter’>

/usr/lib/python3/dist-packages/apport/pycache/report.cpython-36.pyc matches /usr/lib/python3/dist-packages/apport/report.py

code object from ‘/usr/lib/python3/dist-packages/apport/pycache/report.cpython-36.pyc’

/usr/lib/python3.6/pycache/subprocess.cpython-36.pyc matches /usr/lib/python3.6/subprocess.py

code object from ‘/usr/lib/python3.6/pycache/subprocess.cpython-36.pyc’

/usr/lib/python3.6/pycache/signal.cpython-36.pyc matches /usr/lib/python3.6/signal.py

code object from ‘/usr/lib/python3.6/pycache/signal.cpython-36.pyc’

import ‘signal’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b330926a0>
import ‘_posixsubprocess’ # <class ‘_frozen_importlib.BuiltinImporter’>
import ‘select’ # <class ‘_frozen_importlib.BuiltinImporter’>

/usr/lib/python3.6/pycache/selectors.cpython-36.pyc matches /usr/lib/python3.6/selectors.py

code object from ‘/usr/lib/python3.6/pycache/selectors.cpython-36.pyc’

import ‘math’ # <class ‘_frozen_importlib.BuiltinImporter’>
import ‘selectors’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32fdb0f0>

/usr/lib/python3.6/pycache/threading.cpython-36.pyc matches /usr/lib/python3.6/threading.py

code object from ‘/usr/lib/python3.6/pycache/threading.cpython-36.pyc’

import ‘threading’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32fe26d8>
import ‘subprocess’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b33080a58>

/usr/lib/python3.6/pycache/tempfile.cpython-36.pyc matches /usr/lib/python3.6/tempfile.py

code object from ‘/usr/lib/python3.6/pycache/tempfile.cpython-36.pyc’

/usr/lib/python3.6/pycache/shutil.cpython-36.pyc matches /usr/lib/python3.6/shutil.py

code object from ‘/usr/lib/python3.6/pycache/shutil.cpython-36.pyc’

/usr/lib/python3.6/pycache/fnmatch.cpython-36.pyc matches /usr/lib/python3.6/fnmatch.py

code object from ‘/usr/lib/python3.6/pycache/fnmatch.cpython-36.pyc’

import ‘fnmatch’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32f9a710>
import ‘zlib’ # <class ‘_frozen_importlib.BuiltinImporter’>

/usr/lib/python3.6/pycache/bz2.cpython-36.pyc matches /usr/lib/python3.6/bz2.py

code object from ‘/usr/lib/python3.6/pycache/bz2.cpython-36.pyc’

/usr/lib/python3.6/pycache/_compression.cpython-36.pyc matches /usr/lib/python3.6/_compression.py

code object from ‘/usr/lib/python3.6/pycache/_compression.cpython-36.pyc’

import ‘_compression’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32fa47b8>

extension module ‘_bz2’ loaded from ‘/usr/lib/python3.6/lib-dynload/_bz2.cpython-36m-x86_64-linux-gnu.so’

extension module ‘_bz2’ executed from ‘/usr/lib/python3.6/lib-dynload/_bz2.cpython-36m-x86_64-linux-gnu.so’

import ‘_bz2’ # <_frozen_importlib_external.ExtensionFileLoader object at 0x7f2b32fae198>
import ‘bz2’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32f9ae10>

/usr/lib/python3.6/pycache/lzma.cpython-36.pyc matches /usr/lib/python3.6/lzma.py

code object from ‘/usr/lib/python3.6/pycache/lzma.cpython-36.pyc’

extension module ‘_lzma’ loaded from ‘/usr/lib/python3.6/lib-dynload/_lzma.cpython-36m-x86_64-linux-gnu.so’

extension module ‘_lzma’ executed from ‘/usr/lib/python3.6/lib-dynload/_lzma.cpython-36m-x86_64-linux-gnu.so’

import ‘_lzma’ # <_frozen_importlib_external.ExtensionFileLoader object at 0x7f2b32faed68>
import ‘lzma’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32fae358>
import ‘pwd’ # <class ‘_frozen_importlib.BuiltinImporter’>
import ‘grp’ # <class ‘_frozen_importlib.BuiltinImporter’>
import ‘shutil’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b3300cac8>

/usr/lib/python3.6/pycache/random.cpython-36.pyc matches /usr/lib/python3.6/random.py

code object from ‘/usr/lib/python3.6/pycache/random.cpython-36.pyc’

/usr/lib/python3.6/pycache/hashlib.cpython-36.pyc matches /usr/lib/python3.6/hashlib.py

code object from ‘/usr/lib/python3.6/pycache/hashlib.cpython-36.pyc’

extension module ‘_hashlib’ loaded from ‘/usr/lib/python3.6/lib-dynload/_hashlib.cpython-36m-x86_64-linux-gnu.so’

extension module ‘_hashlib’ executed from ‘/usr/lib/python3.6/lib-dynload/_hashlib.cpython-36m-x86_64-linux-gnu.so’

import ‘_hashlib’ # <_frozen_importlib_external.ExtensionFileLoader object at 0x7f2b32fc2780>
import ‘_blake2’ # <class ‘_frozen_importlib.BuiltinImporter’>
import ‘_sha3’ # <class ‘_frozen_importlib.BuiltinImporter’>
import ‘hashlib’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32fbed30>

/usr/lib/python3.6/pycache/bisect.cpython-36.pyc matches /usr/lib/python3.6/bisect.py

code object from ‘/usr/lib/python3.6/pycache/bisect.cpython-36.pyc’

import ‘_bisect’ # <class ‘_frozen_importlib.BuiltinImporter’>
import ‘bisect’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32fc2240>
import ‘_random’ # <class ‘_frozen_importlib.BuiltinImporter’>
import ‘random’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b3300cc18>
import ‘tempfile’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b33087160>

/usr/lib/python3.6/pycache/glob.cpython-36.pyc matches /usr/lib/python3.6/glob.py

code object from ‘/usr/lib/python3.6/pycache/glob.cpython-36.pyc’

import ‘glob’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32fbebe0>
import ‘atexit’ # <class ‘_frozen_importlib.BuiltinImporter’>

/usr/lib/python3.6/pycache/locale.cpython-36.pyc matches /usr/lib/python3.6/locale.py

code object from ‘/usr/lib/python3.6/pycache/locale.cpython-36.pyc’

import ‘locale’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32fc2fd0>

/usr/lib/python3.6/pycache/imp.cpython-36.pyc matches /usr/lib/python3.6/imp.py

code object from ‘/usr/lib/python3.6/pycache/imp.cpython-36.pyc’

import ‘imp’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32d66780>

/usr/lib/python3.6/xml/pycache/init.cpython-36.pyc matches /usr/lib/python3.6/xml/init.py

code object from ‘/usr/lib/python3.6/xml/pycache/init.cpython-36.pyc’

import ‘xml’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32d6f240>

/usr/lib/python3.6/xml/dom/pycache/init.cpython-36.pyc matches /usr/lib/python3.6/xml/dom/init.py

code object from ‘/usr/lib/python3.6/xml/dom/pycache/init.cpython-36.pyc’

/usr/lib/python3.6/xml/dom/pycache/domreg.cpython-36.pyc matches /usr/lib/python3.6/xml/dom/domreg.py

code object from ‘/usr/lib/python3.6/xml/dom/pycache/domreg.cpython-36.pyc’

import ‘xml.dom.domreg’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32d6fe10>
import ‘xml.dom’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32d6f438>

/usr/lib/python3.6/xml/dom/pycache/minidom.cpython-36.pyc matches /usr/lib/python3.6/xml/dom/minidom.py

code object from ‘/usr/lib/python3.6/xml/dom/pycache/minidom.cpython-36.pyc’

/usr/lib/python3.6/xml/dom/pycache/minicompat.cpython-36.pyc matches /usr/lib/python3.6/xml/dom/minicompat.py

code object from ‘/usr/lib/python3.6/xml/dom/pycache/minicompat.cpython-36.pyc’

Thanks!
Javi

Log(2/2)

import ‘xml.dom.minicompat’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32d1ada0>

/usr/lib/python3.6/xml/dom/pycache/xmlbuilder.cpython-36.pyc matches /usr/lib/python3.6/xml/dom/xmlbuilder.py

code object from ‘/usr/lib/python3.6/xml/dom/pycache/xmlbuilder.cpython-36.pyc’

/usr/lib/python3.6/pycache/copy.cpython-36.pyc matches /usr/lib/python3.6/copy.py

code object from ‘/usr/lib/python3.6/pycache/copy.cpython-36.pyc’

import ‘copy’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32d2ac50>

/usr/lib/python3.6/xml/dom/pycache/NodeFilter.cpython-36.pyc matches /usr/lib/python3.6/xml/dom/NodeFilter.py

code object from ‘/usr/lib/python3.6/xml/dom/pycache/NodeFilter.cpython-36.pyc’

import ‘xml.dom.NodeFilter’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32d320b8>
import ‘xml.dom.xmlbuilder’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32d21320>
import ‘xml.dom.minidom’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32d6f4e0>

/usr/lib/python3.6/xml/parsers/pycache/init.cpython-36.pyc matches /usr/lib/python3.6/xml/parsers/init.py

code object from ‘/usr/lib/python3.6/xml/parsers/pycache/init.cpython-36.pyc’

import ‘xml.parsers’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32d32828>

/usr/lib/python3.6/xml/parsers/pycache/expat.cpython-36.pyc matches /usr/lib/python3.6/xml/parsers/expat.py

code object from ‘/usr/lib/python3.6/xml/parsers/pycache/expat.cpython-36.pyc’

import ‘pyexpat’ # <class ‘_frozen_importlib.BuiltinImporter’>
import ‘xml.parsers.expat’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32d328d0>

/usr/lib/python3.6/urllib/pycache/init.cpython-36.pyc matches /usr/lib/python3.6/urllib/init.py

code object from ‘/usr/lib/python3.6/urllib/pycache/init.cpython-36.pyc’

import ‘urllib’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32d32c18>

/usr/lib/python3.6/urllib/pycache/error.cpython-36.pyc matches /usr/lib/python3.6/urllib/error.py

code object from ‘/usr/lib/python3.6/urllib/pycache/error.cpython-36.pyc’

/usr/lib/python3.6/urllib/pycache/response.cpython-36.pyc matches /usr/lib/python3.6/urllib/response.py

code object from ‘/usr/lib/python3.6/urllib/pycache/response.cpython-36.pyc’

import ‘urllib.response’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32d472b0>
import ‘urllib.error’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32d32d30>

/usr/lib/python3.6/urllib/pycache/request.cpython-36.pyc matches /usr/lib/python3.6/urllib/request.py

code object from ‘/usr/lib/python3.6/urllib/pycache/request.cpython-36.pyc’

/usr/lib/python3.6/pycache/base64.cpython-36.pyc matches /usr/lib/python3.6/base64.py

code object from ‘/usr/lib/python3.6/pycache/base64.cpython-36.pyc’

import ‘binascii’ # <class ‘_frozen_importlib.BuiltinImporter’>
import ‘base64’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32cf1ba8>

/usr/lib/python3.6/email/pycache/init.cpython-36.pyc matches /usr/lib/python3.6/email/init.py

code object from ‘/usr/lib/python3.6/email/pycache/init.cpython-36.pyc’

import ‘email’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32cfde10>

/usr/lib/python3.6/http/pycache/init.cpython-36.pyc matches /usr/lib/python3.6/http/init.py

code object from ‘/usr/lib/python3.6/http/pycache/init.cpython-36.pyc’

import ‘http’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32d070f0>

/usr/lib/python3.6/http/pycache/client.cpython-36.pyc matches /usr/lib/python3.6/http/client.py

code object from ‘/usr/lib/python3.6/http/pycache/client.cpython-36.pyc’

/usr/lib/python3.6/email/pycache/parser.cpython-36.pyc matches /usr/lib/python3.6/email/parser.py

code object from ‘/usr/lib/python3.6/email/pycache/parser.cpython-36.pyc’

/usr/lib/python3.6/email/pycache/feedparser.cpython-36.pyc matches /usr/lib/python3.6/email/feedparser.py

code object from ‘/usr/lib/python3.6/email/pycache/feedparser.cpython-36.pyc’

/usr/lib/python3.6/email/pycache/errors.cpython-36.pyc matches /usr/lib/python3.6/email/errors.py

code object from ‘/usr/lib/python3.6/email/pycache/errors.cpython-36.pyc’

import ‘email.errors’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32cab518>

/usr/lib/python3.6/email/pycache/_policybase.cpython-36.pyc matches /usr/lib/python3.6/email/_policybase.py

code object from ‘/usr/lib/python3.6/email/pycache/_policybase.cpython-36.pyc’

/usr/lib/python3.6/email/pycache/header.cpython-36.pyc matches /usr/lib/python3.6/email/header.py

code object from ‘/usr/lib/python3.6/email/pycache/header.cpython-36.pyc’

/usr/lib/python3.6/email/pycache/quoprimime.cpython-36.pyc matches /usr/lib/python3.6/email/quoprimime.py

code object from ‘/usr/lib/python3.6/email/pycache/quoprimime.cpython-36.pyc’

/usr/lib/python3.6/pycache/string.cpython-36.pyc matches /usr/lib/python3.6/string.py

code object from ‘/usr/lib/python3.6/pycache/string.cpython-36.pyc’

import ‘_string’ # <class ‘_frozen_importlib.BuiltinImporter’>
import ‘string’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32cc5390>
import ‘email.quoprimime’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32cbfa58>

/usr/lib/python3.6/email/pycache/base64mime.cpython-36.pyc matches /usr/lib/python3.6/email/base64mime.py

code object from ‘/usr/lib/python3.6/email/pycache/base64mime.cpython-36.pyc’

import ‘email.base64mime’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32c55630>

/usr/lib/python3.6/email/pycache/charset.cpython-36.pyc matches /usr/lib/python3.6/email/charset.py

code object from ‘/usr/lib/python3.6/email/pycache/charset.cpython-36.pyc’

/usr/lib/python3.6/email/pycache/encoders.cpython-36.pyc matches /usr/lib/python3.6/email/encoders.py

code object from ‘/usr/lib/python3.6/email/pycache/encoders.cpython-36.pyc’

/usr/lib/python3.6/pycache/quopri.cpython-36.pyc matches /usr/lib/python3.6/quopri.py

code object from ‘/usr/lib/python3.6/pycache/quopri.cpython-36.pyc’

import ‘quopri’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32c59780>
import ‘email.encoders’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32c59390>
import ‘email.charset’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32c557f0>
import ‘email.header’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32cb4908>

/usr/lib/python3.6/email/pycache/utils.cpython-36.pyc matches /usr/lib/python3.6/email/utils.py

code object from ‘/usr/lib/python3.6/email/pycache/utils.cpython-36.pyc’

/usr/lib/python3.6/pycache/socket.cpython-36.pyc matches /usr/lib/python3.6/socket.py

code object from ‘/usr/lib/python3.6/pycache/socket.cpython-36.pyc’

import ‘_socket’ # <class ‘_frozen_importlib.BuiltinImporter’>
import ‘socket’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32c60a90>

/usr/lib/python3.6/pycache/datetime.cpython-36.pyc matches /usr/lib/python3.6/datetime.py

code object from ‘/usr/lib/python3.6/pycache/datetime.cpython-36.pyc’

import ‘_datetime’ # <class ‘_frozen_importlib.BuiltinImporter’>
import ‘datetime’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32c60ba8>

/usr/lib/python3.6/urllib/pycache/parse.cpython-36.pyc matches /usr/lib/python3.6/urllib/parse.py

code object from ‘/usr/lib/python3.6/urllib/pycache/parse.cpython-36.pyc’

import ‘urllib.parse’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32c64a90>

/usr/lib/python3.6/email/pycache/_parseaddr.cpython-36.pyc matches /usr/lib/python3.6/email/_parseaddr.py

code object from ‘/usr/lib/python3.6/email/pycache/_parseaddr.cpython-36.pyc’

/usr/lib/python3.6/pycache/calendar.cpython-36.pyc matches /usr/lib/python3.6/calendar.py

code object from ‘/usr/lib/python3.6/pycache/calendar.cpython-36.pyc’

import ‘calendar’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32c2de80>
import ‘email._parseaddr’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32c0a358>
import ‘email.utils’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32cbf208>
import ‘email._policybase’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32cab5c0>
import ‘email.feedparser’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32ca0710>
import ‘email.parser’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32ca0080>

/usr/lib/python3.6/email/pycache/message.cpython-36.pyc matches /usr/lib/python3.6/email/message.py

code object from ‘/usr/lib/python3.6/email/pycache/message.cpython-36.pyc’

/usr/lib/python3.6/pycache/uu.cpython-36.pyc matches /usr/lib/python3.6/uu.py

code object from ‘/usr/lib/python3.6/pycache/uu.cpython-36.pyc’

import ‘uu’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32bcbe80>

/usr/lib/python3.6/email/pycache/_encoded_words.cpython-36.pyc matches /usr/lib/python3.6/email/_encoded_words.py

code object from ‘/usr/lib/python3.6/email/pycache/_encoded_words.cpython-36.pyc’

import ‘email._encoded_words’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32bd0080>

/usr/lib/python3.6/email/pycache/iterators.cpython-36.pyc matches /usr/lib/python3.6/email/iterators.py

code object from ‘/usr/lib/python3.6/email/pycache/iterators.cpython-36.pyc’

import ‘email.iterators’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32bd06d8>
import ‘email.message’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32ca06a0>

/usr/lib/python3.6/pycache/ssl.cpython-36.pyc matches /usr/lib/python3.6/ssl.py

code object from ‘/usr/lib/python3.6/pycache/ssl.cpython-36.pyc’

/usr/lib/python3.6/pycache/ipaddress.cpython-36.pyc matches /usr/lib/python3.6/ipaddress.py

code object from ‘/usr/lib/python3.6/pycache/ipaddress.cpython-36.pyc’

import ‘ipaddress’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32bec828>

/usr/lib/python3.6/pycache/textwrap.cpython-36.pyc matches /usr/lib/python3.6/textwrap.py

code object from ‘/usr/lib/python3.6/pycache/textwrap.cpython-36.pyc’

import ‘textwrap’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32bfcf28>

extension module ‘_ssl’ loaded from ‘/usr/lib/python3.6/lib-dynload/_ssl.cpython-36m-x86_64-linux-gnu.so’

extension module ‘_ssl’ executed from ‘/usr/lib/python3.6/lib-dynload/_ssl.cpython-36m-x86_64-linux-gnu.so’

import ‘_ssl’ # <_frozen_importlib_external.ExtensionFileLoader object at 0x7f2b24b9a240>
import ‘ssl’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32bd0a90>
import ‘http.client’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32d07550>
import ‘urllib.request’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32d47be0>

/usr/lib/python3/dist-packages/pycache/problem_report.cpython-36.pyc matches /usr/lib/python3/dist-packages/problem_report.py

code object from ‘/usr/lib/python3/dist-packages/pycache/problem_report.cpython-36.pyc’

/usr/lib/python3.6/pycache/gzip.cpython-36.pyc matches /usr/lib/python3.6/gzip.py

code object from ‘/usr/lib/python3.6/pycache/gzip.cpython-36.pyc’

import ‘gzip’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b2494a630>

/usr/lib/python3.6/email/mime/pycache/init.cpython-36.pyc matches /usr/lib/python3.6/email/mime/init.py

code object from ‘/usr/lib/python3.6/email/mime/pycache/init.cpython-36.pyc’

import ‘email.mime’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b2494f9e8>

/usr/lib/python3.6/email/mime/pycache/multipart.cpython-36.pyc matches /usr/lib/python3.6/email/mime/multipart.py

code object from ‘/usr/lib/python3.6/email/mime/pycache/multipart.cpython-36.pyc’

/usr/lib/python3.6/email/mime/pycache/base.cpython-36.pyc matches /usr/lib/python3.6/email/mime/base.py

code object from ‘/usr/lib/python3.6/email/mime/pycache/base.cpython-36.pyc’

/usr/lib/python3.6/email/pycache/policy.cpython-36.pyc matches /usr/lib/python3.6/email/policy.py

code object from ‘/usr/lib/python3.6/email/pycache/policy.cpython-36.pyc’

/usr/lib/python3.6/email/pycache/headerregistry.cpython-36.pyc matches /usr/lib/python3.6/email/headerregistry.py

code object from ‘/usr/lib/python3.6/email/pycache/headerregistry.cpython-36.pyc’

/usr/lib/python3.6/email/pycache/_header_value_parser.cpython-36.pyc matches /usr/lib/python3.6/email/_header_value_parser.py

code object from ‘/usr/lib/python3.6/email/pycache/_header_value_parser.cpython-36.pyc’

import ‘email._header_value_parser’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b249625f8>
import ‘email.headerregistry’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b249556a0>

/usr/lib/python3.6/email/pycache/contentmanager.cpython-36.pyc matches /usr/lib/python3.6/email/contentmanager.py

code object from ‘/usr/lib/python3.6/email/pycache/contentmanager.cpython-36.pyc’

import ‘email.contentmanager’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b2495b518>
import ‘email.policy’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b2494fe48>
import ‘email.mime.base’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b2494fbe0>
import ‘email.mime.multipart’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b2494fa58>

/usr/lib/python3.6/email/mime/pycache/text.cpython-36.pyc matches /usr/lib/python3.6/email/mime/text.py

code object from ‘/usr/lib/python3.6/email/mime/pycache/text.cpython-36.pyc’

/usr/lib/python3.6/email/mime/pycache/nonmultipart.cpython-36.pyc matches /usr/lib/python3.6/email/mime/nonmultipart.py

code object from ‘/usr/lib/python3.6/email/mime/pycache/nonmultipart.cpython-36.pyc’

import ‘email.mime.nonmultipart’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b24920780>
import ‘email.mime.text’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b2494fcc0>
import ‘problem_report’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b32cd6400>

/usr/lib/python3/dist-packages/apport/pycache/fileutils.cpython-36.pyc matches /usr/lib/python3/dist-packages/apport/fileutils.py

code object from ‘/usr/lib/python3/dist-packages/apport/pycache/fileutils.cpython-36.pyc’

/usr/lib/python3.6/pycache/configparser.cpython-36.pyc matches /usr/lib/python3.6/configparser.py

code object from ‘/usr/lib/python3.6/pycache/configparser.cpython-36.pyc’

import ‘configparser’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b24929198>

/usr/lib/python3/dist-packages/apport/pycache/packaging_impl.cpython-36.pyc matches /usr/lib/python3/dist-packages/apport/packaging_impl.py

code object from ‘/usr/lib/python3/dist-packages/apport/pycache/packaging_impl.cpython-36.pyc’

/usr/lib/python3.6/json/pycache/init.cpython-36.pyc matches /usr/lib/python3.6/json/init.py

code object from ‘/usr/lib/python3.6/json/pycache/init.cpython-36.pyc’

/usr/lib/python3.6/json/pycache/decoder.cpython-36.pyc matches /usr/lib/python3.6/json/decoder.py

code object from ‘/usr/lib/python3.6/json/pycache/decoder.cpython-36.pyc’

/usr/lib/python3.6/json/pycache/scanner.cpython-36.pyc matches /usr/lib/python3.6/json/scanner.py

code object from ‘/usr/lib/python3.6/json/pycache/scanner.cpython-36.pyc’

extension module ‘_json’ loaded from ‘/usr/lib/python3.6/lib-dynload/_json.cpython-36m-x86_64-linux-gnu.so’

extension module ‘_json’ executed from ‘/usr/lib/python3.6/lib-dynload/_json.cpython-36m-x86_64-linux-gnu.so’

import ‘_json’ # <_frozen_importlib_external.ExtensionFileLoader object at 0x7f2b33043320>
import ‘json.scanner’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b3303afd0>
import ‘json.decoder’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b3303a898>

/usr/lib/python3.6/json/pycache/encoder.cpython-36.pyc matches /usr/lib/python3.6/json/encoder.py

code object from ‘/usr/lib/python3.6/json/pycache/encoder.cpython-36.pyc’

import ‘json.encoder’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b3303ae48>
import ‘json’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b3303a4e0>

/usr/lib/python3/dist-packages/apt/pycache/init.cpython-36.pyc matches /usr/lib/python3/dist-packages/apt/init.py

code object from ‘/usr/lib/python3/dist-packages/apt/pycache/init.cpython-36.pyc’

/usr/lib/python3.6/pycache/future.cpython-36.pyc matches /usr/lib/python3.6/future.py

code object from ‘/usr/lib/python3.6/pycache/future.cpython-36.pyc’

import ‘future’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b3304e5c0>

extension module ‘apt_pkg’ loaded from ‘/usr/lib/python3/dist-packages/apt_pkg.cpython-36m-x86_64-linux-gnu.so’

extension module ‘apt_pkg’ executed from ‘/usr/lib/python3/dist-packages/apt_pkg.cpython-36m-x86_64-linux-gnu.so’

import ‘apt_pkg’ # <_frozen_importlib_external.ExtensionFileLoader object at 0x7f2b3304e9e8>

/usr/lib/python3/dist-packages/apt/pycache/package.cpython-36.pyc matches /usr/lib/python3/dist-packages/apt/package.py

code object from ‘/usr/lib/python3/dist-packages/apt/pycache/package.cpython-36.pyc’

/usr/lib/python3.6/logging/pycache/init.cpython-36.pyc matches /usr/lib/python3.6/logging/init.py

code object from ‘/usr/lib/python3.6/logging/pycache/init.cpython-36.pyc’

import ‘logging’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b22f9f908>

/usr/lib/python3.6/pycache/typing.cpython-36.pyc matches /usr/lib/python3.6/typing.py

code object from ‘/usr/lib/python3.6/pycache/typing.cpython-36.pyc’

import ‘typing’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b22fbee48>

/usr/lib/python3/dist-packages/apt/progress/pycache/init.cpython-36.pyc matches /usr/lib/python3/dist-packages/apt/progress/init.py

code object from ‘/usr/lib/python3/dist-packages/apt/progress/pycache/init.cpython-36.pyc’

import ‘apt.progress’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b22f60fd0>

/usr/lib/python3/dist-packages/apt/progress/pycache/text.cpython-36.pyc matches /usr/lib/python3/dist-packages/apt/progress/text.py

code object from ‘/usr/lib/python3/dist-packages/apt/progress/pycache/text.cpython-36.pyc’

/usr/lib/python3/dist-packages/apt/progress/pycache/base.cpython-36.pyc matches /usr/lib/python3/dist-packages/apt/progress/base.py

code object from ‘/usr/lib/python3/dist-packages/apt/progress/pycache/base.cpython-36.pyc’

import ‘fcntl’ # <class ‘_frozen_importlib.BuiltinImporter’>
import ‘apt.progress.base’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b22f37a20>
import ‘apt.progress.text’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b22f6a518>
import ‘apt.package’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b22f8c400>

/usr/lib/python3/dist-packages/apt/pycache/cache.cpython-36.pyc matches /usr/lib/python3/dist-packages/apt/cache.py

code object from ‘/usr/lib/python3/dist-packages/apt/pycache/cache.cpython-36.pyc’

import ‘apt.cache’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b22f9c518>

/usr/lib/python3/dist-packages/apt/pycache/cdrom.cpython-36.pyc matches /usr/lib/python3/dist-packages/apt/cdrom.py

code object from ‘/usr/lib/python3/dist-packages/apt/pycache/cdrom.cpython-36.pyc’

import ‘apt.cdrom’ # <_frozen_importlib_external.SourceFileLoader object at 0x7f2b22ed5320>
Segmentation fault (core dumped)

Hmm, the -v logs don’t shed as much light as I would have hoped.

But I see you’re using the PPA version of fenics, not the Ubuntu 18.04 version. That’s an important detail.

Perhaps the PPA got out of date with bionic. I’ve triggered a rebuild.

Thanks! 10 minutes ago I tried to remove fenics and then install it again from the PPA but I keep getting the same problem. I tried to update first but apt-get said it was already updated. I’m not sure if the rebuild has taken place yet.

It should be ready now. python3-dolfin 2019.1.0-1~ppa1~bionic4

I reinstalled and rebooted. I still get the segfault. If I start python3 and type from fenics import * this is what python3 gives me:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3/dist-packages/dolfin/__init__.py", line 34, in <module>
    from .cpp import __version__
ImportError: /usr/lib/python3/dist-packages/dolfin/cpp.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZTIN6dolfin19PETScLinearOperatorE

What does
dpkg -l *dolfin* | cat
report ?

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                  Version                 Architecture Description
+++-=====================-=======================-============-==========================================
ii  dolfin-bin            2019.1.0-1~ppa1~bionic4 all          Executable scripts for DOLFIN
ii  dolfin-doc            2019.1.0-1~ppa1~bionic4 all          Documentation and demo programs for DOLFIN
ii  libdolfin-dev         2019.1.0-1~ppa1~bionic4 amd64        Shared links and header files for DOLFIN
un  libdolfin0-dev        <none>                  <none>       (no description available)
un  libdolfin1.0-dev      <none>                  <none>       (no description available)
un  libdolfin1.1-dev      <none>                  <none>       (no description available)
un  libdolfin1.2-dev      <none>                  <none>       (no description available)
un  libdolfin1.3-dev      <none>                  <none>       (no description available)
un  libdolfin1.4-dev      <none>                  <none>       (no description available)
ii  libdolfin2019.1:amd64 2019.1.0-1~ppa1~bionic4 amd64        Shared libraries for DOLFIN
ii  python3-dolfin        2019.1.0-1~ppa1~bionic4 amd64        Python interface for DOLFIN (Python 3)

Looks like you’ve got the updated version, so it’s not clear why its failing. Has it continued to not find the dolfinPETSc symbol?

What do these commands report?
nm -D /usr/lib/x86_64-linux-gnu/libdolfin.so.2019.1 | grep PETScLinearOperatorE

objdump -p /usr/lib/python3/dist-packages/dolfin/cpp.cpython-36m-x86_64-linux-gnu.so | grep NEEDED

It still keeps giving the same error. Here’s the output of the commands:

00000000003eef40 W _ZNSt23_Sp_counted_ptr_inplaceIN6dolfin19PETScLinearOperatorESaIS1_ELN9__gnu_cxx12_Lock_policyE2EE10_M_destroyEv
00000000003eeda0 W _ZNSt23_Sp_counted_ptr_inplaceIN6dolfin19PETScLinearOperatorESaIS1_ELN9__gnu_cxx12_Lock_policyE2EE10_M_disposeEv
00000000003eee10 W _ZNSt23_Sp_counted_ptr_inplaceIN6dolfin19PETScLinearOperatorESaIS1_ELN9__gnu_cxx12_Lock_policyE2EE14_M_get_deleterERKSt9type_info
00000000003eeef0 W _ZNSt23_Sp_counted_ptr_inplaceIN6dolfin19PETScLinearOperatorESaIS1_ELN9__gnu_cxx12_Lock_policyE2EED0Ev
00000000003eed90 W _ZNSt23_Sp_counted_ptr_inplaceIN6dolfin19PETScLinearOperatorESaIS1_ELN9__gnu_cxx12_Lock_policyE2EED1Ev
00000000003eed90 W _ZNSt23_Sp_counted_ptr_inplaceIN6dolfin19PETScLinearOperatorESaIS1_ELN9__gnu_cxx12_Lock_policyE2EED2Ev
00000000007d6a48 V _ZTIN6dolfin19PETScLinearOperatorE
00000000007d6808 V _ZTISt23_Sp_counted_ptr_inplaceIN6dolfin19PETScLinearOperatorESaIS1_ELN9__gnu_cxx12_Lock_policyE2EE
000000000052e140 V _ZTSN6dolfin19PETScLinearOperatorE
000000000052d6e0 V _ZTSSt23_Sp_counted_ptr_inplaceIN6dolfin19PETScLinearOperatorESaIS1_ELN9__gnu_cxx12_Lock_policyE2EE
00000000007d6c50 V _ZTTN6dolfin19PETScLinearOperatorE
00000000007d6ca8 V _ZTVN6dolfin19PETScLinearOperatorE
00000000007d68f0 V _ZTVSt23_Sp_counted_ptr_inplaceIN6dolfin19PETScLinearOperatorESaIS1_ELN9__gnu_cxx12_Lock_policyE2EE

and

  NEEDED               libdolfin.so.2019.1
  NEEDED               libpetsc_real.so.3.7
  NEEDED               libmpi.so.20
  NEEDED               libstdc++.so.6
  NEEDED               libm.so.6
  NEEDED               libgcc_s.so.1
  NEEDED               libc.so.6

So the symbol is there. _ZTIN6dolfin19PETScLinearOperatorE. Still not clear why cpp.cpython-36m-x86_64-linux-gnu.so can’t find it.
Does
export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu
make any difference?

Double check your python,

which python

ls -l /usr/bin/python3

The export solves the problem!

Thank you so much for all your help. I would never ever have figured this out without you.

Thanks again!
Javi

Note that you should not have to add /usr/lib/x86_64-linux-gnu to your LD library path. It’s a symptom that something is wrong with your system’s configuration. You might want to inspect your value of LD_LIBRARY_PATH in a fresh login. Perhaps something is interfering with it.