Coder Social home page Coder Social logo

bdk-python's People

Contributors

afilini avatar kornpow avatar thunderbiscuit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bdk-python's Issues

AttributeError: partially initialized module 'bdkpython' has no attribute 'DatabaseConfig'

Hi There,

I am currently trying to run the below code:

import bdkpython as bdk

descriptor = "wpkh(tprv8ZgxMBicQKsPcx5nBGsR63Pe8KnRUqmbJNENAfGftF3yuXoMMoVJJcYeUw5eVkm9WBPjWYt6HMWYJNesB5HaNVBaFc1M6dRjWSYnmewUMYy/84h/1h/0h/0/*)"
config = bdk.DatabaseConfig.MEMORY("")
wallet = bdk.OfflineWallet(descriptor, bdk.Network.TESTNET, config)
address = wallet.get_new_address()

print(f"New BIP84 testnet address:  {address}")

And getting this error:

Traceback (most recent call last):
  File "/Users/praveen/Documents/code/sandbox/bitcoinprograms/bdkpython.py", line 1, in <module>
    import bdkpython as bdk
  File "/Users/praveen/Documents/code/sandbox/bitcoinprograms/bdkpython.py", line 4, in <module>
    config = bdk.DatabaseConfig.MEMORY("")
AttributeError: partially initialized module 'bdkpython' has no attribute 'DatabaseConfig' (most likely due to a circular import)

Do you think I am making some mistake here or there is something incorrect in the code I have written?
Thanks

Generate.sh script returns an error

After searching a bit, apparently realpath doesn't work inside scripts? Not sure why this is not throwing off the script; the wheel built fine on my end and my tests also worked.

generate.sh: line 5: zsh: command not found: realpath

It's failing yet still storing the right variable inside SCRIPT_DIR:

bdk-python on master [$!] via ๐Ÿ
โฏ SCRIPT_DIR=$(dirname "$(realpath $0)")
zsh: command not found: realpath

bdk-python on master [$!] via ๐Ÿ
โฏ echo $SCRIPT_DIR
.

Package naming convention doesn't work for all macOS versions

Documenting some issues here.

A current wheel name example for macOS is bdkpython-0.0.5-cp38-cp38-macosx_11_0_universal2.whl.

I have access to a mac with macOS version 10.15 (x86_64) and when I attempt to install the wheel from PyPI, I get the message that pip could not find a version that satisfies the requirement.

When I download the wheel manually and change its name to bdkpython-0.0.5-cp38-cp38-macosx_10_15_universal2.whl, pip installs it correctly. One of the issues I have at the moment is I don't know the way to name it in such a way as to declare it more "general", say something like "any macOS 10+". The name needs to match exactly my version of the OS macosx_10_15 otherwise pip returns bdkpython-0.0.5-cp39... is not a supported wheel on this platform.

I do not get this error when installing on macOS 12.2 funny enough.

Issues regarding environment setup in VsCode environment in Windows Machine

Screenshot (907)
Screenshot (908)

The issues I am facing with regards to each of the above images pasted above are:

  1. Kindly have a look at the terminal of VsCode. I had followed the readme thoroughly.
bash generate.sh     
generate.sh: line 2: $'\r': command not found
: invalid option nameset: pipefail
  1. Upon git cloning the repo, the sub-folder bdk-ffi is completely empty

Device Specifications :

    Processor	      Intel(R) Core(TM) i5-9300H CPU @ 2.40GHz 2.40 GHz
    Installed RAM	      8.00 GB (7.84 GB usable)
    System type	      64-bit operating system, x64-based processor

Windows Specifications :

    Edition	               Windows 11 Home Single Language
    Version	               21H2
    OS build	               22000.527
    Experience	       Windows Feature Experience Pack 1000.22000.527.0

Update 1 : python -m tox is already broken so that can be overlooked in the above images as of now. We as team will fix it!

Update 2 : python3 was not present therefore ran it with just python

python setup.py -v bdist_wheel 
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: invalid command 'bdist_wheel'

Migrate to bitcoindevkit organization

I have managed to get testers for all 3 platforms and the library (mostly) works. Still some issues on macOS, but we can work on those as we go.

@notmandatory if you think it's ready, I'm happy to transfer ownership of the repo to the bitcoindevkit org.

Tests are broken

The command python -m tox is now broken because of the following error:

ModuleNotFoundError: No module named 'setuptools_rust'

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.