GithubHelp home page GithubHelp logo

Comments (14)

virtuald avatar virtuald commented on July 28, 2024

@Twinters007 this is the problem I was mentioning earlier

from robotpy-wpilib.

PeterJohnson avatar PeterJohnson commented on July 28, 2024

Why can't we just use pscp (and plink for running remote shell commands)?

from robotpy-wpilib.

virtuald avatar virtuald commented on July 28, 2024

Ha. I haven't used Windows in so long, that I forgot about those.

from robotpy-wpilib.

computer-whisperer avatar computer-whisperer commented on July 28, 2024

What about some form of rsync? I have found that scp can be rather inefficient when copying large numbers of small files, and when you are actively developing code for a robot, you may not need to transfer everything. Plus, I just did some tests with the wpilib library as an example, and scp took ~3 min to transfer to a remote server vs ~10 sec with rsync.

Also, here is a native python implementation of it: http://freecode.com/projects/pysync/

from robotpy-wpilib.

virtuald avatar virtuald commented on July 28, 2024

I have found using rsync on Windows is problematic. Also (and this surprised me a few months ago), it requires an rsync binary to be present on the remote machine.

from robotpy-wpilib.

computer-whisperer avatar computer-whisperer commented on July 28, 2024

Does the roborio have it pre-installed?

from robotpy-wpilib.

virtuald avatar virtuald commented on July 28, 2024

It does not.

from robotpy-wpilib.

PeterJohnson avatar PeterJohnson commented on July 28, 2024

The RoboRIO has tar and unzip. Why can't we zip/tar locally, scp the zip/tar file, and run the right remote command to unzip/untar? I would recommend tar as there's some options we can use to only update files that have later modification times.

from robotpy-wpilib.

PeterJohnson avatar PeterJohnson commented on July 28, 2024

For wpilib/hal, we should use the opkg package manager (uses .ipk files which are basically tgz files with a required package structure) to install them on the RoboRIO. For user programs, we can use tar or zip.

from robotpy-wpilib.

virtuald avatar virtuald commented on July 28, 2024

I think I disagree with that -- let's not do more packaging than we need to do. We already have python packages for wpilib/hal/et al. Why not distribute those as sdists, copy them to the robot, and run 'pip install foo.tar.gz' there? This will allow us to also have the installer do things like install utility libraries/etc without extra effort (#6).

Python 3.4 comes with pip preinstalled, so I assume that the python ipk has it.

from robotpy-wpilib.

PeterJohnson avatar PeterJohnson commented on July 28, 2024

Whoops, I forgot that we already had this discussion... been a long week. Concur that pip is fine to use for the libraries after Python is installed with an ipk.

Yes, pip is installed as part of the Python package.

from robotpy-wpilib.

virtuald avatar virtuald commented on July 28, 2024

Haha, I thought we had this discussion, but I too had forgotten.

from robotpy-wpilib.

PeterJohnson avatar PeterJohnson commented on July 28, 2024

Can this be closed? It looks like the install scripts use the putty tools on Windows.

from robotpy-wpilib.

virtuald avatar virtuald commented on July 28, 2024

Yes, thanks. They even work too, I tested it a few minutes ago.

from robotpy-wpilib.

Related Issues (20)

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.