Error during tests ase tests

I am getting the following error while running tests for ase.

About to run pytest with these parameters:
================================================================ test session starts =================================================================
platform linux – Python 3.8.3, pytest-5.4.3, py-1.9.0, pluggy-0.13.1 – /home/19ph90j04/anaconda3/bin/python
cachedir: .pytest_cache


ase-3.21.1 /home/19ph90j04/anaconda3/lib/python3.8/site-packages/ase
numpy-1.18.5 /home/19ph90j04/anaconda3/lib/python3.8/site-packages/numpy
scipy-1.5.0 /home/19ph90j04/anaconda3/lib/python3.8/site-packages/scipy
matplotlib-3.2.2 /home/19ph90j04/anaconda3/lib/python3.8/site-packages/matplotlib
spglib-1.16.1 /home/19ph90j04/anaconda3/lib/python3.8/site-packages/spglib
ase_ext not installed
flask-1.1.2 /home/19ph90j04/anaconda3/lib/python3.8/site-packages/flask
psycopg2 not installed


Config: No configuration file specified
Datafiles: ase-datafiles package not installed

[ ] abinit not installed
[ ] asap not installed
[ ] cp2k not installed
[ ] dftb not installed
[ ] dftd3 not installed
[ ] elk not installed
[ ] espresso not installed
[ ] exciting not installed
[ ] gpaw not installed
[ ] gromacs not installed
[ ] lammpslib not installed
[ ] lammpsrun not installed
[ ] nwchem not installed
[ ] octopus not installed
[ ] openmx not installed
[ ] siesta not installed
[ ] vasp not installed

  • Use --calculators option to select calculators.

  • See “ase test --help-calculators” on how to configure calculators.

  • This listing only includes external calculators known by the test
    system. Others are “configured” by setting an environment variable
    like “ASE_xxx_COMMAND” in order to allow tests to run. Please see
    the documentation of that individual calculator.

rootdir: /home/19ph90j04/anaconda3/lib/python3.8/site-packages/ase/test, inifile: pytest.ini
plugins: xdist-2.2.1, mock-3.6.1, forked-1.3.0
gw0 I / gw1 I / gw2 I / gw3 I / gw4 I / gw5 I / gw6 I / gw7 I / gw8 I / gw9 I / gw10 I / gw11 I / gw12 I / gw13 I / gw14 I / gw15 I / gw16 I / gw17 I [gw0] linux Python 3.8.3 cwd: /home/19ph90j04/anaconda3/lib/python3.8/site-packages/ase/test


INTERNALERROR> File “/home/19ph90j04/.local/lib/python3.8/site-packages/xdist/”, line 112, in pytest_runtestloop
INTERNALERROR> self.loop_once()
INTERNALERROR> File “/home/19ph90j04/.local/lib/python3.8/site-packages/xdist/”, line 135, in loop_once
INTERNALERROR> call(**kwargs)
INTERNALERROR> File “/home/19ph90j04/.local/lib/python3.8/site-packages/xdist/”, line 175, in worker_workerfinished
INTERNALERROR> self._active_nodes.remove(node)

Can somebody help me out? One more thing. If someone using ase for calculating transport properties using BoltzTrap and VASP., I am getting this error:

My second issue is:

AttributeError: ‘Vasp’ object has no attribute ‘read_number_of_electrons’

I guess this is related to ase


The error from the tests looks like a software version issue. Maybe you need to upgrade pytest-xdist. Alternatively you can run the tests in serial using ase test -j0 which will probably circumvent the problem.

As for the vasp-related issue, it seems that vasp does not have a method to get the number of electrons.

Best regards