Giter Club home page Giter Club logo

Comments (2)

Carglglz avatar Carglglz commented on June 15, 2024

Are you sure you are using last version from master repo?, upydev: 0.3.2
I cannot reproduce this.

With laptop wifi off:

upydev put -f test_file.txt
Uploading file test_file.txt...
op:put, host:192.168.1.53, port:8266, passwd:********.
test_file.txt -> /test_file.txt
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.7/bin/upytool", line 385, in <module>
    main()
  File "/Library/Frameworks/Python.framework/Versions/3.7/bin/upytool", line 363, in main
    s.connect(addr)
OSError: [Errno 51] Network is unreachable

With wifi on and device off:
It hangs for a while and then timeouts.

upydev put -f test_file.txt
Uploading file test_file.txt...
op:put, host:192.168.1.53, port:8266, passwd:********.
test_file.txt -> /test_file.txt
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.7/bin/upytool", line 385, in <module>
    main()
  File "/Library/Frameworks/Python.framework/Versions/3.7/bin/upytool", line 363, in main
    s.connect(addr)
TimeoutError: [Errno 60] Operation timed out

With WebREPL connected and trying the command in another terminal window just hangs and the WebREPL shows this:

Concurrent WebREPL connection from ('192.168.1.67', 55865) rejected

The code which was fixed in commit b973fdbcf is this section

file_uploaded = subprocess.call(shlex.split(copyfile_str))
    if file_uploaded == 0:
        print('File Uploaded!')

This should prevent the message if the return code is not zero (which should happen if there is any error)

So it will be nice if you can write the steps to reproduce the error 👍 .

from upydev.

stsdc avatar stsdc commented on June 15, 2024

My bad! pip version used. sorry 😬

from upydev.

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.