Skip to content

python -m pip install visionone-filesecurity failed with python 3.13.x #29

@dg4101

Description

@dg4101

python -m pip install visionone-filesecurity failed when the python version is 3.13

We tested with 3.13.0 and got followign errors

Collecting visionone-filesecurity
  Downloading visionone_filesecurity-1.4.0-py3-none-any.whl.metadata (16 kB)
Collecting grpcio==1.60.0 (from visionone-filesecurity)
  Downloading grpcio-1.60.0.tar.gz (24.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 24.8/24.8 MB 12.9 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'error'
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [36 lines of output]
      /tmp/pip-install-vj6g0zaj/grpcio_ea78db1a55a9491caef1433febc904f0/setup.py:40: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
        import pkg_resources
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
          exec(compile('''
          ~~~~^^^^^^^^^^^^
          # This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          ...<31 lines>...
          exec(compile(setup_py_code, filename, "exec"))
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          ''' % ('/tmp/pip-install-vj6g0zaj/grpcio_ea78db1a55a9491caef1433febc904f0/setup.py',), "<pip-setuptools-caller>", "exec"))
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-vj6g0zaj/grpcio_ea78db1a55a9491caef1433febc904f0/setup.py", line 289, in <module>
          if check_linker_need_libatomic():
             ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
        File "/tmp/pip-install-vj6g0zaj/grpcio_ea78db1a55a9491caef1433febc904f0/setup.py", line 223, in check_linker_need_libatomic
          cpp_test = subprocess.Popen(
              cxx + ["-x", "c++", "-std=c++14", "-"],
          ...<2 lines>...
              stderr=PIPE,
          )
        File "/usr/local/lib/python3.13/subprocess.py", line 1036, in __init__
          self._execute_child(args, executable, preexec_fn, close_fds,
          ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                              pass_fds, cwd, env,
                              ^^^^^^^^^^^^^^^^^^^
          ...<5 lines>...
                              gid, gids, uid, umask,
                              ^^^^^^^^^^^^^^^^^^^^^^
                              start_new_session, process_group)
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/usr/local/lib/python3.13/subprocess.py", line 1966, in _execute_child
          raise child_exception_type(errno_num, err_msg, err_filename)
      FileNotFoundError: [Errno 2] No such file or directory: 'c++'
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

With the version 3.12.x it worked as below

Collecting visionone-filesecurity
  Downloading visionone_filesecurity-1.4.0-py3-none-any.whl.metadata (16 kB)
Collecting grpcio==1.60.0 (from visionone-filesecurity)
  Downloading grpcio-1.60.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (4.0 kB)
Collecting protobuf==4.25.1 (from visionone-filesecurity)
  Downloading protobuf-4.25.1-cp37-abi3-manylinux2014_x86_64.whl.metadata (541 bytes)
Downloading visionone_filesecurity-1.4.0-py3-none-any.whl (16 kB)
Downloading grpcio-1.60.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.3 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.3/5.3 MB 43.9 MB/s eta 0:00:00
Downloading protobuf-4.25.1-cp37-abi3-manylinux2014_x86_64.whl (294 kB)
Installing collected packages: protobuf, grpcio, visionone-filesecurity
Successfully installed grpcio-1.60.0 protobuf-4.25.1 visionone-filesecurity-1.4.0

Could you please investiagate?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions