EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024 
<== Date ==> <== Thread ==>

Subject: Re: Quickstart Error trying P4P
From: Michael Davidsaver via Tech-talk <tech-talk at aps.anl.gov>
To: Matt Rippa <matt.rippa at noirlab.edu>
Cc: Talk EPICS Tech <tech-talk at aps.anl.gov>
Date: Wed, 1 Feb 2023 11:40:19 -0800
On 2/1/23 01:59, Matt Rippa via Tech-talk wrote:
Hi folks,

I'm starting to look at p4p and following this guide https://mdavidsaver.github.io/p4p/starting.html#starting <https://mdavidsaver.github.io/p4p/starting.html#starting>.

Congratulations on being perhaps the first person to try P4P with python 3.11!

I haven't yet published pre-compiled .whl files for python 3.11, so I guess
something went wrong during local compilation.  Could you try the following
with a new virtualenv?

python -m virtualenv anotherenv
. anotherenv/bin/activate
python -m pip install -U pip
python -m pip install nose2
python -m pip install -v p4p
python -m nose2 p4p

This adds a '-v' which will print quite a bit of detail while building p4p
and its dependencies.  Please send me the full output.


I'm running into this error.
ImportError: libpvxs.so.1.1: cannot open shared object file: No such file or directory

pip show pvxslibs
shows it's installed.  Full output below.

But further inspection looks like only the info directory is installed.
(p4ptest) [mrippa@localhost p4p2]$ ls -ltra /home/mrippa/work/p4p2/p4ptest/lib64/python3.11/site-packages
total 40
drwxr-xr-x.  3 mrippa mrippa 4096 Jan 31 23:19 ..
drwxr-xr-x.  2 mrippa mrippa 4096 Jan 31 23:29 numpy.libs
drwxr-xr-x. 21 mrippa mrippa 4096 Jan 31 23:29 numpy
drwxr-xr-x.  2 mrippa mrippa 4096 Jan 31 23:29 numpy-1.24.1.dist-info
drwxr-xr-x.  9 mrippa mrippa 4096 Jan 31 23:29 epicscorelibs
drwxr-xr-x.  2 mrippa mrippa 4096 Jan 31 23:29 epicscorelibs-7.0.7.99.0.0.dist-info
drwxr-xr-x.  2 mrippa mrippa 4096 Jan 31 23:29 pvxslibs-1.1.1.dist-info
drwxr-xr-x. 10 mrippa mrippa 4096 Jan 31 23:44 .
drwxr-xr-x.  8 mrippa mrippa 4096 Jan 31 23:44 p4p
drwxr-xr-x.  2 mrippa mrippa 4096 Jan 31 23:44 p4p-4.1.5.dist-info

I tried to uninstall and reinstall with the same result.
Tried on Fedora 37 and Rocky8 with the same result.

$ uname -a
Linux localhost.localdomain 6.1.8-200.fc37.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jan 24 20:32:16 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
$ python -V
Python 3.11.1

Thanks for any insight!
-Matt

(p4ptest) [mrippa@localhost p4p2]$ python -m pip install -U p4p nose2
Requirement already satisfied: p4p in ./p4ptest/lib64/python3.11/site-packages (4.1.5)
Requirement already satisfied: nose2 in ./p4ptest/lib/python3.11/site-packages (0.12.0)
Requirement already satisfied: epicscorelibs<7.0.7.99.1,>=7.0.7.99.0.0 in ./p4ptest/lib64/python3.11/site-packages (from p4p) (7.0.7.99.0.0)
Requirement already satisfied: pvxslibs<1.2.0a1,>=1.1.1 in ./p4ptest/lib64/python3.11/site-packages (from p4p) (1.1.1)
Requirement already satisfied: numpy>=1.24.1 in ./p4ptest/lib64/python3.11/site-packages (from p4p) (1.24.1)
Requirement already satisfied: ply in ./p4ptest/lib/python3.11/site-packages (from p4p) (3.11)
Requirement already satisfied: setuptools in ./p4ptest/lib/python3.11/site-packages (from epicscorelibs<7.0.7.99.1,>=7.0.7.99.0.0->p4p) (65.6.3)
Requirement already satisfied: setuptools-dso>=2.0a1 in ./p4ptest/lib/python3.11/site-packages (from epicscorelibs<7.0.7.99.1,>=7.0.7.99.0.0->p4p) (2.6)


