Description of problem: Package python-pyvmomi fails to build from source in Fedora rawhide. Version-Release number of selected component (if applicable): 6.7.3-1.fc32 Steps to Reproduce: koji build --scratch f32 python-pyvmomi-6.7.3-1.fc32.src.rpm Additional info: This package is tracked by Koschei. See: https://koschei.fedoraproject.org/package/python-pyvmomi
Relevant snippet from build.log: + /usr/bin/python3 setup.py test running test Searching for vcrpy<2 Reading https://pypi.org/simple/vcrpy/ Download error on https://pypi.org/simple/vcrpy/: [Errno -2] Name or service not known -- Some packages may not be found! Couldn't retrieve index page for 'vcrpy' Scanning index of all packages (this may take a while) Reading https://pypi.org/simple/ Download error on https://pypi.org/simple/: [Errno -2] Name or service not known -- Some packages may not be found! No local packages or working download links found for vcrpy<2 error: Could not find suitable distribution for Requirement.parse('vcrpy<2') This needs to get discussed with upstream. https://github.com/vmware/pyvmomi/issues/735
Created attachment 1636081 [details] python-pyvmomi-spec proposal please review and explain why explicit Requires has no effect
because it is: vcrpy<2 and we have 2.1.0
(In reply to Miro Hrončok from comment #3) > because it is: vcrpy<2 and we have 2.1.0 That's clear to me. But I'm explicitly truncating requirements.txt incl. vcrpy version.
It doesn't reproduce for me: + /usr/bin/python3 setup.py test running test WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox. running egg_info writing pyvmomi.egg-info/PKG-INFO writing dependency_links to pyvmomi.egg-info/dependency_links.txt writing requirements to pyvmomi.egg-info/requires.txt writing top-level names to pyvmomi.egg-info/top_level.txt reading manifest file 'pyvmomi.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'pyvmomi.egg-info/SOURCES.txt' running build_ext /builddir/build/BUILD/pyvmomi-6.7.3/pyVmomi/Version.py:26: SyntaxWarning: "is" with a literal. Did you mean "=="? if isLegacy or ns is "": test_iso8601_set_datetime (tests.test_iso8601.Iso8601Tests) ... /builddir/build/BUILD/pyvmomi-6.7.3/pyVim/connect.py:641: ResourceWarning: unclosed <socket.socket fd=3, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)> tree = __GetElementTree(protocol, server, port, ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.8/site-packages/vcr/stubs/__init__.py:367: ResourceWarning: unclosed <socket.socket fd=3, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)> super(VCRConnection, self).__setattr__(name, value) ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.8/site-packages/vcr/stubs/__init__.py:367: ResourceWarning: unclosed <socket.socket fd=4, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)> super(VCRConnection, self).__setattr__(name, value) ResourceWarning: Enable tracemalloc to get the object allocation traceback ok test_vm_config_iso8601 (tests.test_iso8601.Iso8601Tests) ... /builddir/build/BUILD/pyvmomi-6.7.3/pyVim/connect.py:641: ResourceWarning: unclosed <socket.socket fd=4, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)> tree = __GetElementTree(protocol, server, port, ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.8/site-packages/vcr/stubs/__init__.py:367: ResourceWarning: unclosed <socket.socket fd=5, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)> super(VCRConnection, self).__setattr__(name, value) ResourceWarning: Enable tracemalloc to get the object allocation traceback ok test_request_context_serializer_global (tests.test_serializer.SerializerTests) ... /builddir/build/BUILD/pyvmomi-6.7.3/tests/test_serializer.py:109: ResourceWarning: unclosed <socket.socket fd=4, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)> self._base_serialize_test(soap_creator, request_matcher) ResourceWarning: Enable tracemalloc to get the object allocation traceback ok test_request_context_serializer_instance (tests.test_serializer.SerializerTests) ... /builddir/build/BUILD/pyvmomi-6.7.3/tests/test_serializer.py:100: ResourceWarning: unclosed <socket.socket fd=4, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)> self._base_serialize_test(soap_creator, request_matcher) ResourceWarning: Enable tracemalloc to get the object allocation traceback ok test_serialize_float (tests.test_serializer.SerializerTests) ... ok test_serialize_integer (tests.test_serializer.SerializerTests) ... ok test_serialize_object (tests.test_serializer.SerializerTests) ... ok test_serialize_unicode (tests.test_serializer.SerializerTests) ... ok test_simple_request_serializer (tests.test_serializer.SerializerTests) ... /builddir/build/BUILD/pyvmomi-6.7.3/tests/test_serializer.py:93: ResourceWarning: unclosed <socket.socket fd=4, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)> self._base_serialize_test(soap_creator, self._body_request_matcher) ResourceWarning: Enable tracemalloc to get the object allocation traceback ok test_vm_nic_data (tests.test_virtual_machine_object.VirtualMachineTests) ... /usr/lib/python3.8/site-packages/vcr/stubs/__init__.py:367: ResourceWarning: unclosed <socket.socket fd=6, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)> super(VCRConnection, self).__setattr__(name, value) ResourceWarning: Enable tracemalloc to get the object allocation traceback ok test_basic_connection (tests.test_connect.ConnectionTests) ... /usr/lib/python3.8/site-packages/vcr/stubs/__init__.py:367: ResourceWarning: unclosed <socket.socket fd=7, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)> super(VCRConnection, self).__setattr__(name, value) ResourceWarning: Enable tracemalloc to get the object allocation traceback ok test_basic_connection_bad_password (tests.test_connect.ConnectionTests) ... /usr/lib64/python3.8/traceback.py:220: ResourceWarning: unclosed <socket.socket fd=8, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)> tb.tb_frame.clear() ResourceWarning: Enable tracemalloc to get the object allocation traceback ok test_disconnect_on_no_connection (tests.test_connect.ConnectionTests) ... ok test_http_proxy (tests.test_connect.ConnectionTests) ... /usr/lib/python3.8/site-packages/vcr/cassette.py:117: ResourceWarning: unclosed <socket.socket fd=7, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)> return function(*args, **kwargs) ResourceWarning: Enable tracemalloc to get the object allocation traceback ok test_http_proxy_with_cert_file (tests.test_connect.ConnectionTests) ... /usr/lib64/python3.8/unittest/mock.py:2042: ResourceWarning: unclosed <socket.socket fd=4, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)> setattr(_type, entry, MagicProxy(entry, self)) ResourceWarning: Enable tracemalloc to get the object allocation traceback ok test_smart_connection (tests.test_connect.ConnectionTests) ... ok test_ssl_tunnel (tests.test_connect.ConnectionTests) ... ok test_ssl_tunnel_http_failure (tests.test_connect.ConnectionTests) ... ok test_sspi_connection (tests.test_connect.ConnectionTests) ... /usr/lib64/python3.8/site-packages/yaml/nodes.py:38: ResourceWarning: unclosed <socket.socket fd=6, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)> self.tag = tag ResourceWarning: Enable tracemalloc to get the object allocation traceback ok test_json_datacenter_explode (tests.test_json.JSONTests) ... /builddir/build/BUILD/pyvmomi-6.7.3/pyVim/connect.py:641: ResourceWarning: unclosed <socket.socket fd=7, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)> tree = __GetElementTree(protocol, server, port, ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.8/site-packages/vcr/stubs/__init__.py:367: ResourceWarning: unclosed <socket.socket fd=8, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)> super(VCRConnection, self).__setattr__(name, value) ResourceWarning: Enable tracemalloc to get the object allocation traceback /builddir/build/BUILD/pyvmomi-6.7.3/pyVmomi/VmomiSupport.py:625: ResourceWarning: unclosed <socket.socket fd=6, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)> for info in self._GetPropertyList(): ResourceWarning: Enable tracemalloc to get the object allocation traceback ok test_json_datastore_explode (tests.test_json.JSONTests) ... /builddir/build/BUILD/pyvmomi-6.7.3/pyVim/connect.py:641: ResourceWarning: unclosed <socket.socket fd=6, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)> tree = __GetElementTree(protocol, server, port, ResourceWarning: Enable tracemalloc to get the object allocation traceback ok test_json_host_explode (tests.test_json.JSONTests) ... /usr/lib/python3.8/site-packages/vcr/stubs/__init__.py:367: ResourceWarning: unclosed <socket.socket fd=9, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)> super(VCRConnection, self).__setattr__(name, value) ResourceWarning: Enable tracemalloc to get the object allocation traceback /builddir/build/BUILD/pyvmomi-6.7.3/pyVmomi/VmomiSupport.py:656: ResourceWarning: unclosed <socket.socket fd=3, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)> result = [info for info in cls._propList ResourceWarning: Enable tracemalloc to get the object allocation traceback /builddir/build/BUILD/pyvmomi-6.7.3/pyVmomi/VmomiSupport.py:656: ResourceWarning: unclosed <socket.socket fd=5, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)> result = [info for info in cls._propList ResourceWarning: Enable tracemalloc to get the object allocation traceback /builddir/build/BUILD/pyvmomi-6.7.3/pyVmomi/VmomiSupport.py:656: ResourceWarning: unclosed <socket.socket fd=4, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)> result = [info for info in cls._propList ResourceWarning: Enable tracemalloc to get the object allocation traceback ok test_json_network_explode (tests.test_json.JSONTests) ... ok test_json_vm_explode_default (tests.test_json.JSONTests) ... ok test_json_vm_explode_objs_match (tests.test_json.JSONTests) ... ok test_json_vm_explode_strip_dynamic (tests.test_json.JSONTests) ... /usr/lib/python3.8/site-packages/vcr/stubs/__init__.py:367: ResourceWarning: unclosed <socket.socket fd=10, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)> super(VCRConnection, self).__setattr__(name, value) ResourceWarning: Enable tracemalloc to get the object allocation traceback ok test_json_vm_explode_type_match (tests.test_json.JSONTests) ... /usr/lib/python3.8/site-packages/vcr/stubs/__init__.py:367: ResourceWarning: unclosed <socket.socket fd=11, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)> super(VCRConnection, self).__setattr__(name, value) ResourceWarning: Enable tracemalloc to get the object allocation traceback ok test_basic_container_view (tests.test_container_view.ContainerViewTests) ... /builddir/build/BUILD/pyvmomi-6.7.3/pyVim/connect.py:641: ResourceWarning: unclosed <socket.socket fd=11, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)> tree = __GetElementTree(protocol, server, port, ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.8/site-packages/vcr/stubs/__init__.py:367: ResourceWarning: unclosed <socket.socket fd=12, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)> super(VCRConnection, self).__setattr__(name, value) ResourceWarning: Enable tracemalloc to get the object allocation traceback ok test_root_folder_parent (tests.test_managed_object.ManagedObjectTests) ... /builddir/build/BUILD/pyvmomi-6.7.3/pyVim/connect.py:641: ResourceWarning: unclosed <socket.socket fd=12, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)> tree = __GetElementTree(protocol, server, port, ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.8/site-packages/vcr/stubs/__init__.py:367: ResourceWarning: unclosed <socket.socket fd=13, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)> super(VCRConnection, self).__setattr__(name, value) ResourceWarning: Enable tracemalloc to get the object allocation traceback ok test_invoke_method_login_session_exception (tests.test_vim_session_oriented_stub.SoapAdapterTests) ... ok test_pbm_check_compatibility (tests.test_pbm_check_compatibility.PBMTests) ... /builddir/build/BUILD/pyvmomi-6.7.3/pyVmomi/VmomiSupport.py:512: ResourceWarning: unclosed <socket.socket fd=12, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)> return self._stub.InvokeMethod(self, info, args) ResourceWarning: Enable tracemalloc to get the object allocation traceback ok ---------------------------------------------------------------------- Ran 31 tests in 3.884s OK + RPM_EC=0 ++ jobs -p + exit 0
(In reply to Miro Hrončok from comment #5) > It doesn't reproduce for me: … Then it seems to be an issue related to my local mock environment. No idea.
No. Did you verify correct dependencies? I fail to find both request and six.
I am afraid i don't understand the question. I have downloaded the specfile, the sources, and crated a SRPM with rpmbuilds -bs. I've built the SRPM in rawhide mock. It built.
https://koji.fedoraproject.org/koji/taskinfo?taskID=38997098
https://bugzilla.redhat.com/show_bug.cgi?id=1770851#c3
(In reply to Miro Hrončok from comment #9) > https://koji.fedoraproject.org/koji/taskinfo?taskID=38997098 Nothing about six neither requests: Provides: python-pyvmomi = 6.7.3-3.fc32 python3-pyvim python3-pyvmomi = 6.7.3-3.fc32 python3.8dist(pyvmomi) = 6.7.3 python3dist(pyvmomi) = 6.7.3 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: python(abi) = 3.8 Obsoletes: python-pyvmomi < 6.7.3-3.fc32
$ rpm -qp --requires python3-pyvmomi-6.7.3-3.fc32.noarch.rpm python(abi) = 3.8 python3-requests python3-six rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(PayloadIsZstd) <= 5.4.18-1
(In reply to Miro Hrončok from comment #12) > $ rpm -qp --requires python3-pyvmomi-6.7.3-3.fc32.noarch.rpm > python(abi) = 3.8 > python3-requests > python3-six > rpmlib(CompressedFileNames) <= 3.0.4-1 > rpmlib(FileDigests) <= 4.6.0-1 > rpmlib(PartialHardlinkSets) <= 4.0.4-1 > rpmlib(PayloadFilesHavePrefix) <= 4.0-1 > rpmlib(PayloadIsZstd) <= 5.4.18-1 Thanks. Then it seems to be a bug within build.log.