Giter Club home page Giter Club logo

binance-chain-python's Issues

Install failed on Mac Catalina

hi @lmacken
thank you your job. I got failed when install this is full log. Can you take a look?

2019-12-28T15:42:12,970 Collecting secp256k1
2019-12-28T15:42:12,970   Created temporary directory: /private/var/folders/md/xlm2b58s5wv6sm85x0rdz_w80000gn/T/pip-unpack-sw08vl8e
2019-12-28T15:42:12,973   Using cached https://files.pythonhosted.org/packages/52/62/d7bf3829e126e517e253d2e22a63511c54bbaac34d7ddea316cde040fc49/secp256k1-0.13.2.tar.gz
2019-12-28T15:42:13,030   Added secp256k1 from https://files.pythonhosted.org/packages/52/62/d7bf3829e126e517e253d2e22a63511c54bbaac34d7ddea316cde040fc49/secp256k1-0.13.2.tar.gz#sha256=a3b43e02d321c09eafa769a6fc2c156f555cab3a7db62175ef2fd21e16cdf20c (from binancechain) to build tracker '/private/var/folders/md/xlm2b58s5wv6sm85x0rdz_w80000gn/T/pip-req-tracker-0at2ti4n'
2019-12-28T15:42:13,030     Running setup.py (path:/private/var/folders/md/xlm2b58s5wv6sm85x0rdz_w80000gn/T/pip-install-tsvmriys/secp256k1/setup.py) egg_info for package secp256k1
2019-12-28T15:42:13,030     Running command python setup.py egg_info
2019-12-28T15:42:13,231     0.29.2
2019-12-28T15:42:13,247     WARNING: The wheel package is not available.
2019-12-28T15:42:14,818       ERROR: Command errored out with exit status 1:
2019-12-28T15:42:14,818        command: /Users/antory/.pyenv/versions/3.6.9/envs/p36env/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/md/xlm2b58s5wv6sm85x0rdz_w80000gn/T/pip-wheel-elu7jahg/pytest-runner/setup.py'"'"'; __file__='"'"'/private/var/folders/md/xlm2b58s5wv6sm85x0rdz_w80000gn/T/pip-wheel-elu7jahg/pytest-runner/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/md/xlm2b58s5wv6sm85x0rdz_w80000gn/T/pip-wheel-s6jn9ykh
2019-12-28T15:42:14,818            cwd: /private/var/folders/md/xlm2b58s5wv6sm85x0rdz_w80000gn/T/pip-wheel-elu7jahg/pytest-runner/
2019-12-28T15:42:14,818       Complete output (7 lines):
2019-12-28T15:42:14,818       WARNING: The wheel package is not available.
2019-12-28T15:42:14,818       usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
2019-12-28T15:42:14,818          or: setup.py --help [cmd1 cmd2 ...]
2019-12-28T15:42:14,818          or: setup.py --help-commands
2019-12-28T15:42:14,818          or: setup.py cmd --help

2019-12-28T15:42:14,818       error: invalid command 'bdist_wheel'
2019-12-28T15:42:14,818       ----------------------------------------
2019-12-28T15:42:14,818       ERROR: Failed building wheel for pytest-runner
2019-12-28T15:42:15,049     ERROR: Failed to build one or more wheels
2019-12-28T15:42:15,092     Traceback (most recent call last):
2019-12-28T15:42:15,093       File "/Users/antory/.pyenv/versions/3.6.9/envs/p36env/lib/python3.6/site-packages/setuptools/installer.py", line 128, in fetch_build_egg
2019-12-28T15:42:15,093         subprocess.check_call(cmd)
2019-12-28T15:42:15,093       File "/Users/antory/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 311, in check_call
2019-12-28T15:42:15,093         raise CalledProcessError(retcode, cmd)
2019-12-28T15:42:15,093     subprocess.CalledProcessError: Command '['/Users/antory/.pyenv/versions/3.6.9/envs/p36env/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/var/folders/md/xlm2b58s5wv6sm85x0rdz_w80000gn/T/tmpx_d5cujc', '--quiet', 'pytest-runner==2.6.2']' returned non-zero exit status 1.

2019-12-28T15:42:15,093     During handling of the above exception, another exception occurred:

