Skip to content

[BUG] ScriptChunk #11

@rachyrachyrach

Description

@rachyrachyrach

Bug Description

ScriptChunk wasn't found when trying to work with code in this file: /bsv/script/init.py
https://github.com/bitcoin-sv/py-sdk/blob/master/bsv/script/__init__.py

I had to add this for my import.
from bsv.script.script import ScriptChunk

Expected Behavior

I was expecting to add from bsv import ScriptChunk

Actual Behavior

python3 test_scriptchunk.py 
Traceback (most recent call last):
  File "/Users/rachael/github/bsv-transaction-bsv-sdk/test_scriptchunk.py", line 1, in <module>
    from bsv.script import Script, ScriptChunk
ImportError: cannot import name 'ScriptChunk' from 'bsv.script' (/Users/rachael/github/4chain-bsv-sdk/.venv/lib/python3.9/site-packages/bsv/script/__init__.py)

Environment

  • OS: MacOS
  • venv
  • pip 21.2.4 from /Users/rachael/github/4chain-bsv-sdk/.venv/lib/python3.9/site-packages/pip (python 3.9)
  • Python 3.9.6

Name: bsv-sdk
Version: 0.5.2
Summary: BSV BLOCKCHAIN | Software Development Kit for Python
Home-page: https://github.com/bitcoin-sv/py-sdk
Author: Aaron
Author-email: aaron@scrypt.io
License:
Location: /Users/rachael/github/4chain-bsv-sdk/.venv/lib/python3.9/site-packages
Requires: requests, coincurve, pycryptodomex
Required-by:
requirements.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions