After I do ssh to the Bela, I got the error "TypeError: unsupported operand type(s) for -=: 'Retry' and 'int'" after pip install, can I get some help? Thanks!

You get that after you ssh? Without trying to run any command? What did you pip install? Can you post a screenshot?

Sure, so I uninstalled pip and try to reinstall pip. Here is what I did:

root@bela:~# sudo apt-get install python-pip
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  gir1.2-glib-2.0 libdbus-glib-1-2 libgirepository-1.0-1 libpython-all-dev python-all python-all-dev python-cffi-backend python-crypto
  python-cryptography python-dbus python-enum34 python-gi python-idna python-ipaddress python-keyring python-keyrings.alt python-pyasn1
  python-secretstorage python-six python-wheel python-xdg
Suggested packages:
  python-crypto-dbg python-crypto-doc python-cryptography-doc python-cryptography-vectors python-dbus-dbg python-dbus-doc python-enum34-doc
  python-gi-cairo gnome-keyring libkf5wallet-bin gir1.2-gnomekeyring-1.0 python-fs python-gdata python-kde4 python-keyczar doc-base
  python-secretstorage-doc
The following NEW packages will be installed:
  gir1.2-glib-2.0 libdbus-glib-1-2 libgirepository-1.0-1 libpython-all-dev python-all python-all-dev python-cffi-backend python-crypto
  python-cryptography python-dbus python-enum34 python-gi python-idna python-ipaddress python-keyring python-keyrings.alt python-pip
  python-pyasn1 python-secretstorage python-six python-wheel python-xdg
0 upgraded, 22 newly installed, 0 to remove and 1 not upgraded.
Need to get 2081 kB of archives.
After this operation, 7373 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Err:1 http://httpredir.debian.org/debian stretch/main armhf libgirepository-1.0-1 armhf 1.50.0-1+b1
  Temporary failure resolving 'httpredir.debian.org'
Err:2 http://httpredir.debian.org/debian stretch/main armhf gir1.2-glib-2.0 armhf 1.50.0-1+b1
  Temporary failure resolving 'httpredir.debian.org'
Err:3 http://httpredir.debian.org/debian stretch/main armhf libdbus-glib-1-2 armhf 0.108-2
  Temporary failure resolving 'httpredir.debian.org'
Err:4 http://httpredir.debian.org/debian stretch/main armhf libpython-all-dev armhf 2.7.13-2
  Temporary failure resolving 'httpredir.debian.org'
Err:5 http://httpredir.debian.org/debian stretch/main armhf python-all armhf 2.7.13-2
  Temporary failure resolving 'httpredir.debian.org'
Err:6 http://httpredir.debian.org/debian stretch/main armhf python-all-dev armhf 2.7.13-2
  Temporary failure resolving 'httpredir.debian.org'
Err:7 http://httpredir.debian.org/debian stretch/main armhf python-cffi-backend armhf 1.9.1-2
  Temporary failure resolving 'httpredir.debian.org'
Err:8 http://httpredir.debian.org/debian stretch/main armhf python-crypto armhf 2.6.1-7
  Temporary failure resolving 'httpredir.debian.org'
Err:9 http://httpredir.debian.org/debian stretch/main armhf python-enum34 all 1.1.6-1
  Temporary failure resolving 'httpredir.debian.org'
Err:10 http://httpredir.debian.org/debian stretch/main armhf python-idna all 2.2-1
  Temporary failure resolving 'httpredir.debian.org'
Err:11 http://httpredir.debian.org/debian stretch/main armhf python-ipaddress all 1.0.17-1
  Temporary failure resolving 'httpredir.debian.org'
Err:12 http://httpredir.debian.org/debian stretch/main armhf python-pyasn1 all 0.1.9-2
  Temporary failure resolving 'httpredir.debian.org'
Err:13 http://httpredir.debian.org/debian stretch/main armhf python-six all 1.10.0-3
  Temporary failure resolving 'httpredir.debian.org'
Err:14 http://httpredir.debian.org/debian stretch/main armhf python-cryptography armhf 1.7.1-3
  Temporary failure resolving 'httpredir.debian.org'
Err:15 http://httpredir.debian.org/debian stretch/main armhf python-dbus armhf 1.2.4-1+b1
  Temporary failure resolving 'httpredir.debian.org'