2019-12-28T15:42:15,093     Traceback (most recent call last):
2019-12-28T15:42:15,093       File "<string>", line 1, in <module>
2019-12-28T15:42:15,093       File "/private/var/folders/md/xlm2b58s5wv6sm85x0rdz_w80000gn/T/pip-install-tsvmriys/secp256k1/setup.py", line 295, in <module>
2019-12-28T15:42:15,093         "Topic :: Security :: Cryptography"
2019-12-28T15:42:15,093       File "/Users/antory/.pyenv/versions/3.6.9/envs/p36env/lib/python3.6/site-packages/setuptools/__init__.py", line 144, in setup
2019-12-28T15:42:15,093         _install_setup_requires(attrs)
2019-12-28T15:42:15,094       File "/Users/antory/.pyenv/versions/3.6.9/envs/p36env/lib/python3.6/site-packages/setuptools/__init__.py", line 139, in _install_setup_requires
2019-12-28T15:42:15,094         dist.fetch_build_eggs(dist.setup_requires)
2019-12-28T15:42:15,094       File "/Users/antory/.pyenv/versions/3.6.9/envs/p36env/lib/python3.6/site-packages/setuptools/dist.py", line 721, in fetch_build_eggs
2019-12-28T15:42:15,094         replace_conflicting=True,
2019-12-28T15:42:15,094       File "/Users/antory/.pyenv/versions/3.6.9/envs/p36env/lib/python3.6/site-packages/pkg_resources/__init__.py", line 782, in resolve
2019-12-28T15:42:15,094         replace_conflicting=replace_conflicting
2019-12-28T15:42:15,094       File "/Users/antory/.pyenv/versions/3.6.9/envs/p36env/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1065, in best_match
2019-12-28T15:42:15,094         return self.obtain(req, installer)
2019-12-28T15:42:15,094       File "/Users/antory/.pyenv/versions/3.6.9/envs/p36env/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1077, in obtain
2019-12-28T15:42:15,094         return installer(requirement)
2019-12-28T15:42:15,094       File "/Users/antory/.pyenv/versions/3.6.9/envs/p36env/lib/python3.6/site-packages/setuptools/dist.py", line 777, in fetch_build_egg
2019-12-28T15:42:15,094         return fetch_build_egg(self, req)
2019-12-28T15:42:15,094       File "/Users/antory/.pyenv/versions/3.6.9/envs/p36env/lib/python3.6/site-packages/setuptools/installer.py", line 130, in fetch_build_egg
2019-12-28T15:42:15,094         raise DistutilsError(str(e))
2019-12-28T15:42:15,094     distutils.errors.DistutilsError: Command '['/Users/antory/.pyenv/versions/3.6.9/envs/p36env/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/var/folders/md/xlm2b58s5wv6sm85x0rdz_w80000gn/T/tmpx_d5cujc', '--quiet', 'pytest-runner==2.6.2']' returned non-zero exit status 1.
2019-12-28T15:42:15,115 Cleaning up...
2019-12-28T15:42:15,115   Removing source in /private/var/folders/md/xlm2b58s5wv6sm85x0rdz_w80000gn/T/pip-install-tsvmriys/secp256k1
2019-12-28T15:42:15,138 Removed secp256k1 from https://files.pythonhosted.org/packages/52/62/d7bf3829e126e517e253d2e22a63511c54bbaac34d7ddea316cde040fc49/secp256k1-0.13.2.tar.gz#sha256=a3b43e02d321c09eafa769a6fc2c156f555cab3a7db62175ef2fd21e16cdf20c (from binancechain) from build tracker '/private/var/folders/md/xlm2b58s5wv6sm85x0rdz_w80000gn/T/pip-req-tracker-0at2ti4n'
2019-12-28T15:42:15,139 Removed build tracker '/private/var/folders/md/xlm2b58s5wv6sm85x0rdz_w80000gn/T/pip-req-tracker-0at2ti4n'
2019-12-28T15:42:15,139 ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
2019-12-28T15:42:15,139 Exception information:
2019-12-28T15:42:15,139 Traceback (most recent call last):
2019-12-28T15:42:15,139   File "/Users/antory/.pyenv/versions/3.6.9/envs/p36env/lib/python3.6/site-packages/pip/_internal/cli/base_command.py", line 153, in _main
2019-12-28T15:42:15,139     status = self.run(options, args)
2019-12-28T15:42:15,139   File "/Users/antory/.pyenv/versions/3.6.9/envs/p36env/lib/python3.6/site-packages/pip/_internal/commands/install.py", line 382, in run
2019-12-28T15:42:15,139     resolver.resolve(requirement_set)
2019-12-28T15:42:15,139   File "/Users/antory/.pyenv/versions/3.6.9/envs/p36env/lib/python3.6/site-packages/pip/_internal/legacy_resolve.py", line 201, in resolve
2019-12-28T15:42:15,139     self._resolve_one(requirement_set, req)
2019-12-28T15:42:15,139   File "/Users/antory/.pyenv/versions/3.6.9/envs/p36env/lib/python3.6/site-packages/pip/_internal/legacy_resolve.py", line 365, in _resolve_one
2019-12-28T15:42:15,139     abstract_dist = self._get_abstract_dist_for(req_to_install)
2019-12-28T15:42:15,139   File "/Users/antory/.pyenv/versions/3.6.9/envs/p36env/lib/python3.6/site-packages/pip/_internal/legacy_resolve.py", line 313, in _get_abstract_dist_for
2019-12-28T15:42:15,139     req, self.session, self.finder, self.require_hashes
2019-12-28T15:42:15,139   File "/Users/antory/.pyenv/versions/3.6.9/envs/p36env/lib/python3.6/site-packages/pip/_internal/operations/prepare.py", line 224, in prepare_linked_requirement
2019-12-28T15:42:15,139     req, self.req_tracker, finder, self.build_isolation,
2019-12-28T15:42:15,139   File "/Users/antory/.pyenv/versions/3.6.9/envs/p36env/lib/python3.6/site-packages/pip/_internal/operations/prepare.py", line 49, in _get_prepared_distribution
2019-12-28T15:42:15,139     abstract_dist.prepare_distribution_metadata(finder, build_isolation)
2019-12-28T15:42:15,139   File "/Users/antory/.pyenv/versions/3.6.9/envs/p36env/lib/python3.6/site-packages/pip/_internal/distributions/source/legacy.py", line 39, in prepare_distribution_metadata
2019-12-28T15:42:15,139     self.req.prepare_metadata()
2019-12-28T15:42:15,139   File "/Users/antory/.pyenv/versions/3.6.9/envs/p36env/lib/python3.6/site-packages/pip/_internal/req/req_install.py", line 563, in prepare_metadata
2019-12-28T15:42:15,139     self.metadata_directory = metadata_generator(self)
2019-12-28T15:42:15,139   File "/Users/antory/.pyenv/versions/3.6.9/envs/p36env/lib/python3.6/site-packages/pip/_internal/operations/generate_metadata.py", line 124, in _generate_metadata_legacy
2019-12-28T15:42:15,139     command_desc='python setup.py egg_info',
2019-12-28T15:42:15,139   File "/Users/antory/.pyenv/versions/3.6.9/envs/p36env/lib/python3.6/site-packages/pip/_internal/utils/subprocess.py", line 242, in call_subprocess
2019-12-28T15:42:15,139     raise InstallationError(exc_msg)
2019-12-28T15:42:15,139 pip._internal.exceptions.InstallationError: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.


