sc1
1
Looking forward to getting started with sixfab, but ran into a bit of an unexpected roadblock.
Following it’s instructions attempting to install atcom via pip:
sudo pip3 install --no-cache-dir -U atcom
results in:
Any idea what this could be?
Python version: Python 3.7.3
Pip version: pip 18.1
cat /etc/os-release:
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
Thanks for any insight that can be provided
sc1
2
I’ll update if I manage to find a fix. In the mean time if there’s anything else I can add to help you help me. Let me know
sc1
3
I was able to fix this by upgrading pip.
For anyone interested, pip issue: TypeError: expected string or bytes-like object - When doing pip install, or upgrading pip. · Issue #11343 · pypa/pip · GitHub
And the fix:
curl https://bootstrap.pypa.io/get-pip.py
sudo python3 get-pip.py
sudo because the sixfab script uses sudo
when installing atcom
If you want to use the same version of pip without sudo then use the revised command:
curl https://bootstrap.pypa.io/get-pip.py
sudo python3 get-pip.py
python3 get-pip.py
But you’d be better off using a virtualenv for libs that don’t require sudo
1 Like
alper
4
I was having issues with installing python with ssl.
I had apply this first.
OpenSSL
Apache
11
1
cd /opt
2
sudo wget https://www.openssl.org/source/openssl-1.1.1q.tar.gz --no-check-certificate
3
sudo mkdir /opt/openssl
4
sudo tar xfvz openssl-1.1.1q.tar.gz --directory /opt/openssl
5
export LD_LIBRARY_PATH=/opt/openssl/lib
6
cd /opt/openssl/openssl-1.1.1q/
7
sudo ./config --prefix=/opt/openssl --openssldir=/opt/openssl/ssl
8
sudo make
9
sudo make test
10
sudo make install
11
sudo ln -s /usr/local/bin/openssl /usr/bin/openssl
Python 3.9.13
Apache
7
1
cd /usr/src
2
sudo wget https://www.python.org/ftp/python/3.9.13/Python-3.9.13.tgz
3
sudo tar xzf Python-3.9.13.tgz
4
cd /usr/src/Python-3.9.13
5
sudo CFLAGS=“-I/opt/openssl/include/” LDFLAGS=“${LDFLAGS} -Wl,-rpath=$LD_LIBRARY_PATH” ./configure --enable-optimizations --with-openssl=/opt/openssl
6
sudo make altinstall -j6
7
sudo ln -s /usr/local/bin/python3.9 /usr/bin/python3
pip3
Plain Text
2
1
sudo ln -s /usr/local/bin/pip3.9 /usr/bin/pip3
2
pip3 install --upgrade pip
Tested on Ubuntu 14.04.06