Err:16 http://httpredir.debian.org/debian stretch/main armhf python-gi armhf 3.22.0-2
  Temporary failure resolving 'httpredir.debian.org'
Err:17 http://httpredir.debian.org/debian stretch/main armhf python-secretstorage all 2.3.1-2
  Temporary failure resolving 'httpredir.debian.org'
Err:18 http://httpredir.debian.org/debian stretch/main armhf python-keyring all 10.1-1
  Temporary failure resolving 'httpredir.debian.org'
Err:19 http://httpredir.debian.org/debian stretch/main armhf python-keyrings.alt all 1.3-1
  Temporary failure resolving 'httpredir.debian.org'
Err:20 http://httpredir.debian.org/debian stretch/main armhf python-pip all 9.0.1-2
  Temporary failure resolving 'httpredir.debian.org'
Err:21 http://httpredir.debian.org/debian stretch/main armhf python-wheel all 0.29.0-2
  Temporary failure resolving 'httpredir.debian.org'
Err:22 http://httpredir.debian.org/debian stretch/main armhf python-xdg all 0.25-4
  Temporary failure resolving 'httpredir.debian.org'
E: Failed to fetch http://httpredir.debian.org/debian/pool/main/g/gobject-introspection/libgirepository-1.0-1_1.50.0-1+b1_armhf.deb  Temporary failure resolving 'httpredir.debian.org'
E: Failed to fetch http://httpredir.debian.org/debian/pool/main/g/gobject-introspection/gir1.2-glib-2.0_1.50.0-1+b1_armhf.deb  Temporary failure resolving 'httpredir.debian.org'
E: Failed to fetch http://httpredir.debian.org/debian/pool/main/d/dbus-glib/libdbus-glib-1-2_0.108-2_armhf.deb  Temporary failure resolving 'httpredir.debian.org'
E: Failed to fetch http://httpredir.debian.org/debian/pool/main/p/python-defaults/libpython-all-dev_2.7.13-2_armhf.deb  Temporary failure resolving 'httpredir.debian.org'
E: Failed to fetch http://httpredir.debian.org/debian/pool/main/p/python-defaults/python-all_2.7.13-2_armhf.deb  Temporary failure resolving 'httpredir.debian.org'
E: Failed to fetch http://httpredir.debian.org/debian/pool/main/p/python-defaults/python-all-dev_2.7.13-2_armhf.deb  Temporary failure resolving 'httpredir.debian.org'
E: Failed to fetch http://httpredir.debian.org/debian/pool/main/p/python-cffi/python-cffi-backend_1.9.1-2_armhf.deb  Temporary failure resolving 'httpredir.debian.org'
E: Failed to fetch http://httpredir.debian.org/debian/pool/main/p/python-crypto/python-crypto_2.6.1-7_armhf.deb  Temporary failure resolving 'httpredir.debian.org'
E: Failed to fetch http://httpredir.debian.org/debian/pool/main/e/enum34/python-enum34_1.1.6-1_all.deb  Temporary failure resolving 'httpredir.debian.org'
E: Failed to fetch http://httpredir.debian.org/debian/pool/main/p/python-idna/python-idna_2.2-1_all.deb  Temporary failure resolving 'httpredir.debian.org'
E: Failed to fetch http://httpredir.debian.org/debian/pool/main/p/python-ipaddress/python-ipaddress_1.0.17-1_all.deb  Temporary failure resolving 'httpredir.debian.org'
E: Failed to fetch http://httpredir.debian.org/debian/pool/main/p/pyasn1/python-pyasn1_0.1.9-2_all.deb  Temporary failure resolving 'httpredir.debian.org'
E: Failed to fetch http://httpredir.debian.org/debian/pool/main/s/six/python-six_1.10.0-3_all.deb  Temporary failure resolving 'httpredir.debian.org'
E: Failed to fetch http://httpredir.debian.org/debian/pool/main/p/python-cryptography/python-cryptography_1.7.1-3_armhf.deb  Temporary failure resolving 'httpredir.debian.org'
E: Failed to fetch http://httpredir.debian.org/debian/pool/main/d/dbus-python/python-dbus_1.2.4-1+b1_armhf.deb  Temporary failure resolving 'httpredir.debian.org'
E: Failed to fetch http://httpredir.debian.org/debian/pool/main/p/pygobject/python-gi_3.22.0-2_armhf.deb  Temporary failure resolving 'httpredir.debian.org'
E: Failed to fetch http://httpredir.debian.org/debian/pool/main/p/python-secretstorage/python-secretstorage_2.3.1-2_all.deb  Temporary failure resolving 'httpredir.debian.org'
E: Failed to fetch http://httpredir.debian.org/debian/pool/main/p/python-keyring/python-keyring_10.1-1_all.deb  Temporary failure resolving 'httpredir.debian.org'
E: Failed to fetch http://httpredir.debian.org/debian/pool/main/k/keyrings.alt/python-keyrings.alt_1.3-1_all.deb  Temporary failure resolving 'httpredir.debian.org'
E: Failed to fetch http://httpredir.debian.org/debian/pool/main/p/python-pip/python-pip_9.0.1-2_all.deb  Temporary failure resolving 'httpredir.debian.org'
E: Failed to fetch http://httpredir.debian.org/debian/pool/main/w/wheel/python-wheel_0.29.0-2_all.deb  Temporary failure resolving 'httpredir.debian.org'
E: Failed to fetch http://httpredir.debian.org/debian/pool/main/p/pyxdg/python-xdg_0.25-4_all.deb  Temporary failure resolving 'httpredir.debian.org'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
root@bela:~# 

