epics-base / p4p

Python bindings for the PVAccess network client and server.
BSD 3-Clause "New" or "Revised" License
27 stars 38 forks source link

Tests fail with ImportError #142

Open anderslindho opened 6 months ago

anderslindho commented 6 months ago

Following the instructions in the README (as well as in docs/building.rst under "Local (re)build as Python package", regardless if I install from pypi or directly from source), I get the following failure:

E
======================================================================
ERROR: p4p (nose2.loader.LoadTestsFailure)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/anderslindh/p4p/src/p4p/__init__.py", line 14, in <module>
    from .wrapper import Value, Type
  File "/home/anderslindh/p4p/src/p4p/wrapper.py", line 5, in <module>
    from . import _p4p
ImportError: cannot import name '_p4p'

----------------------------------------------------------------------
Ran 1 test in 0.000s

FAILED (errors=1)

This on a centos7 machine with python 3.6.8 and

Cython==3.0.10
epicscorelibs==7.0.7.99.0.2
nose2==0.13.0
numpy==1.19.5
p4p @ file:///home/anderslindh/p4p
ply==3.11
pvxslibs==1.3.1
setuptools-dso==2.10