Solved : Cannot import name 'Array' in fenics 2019.1.0

Hello. I installed FEniCS 2019.1.0 on Ubuntu 16.04 LTS. When I tried ‘import dolfin’, I get error message "cannot import name ‘Array’ ". The python version is 3.5.2.

import dolfin
Traceback (most recent call last):
File “”, line 1, in
File “/usr/lib/python3/dist-packages/dolfin/init.py”, line 136, in
from . import parameter
File “/usr/lib/python3/dist-packages/dolfin/parameter/init.py”, line 11, in
from ffc import default_jit_parameters
File “/usr/lib/python3/dist-packages/ffc/init.py”, line 24, in
from ffc.compiler import compile_form, compile_element
File “/usr/lib/python3/dist-packages/ffc/compiler.py”, line 127, in
from ffc.representation import compute_ir
File “/usr/lib/python3/dist-packages/ffc/representation.py”, line 44, in
from ffc.fiatinterface import create_element, reference_cell
File “/usr/lib/python3/dist-packages/ffc/fiatinterface.py”, line 31, in
import FIAT
File “/usr/local/lib/python3.5/dist-packages/fenics_fiat-2019.2.0.dev0-py3.5.egg/FIAT/init.py”, line 18, in
File “/usr/local/lib/python3.5/dist-packages/fenics_fiat-2019.2.0.dev0-py3.5.egg/FIAT/serendipity.py”, line 20, in
ImportError: cannot import name ‘Array’

Solved. Make sure after installation of FEniCS 2019.1.0 the dijitso and sympy used by FEniCS are dijitso2019.2.0.dev and sympy1.5.dev and do not rely on default installations by FEniCS. The versions used by default in my case were dijitso2019.1.0 and sympy1.4.