Home Forums Software importing requests and traceback

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1957
    tisafa
    Participant

    Hi! I am hoping to import requests and traceback for a custom program (using flow cytometer counts from an external program). I was looking through the github to determine how modules are installed on the chibios (as these modules are already installed on the computer but cannot be found when I import them in app.py).

    I was comparing our setup.sh files to the one on github, which seems to have the pip installation for current modules (https://github.com/HarrisonSteel/ChiBio/blob/master/setup.sh), and ours looks quite different:

    #!/bin/bash
    set -euo pipefail

    cd dirname $0
    npm i
    if ! [ -d acorn/.git ]; then
    git clone https://github.com/c9/acorn
    fi
    pushd acorn
    git fetch origin
    git reset origin/master –hard
    npm i
    npm run build
    popd

    cp acorn/dist/* node_modules/acorn/dist

    node eslint.js

    I’m wondering whether adding these modules to setup.sh is the correct approach/am I looking at the wrong file. Also – if there is a simpler method to install new modules so that I don’t rerun setup.sh.

    Thanks!

    #1958
    tisafa
    Participant

    Having issues editing the original post, but I forgot to mention – I started looking into setup.sh after pip3 install requests on PuTTY didn’t work (after cd chibio). Looks like a network error, and trying ping 8.8.8.8 says network is unreachable – not sure if this is expected with chibio

    #1959
    harrison
    Keymaster

    What you are suggesting sounds broadly sensible.
    To make the pip iinstall work you need to do the instructions in the software setup document about sharing internet connection through USB so the beaglebone can directly access internet. Have you done this? If you CAN’T ping 8.8.8.8 or ping google.com then it is certainly not working. There is various troubleshooting available for this online (i.e. it is a generic beaglebone setup issue – not to do with ChiBio software itself).

    Then, yes, I would say you could either adjust the setup thing as you desire, or just manually go and install packages on the device. Unless you are going to be very often flashing the device it seems reasonable to do it by hand rather than faffing with automation…

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Log in/Register
Scroll to top