An error message occurred while running setup.py

import os
from setuptools import setup, find_packages

with open(
os.path.join(os.path.dirname(file), “requirements/common.txt”), “r”
) as fh:
requirements = fh.readlines()

NAME = “binance_futures_connector”
DESCRIPTION = “This is a lightweight library that works as a connector to Binance Futures public API.”
AUTHOR = “Futures”
URL = “https://github.com/binance/binance_futures_connector_python
VERSION = None

about = {}

with open(“README.md”, “r”) as fh:
about[“long_description”] = fh.read()

root = os.path.abspath(os.path.dirname(file))

if not VERSION:
with open(os.path.join(root, “binance”, “version.py”)) as f:
exec(f.read(), about)
else:
about[“version”] = VERSION

setup(
name=NAME,
version=about[“version”],
license=“MIT”,
description=DESCRIPTION,
long_description=about[“long_description”],
long_description_content_type=“text/markdown”,
AUTHOR=AUTHOR,
url=URL,
keywords=[“Binance futures”, “Public API”],
install_requires=[req for req in requirements],
packages=find_packages(exclude=(“tests”,)),
classifiers=[
“Intended Audience :: Developers”,
“Intended Audience :: Financial and Insurance Industry”,
“License :: OSI Approved :: MIT License”,
“Programming Language :: Python :: 3.7”,
“Programming Language :: Python :: 3.8”,
“Programming Language :: Python :: 3.9”,
“Programming Language :: Python :: 3.10”,
],
python_requires=">=3.7",
)

Warning (from warnings module):
File “D:\Program Files (x86)\Lib\site-packages\setuptools_distutils\dist.py”, line 264
warnings.warn(msg)
UserWarning: Unknown distribution option: ‘AUTHOR’
SystemExit: usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] …]
or: setup.py --help [cmd1 cmd2 …]
or: setup.py --help-commands
or: setup.py cmd --help

error: no commands supplied

The key has been filled in according to the requirements here

#!/usr/bin/env python
import logging
from binance.um_futures import UMFutures
from binance.lib.utils import config_logging
from binance.error import ClientError

config_logging(logging, logging.DEBUG)

HMAC authentication with API key and secret

key = “XXXXXXXXXXXXXXXXXXXXXXXXXXXXX”
secret = “XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX”

hmac_client = UMFutures(key=key, secret=secret)
logging.info(hmac_client.account(recvWindow=6000))

RSA authentication with RSA key

key = “XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX”
with open("/Users/john/private_key.pem", “r”) as f:
private_key = f.read()

rsa_client = UMFutures(key=key, private_key=private_key)

try:
response = rsa_client.account(recvWindow=6000)
logging.info(response)
except ClientError as error:
logging.error(
“Found error. status: {}, error code: {}, error message: {}”.format(
error.status_code, error.error_code, error.error_message
)
)

It works with postman, but it doesn’t work with python

could you please try to install it from pip?

pip install binance-futures-connector