awslabs / amazon-kinesis-client-python

Amazon Kinesis Client Library for Python
Apache License 2.0
369 stars 223 forks source link

No such file or directory: 'pom.xml' Error when installing 2.1.0 #205

Closed jritter-nice closed 1 year ago

jritter-nice commented 1 year ago

The following error occurs when installing amazon-kclpy 2.1.0 using python 3.10 and pip 21.2.4

Failed to build amazon-kclpy
Installing collected packages: mypy-extensions, charset-normalizer, boto, argparse, urllib3, typing-extensions, six, pyyaml, packaging, jmespath, idna, certifi, amazon-kclpy, typing-inspect, requests, python-dateutil, marshmallow, marshmallow-enum, botocore, s3transfer, dataclasses-json, boto3
  Running setup.py install for amazon-kclpy: started
  Running setup.py install for amazon-kclpy: finished with status 'error'
  error: subprocess-exited-with-error

  × Running setup.py install for amazon-kclpy did not run successfully.
  │ exit code: 1
  ╰─> [8 lines of output]
      /usr/local/lib/python3.10/site-packages/setuptools/dist.py:771: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
        warnings.warn(
      /usr/local/lib/python3.10/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
        warnings.warn(
      running install
      /usr/local/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      error: [Errno 2] No such file or directory: 'pom.xml'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> amazon-kclp
zengyu714 commented 1 year ago

Hi @jamesritter15, thanks for reporting this issue, it appears that the pom.xml file is missing from the dist because it is not included in the MANIFEST, this issue should be fixed by this week

zengyu714 commented 1 year ago

Resolving the thread as the new patch version has been release to PyPI https://pypi.org/project/amazon-kclpy/2.1.1/, let us know if there are any new issues, thanks.