Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 814530 - dev-python/h5py ebuild does not give access to building with ROS3 support
Summary: dev-python/h5py ebuild does not give access to building with ROS3 support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2021-09-24 05:51 UTC by Horea Christian
Modified: 2021-10-16 10:19 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Horea Christian 2021-09-24 05:51:22 UTC
The current ebuild neither provides ROS3 support by default, nor has a flag with which to select it.

I get the following errors from the test suite of another package:

```
ERROR: test_read (tests.integration.ros3.test_ros3.TestRos3Streaming)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pynwb-2.0.0/work/pynwb-2.0.0/tests/integration/ros3/test_ros3.py", line 11, in test_read
    with NWBHDF5IO(s3_path, mode='r', driver='ros3') as io:
  File "/usr/lib/python3.9/site-packages/hdmf/utils.py", line 583, in func_call
    return func(args[0], **pargs)
  File "/var/tmp/portage/dev-python/pynwb-2.0.0/work/pynwb-2.0.0/src/pynwb/__init__.py", line 246, in __init__
    super(NWBHDF5IO, self).__init__(path, manager=manager, mode=mode, file=file_obj, comm=comm, driver=driver)
  File "/usr/lib/python3.9/site-packages/hdmf/utils.py", line 583, in func_call
    return func(args[0], **pargs)
  File "/usr/lib/python3.9/site-packages/hdmf/backends/hdf5/h5tools.py", line 79, in __init__
    super().__init__(manager, source=path)
  File "/usr/lib/python3.9/site-packages/hdmf/utils.py", line 583, in func_call
    return func(args[0], **pargs)
  File "/usr/lib/python3.9/site-packages/hdmf/backends/io.py", line 22, in __init__
    self.open()
  File "/usr/lib/python3.9/site-packages/hdmf/backends/hdf5/h5tools.py", line 774, in open
    self.__file = File(self.source, open_flag, **kwargs)
  File "/usr/lib/python3.9/site-packages/h5py/_hl/files.py", line 407, in __init__
    raise ValueError(
ValueError: h5py was built without ROS3 support, can't use ros3 driver
```

I have found an issue on github which mentions this: https://github.com/h5py/h5py/issues/1712#issuecomment-714717171

But I have no idea where and how I would add the snippet mentioned `./configure --enable-ros3-vfd`.
Comment 1 Horea Christian 2021-09-29 10:51:55 UTC
I've done some more digging. Assumed this might be simple, but the package has no `configure` I can run. It has a `setup_configure.py` but It doesn't seem to do anything with the argument `--enable-ros3-vfd` :-/

No ideas?
Comment 2 Horea Christian 2021-10-01 09:49:37 UTC
Ok, so it appears this is automatically fixed if the hdf5 package is emerged with ROS3 support, which I will be submitting as a PR to ::gentoo shortly.