Also, I can't do apt-get update, like this

root@bela:~# sudo apt-get update
Err:1 http://httpredir.debian.org/debian stretch InRelease
  Temporary failure resolving 'httpredir.debian.org'
Err:2 https://deb.nodesource.com/node_8.x stretch InRelease
  Could not resolve host: deb.nodesource.com
Reading package lists... Done
W: Failed to fetch http://httpredir.debian.org/debian/dists/stretch/InRelease  Temporary failure resolving 'httpredir.debian.org'
W: Failed to fetch https://deb.nodesource.com/node_8.x/dists/stretch/InRelease  Could not resolve host: deb.nodesource.com
W: Some index files failed to download. They have been ignored, or old ones used instead.

Sad 🙁

hmmm I guess your board is not connected to the internet? On the latest images (v0.3.6 and above), python-pip is already there. Still, in order to use it you need to connect the board to the internet ...

  • SYY replied to this.

    giuliomoro Could you pleaseeee tell me how to let Bela connect to the Wifi? I spent a long time here...

    root@bela:~# sudo apt-get update
    Ign:2 https://deb.nodesource.com/node_7.x stretch InRelease
    Ign:1 http://httpredir.debian.org/debian stretch InRelease
    Err:4 https://deb.nodesource.com/node_7.x stretch Release
      server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
    Err:3 http://httpredir.debian.org/debian stretch Release
      server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
    Reading package lists... Done
    E: The repository 'https://deb.nodesource.com/node_7.x stretch Release' does no longer have a Release file.
    N: Updating from such a repository can't be done securely, and is therefore disabled by default.
    N: See apt-secure(8) manpage for repository creation and user configuration details.
    E: The repository 'http://httpredir.debian.org/debian stretch Release' does no longer have a Release file.
    N: Updating from such a repository can't be done securely, and is therefore disabled by default.
    N: See apt-secure(8) manpage for repository creation and user configuration details.
    root@bela:~# 

    I tried the below link, but there is no < wlanX >... I'm in school, there is much wifi here. For the setup of the driver, I tried! But I got ERROR by giving "make ARCH=arm && make ARCH=arm install"
    https://github.com/BelaPlatform/Bela/wiki/Connecting-Bela-to-wifi

    I tried the network cable also... Since there is no GUI, how to find the wifi and enter the password? Thank you sooooooooo much...

    Also, I tried to scp my local file to the Bela, but it requires the password, I didn't set any password on Bela, what's the default password? Thanks.

    If you plug in an ethernet cable from your home router, then I think you should be online automatically, without need for a password.

    Plug in the ethernet cable and wait a few seconds
    Run ip a to see the status of the network interfaces. If eth0 doesn't have an IP address, try dhclient eth0. Wait a few seconds more and run ip a again.

    When you finally get an IP address , try to ping an IP address on the internet, e.g.: ping 8.8.8.8. if this works, then try ping google.com.
    If this doesn't work for you, please post here the results of the commands above.

    • SYY replied to this.