The order was "successfully" created in the code with the transaction hash, but not found on https://explorer.binance.org/tx/

I created a new order with simple code:

import asyncio
from binancechain import HTTPClient, Wallet, Transaction, BinanceChainException, Ordertype, Side, Timeinforce, WebSocket
memo = 'xxxx xxxx xxx'
pw = 'abcd'
myChainclient = HTTPClient(testnet=False)
myWallet = Wallet.wallet_from_mnemonic(words=memo, password=pw)
Transaction = Transaction(wallet=myWallet, client=myChainclient)

async def ordproc():
new_order_txid = await Transaction.create_new_order(symbol='BNB_BUSD-DB1', side=Side.BUY,
ordertype=Ordertype.LIMIT, price= 456.2, quantity= 0.002, timeInForce=Timeinforce.GTE)
print(new_order_txid)
event_loop = asyncio.new_event_loop()
asyncio.set_event_loop(event_loop)
event_loop.run_until_complete(ordproc())

########
result: I got a response below:
CHAIN ID Binance-Chain-Tigris
[{'code': 0, 'hash': 'E0F621C2472C367544598FAF7BDE6C9B8B2A7A2FD09EA1BB8FD251D08A8731CC', 'log': '', 'ok': True}]

But I can't found the hash on real Binance Chain main netword with https://explorer.binance.org/tx/E0F621C2472C367544598FAF7BDE6C9B8B2A7A2FD09EA1BB8FD251D08A8731CC
I used mainnet, not testnet.
I checked many times after running for a few hours.

Please show me my mistake.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.