GithubHelp home page GithubHelp logo

Comments (3)

gcbsumid avatar gcbsumid commented on May 29, 2024 1

Python version: 3.7.9
Unity Version: 2020.3.12f1
OS: Windows 10

To repro the bug, you can attempt to upload file using the get_upload() from transaction_uploader.py on Windows. Though I did not try uploading a small file, I assume it would hit the same issue. After installing the python arweave client, the following is good enough to repro the issue:

`
from arweave.arweave_lib import Wallet, Transaction
from arweave.transaction_uploader import get_uploader

wallet = Wallet(jwk_file)

with open("my_mahoosive_file.dat", "rb", buffering=0) as file_handler:
tx = Transaction(wallet, file_handler=file_handler, file_path="/some/path/my_mahoosive_file.dat")
tx.add_tag('Content-Type', 'application/dat')
tx.sign()

uploader = get_uploader(tx, file_handler)

while not uploader.is_complete:
    uploader.upload_chunk()

    logger.info("{}% complete, {}/{}".format(
        uploader.pct_complete, uploader.uploaded_chunks, uploader.total_chunks
    ))

`

I've also created a PR, as requested. Please review when possible.

from arweave-python-client.

MikeHibbert avatar MikeHibbert commented on May 29, 2024

Ideally you could describe how to reproduce the bug and exactly where it is you've inserted this code?

Even better would be if you created a branch and submitted a pull request that we could integrate with our code quickly and you would gain contributor status too!

from arweave-python-client.

MikeHibbert avatar MikeHibbert commented on May 29, 2024

Thanks for the help and the PR, I've merged it in

from arweave-python-client.

Related Issues (18)

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.