(p4ptest) [mrippa@localhost p4p2]$ python -m nose2 p4p
E
======================================================================
ERROR: p4p (nose2.loader.LoadTestsFailure.p4p)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/mrippa/work/p4p2/p4ptest/lib/python3.11/site-packages/nose2/_vendor/six.py", line 719, in reraise
    raise value
  File "/home/mrippa/work/p4p2/p4ptest/lib/python3.11/site-packages/nose2/plugins/loader/functions.py", line 81, in loadTestsFromName
    result = util.test_from_name(name, module)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/mrippa/work/p4p2/p4ptest/lib/python3.11/site-packages/nose2/util.py", line 92, in test_from_name
    parent, obj = object_from_name(name, module)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/mrippa/work/p4p2/p4ptest/lib/python3.11/site-packages/nose2/util.py", line 112, in object_from_name
    (module, import_error) = try_import_module_from_name(parts[:])
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/mrippa/work/p4p2/p4ptest/lib/python3.11/site-packages/nose2/util.py", line 171, in try_import_module_from_name
    six.reraise(*import_error)
  File "/home/mrippa/work/p4p2/p4ptest/lib/python3.11/site-packages/nose2/_vendor/six.py", line 719, in reraise
    raise value
  File "/home/mrippa/work/p4p2/p4ptest/lib/python3.11/site-packages/nose2/util.py", line 165, in try_import_module_from_name
    module = __import__(".".join(splitted_name))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/mrippa/work/p4p2/p4ptest/lib64/python3.11/site-packages/p4p/__init__.py", line 14, in <module>
    from .wrapper import Value, Type
  File "/home/mrippa/work/p4p2/p4ptest/lib64/python3.11/site-packages/p4p/wrapper.py", line 5, in <module>
    from . import _p4p
ImportError: libpvxs.so.1.1: cannot open shared object file: No such file or directory

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

FAILED (errors=1)

(p4ptest) [mrippa@localhost p4p2]$ pip show pvxslibs
Name: pvxslibs
Version: 1.1.1
Summary: PVXS libraries packaged for python
Home-page: https://mdavidsaver.github.io/pvxs <https://mdavidsaver.github.io/pvxs>
Author: Michael Davidsaver
Author-email: mdavidsaver at gmail.com <mailto:mdavidsaver at gmail.com>
License: BSD
Location: /home/mrippa/work/p4p2/p4ptest/lib64/python3.11/site-packages
Requires: epicscorelibs, setuptools-dso
Required-by: p4p


(p4ptest) [mrippa@localhost p4p2]$ python -m p4p.server.cli my:pv:name=int
Traceback (most recent call last):
  File "<frozen runpy>", line 189, in _run_module_as_main
  File "<frozen runpy>", line 112, in _get_module_details
  File "/home/mrippa/work/p4p2/p4ptest/lib64/python3.11/site-packages/p4p/__init__.py", line 14, in <module>
    from .wrapper import Value, Type
  File "/home/mrippa/work/p4p2/p4ptest/lib64/python3.11/site-packages/p4p/wrapper.py", line 5, in <module>
    from . import _p4p
ImportError: libpvxs.so.1.1: cannot open shared object file: No such file or directory





Replies:
Re: Quickstart Error trying P4P Matt Rippa via Tech-talk
References:
Quickstart Error trying P4P Matt Rippa via Tech-talk

Navigate by Date:
Prev: RE: Allen-Bradley PLC question Mark Rivers via Tech-talk
Next: Re: EPICS deb/rpm packaging Lucas Russo via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024 
Navigate by Thread:
Prev: Quickstart Error trying P4P Matt Rippa via Tech-talk
Next: Re: Quickstart Error trying P4P Matt Rippa via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024 
ANJ, 01 Feb 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·