Closed almj closed 2 years ago
hrmm. what version of python?
sj@radio01:~$ python --version
Python 2.7.17
sj@radio01:~$ python3 --version
Python 3.6.9
Got both
try making a virtualenv with python3 and activate that and try again. im guessing its because of py2
Sorry don't really know how, will try to google..
do which python3. that will show you where the binary for python executable is.
then run virtualenv -b /path/to/python3 .venv
source .venv/bin/activate
pip install aprsd
sj@radio01:~$ which python3
/usr/bin/python3
sj@radio01:~$ virtualenv -b /usr/bin/python3 .venv
Usage: virtualenv [OPTIONS] DEST_DIR
virtualenv: error: no such option: -b
I'm not good at this sorry...
my bad it's -p, not -b
ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/home/sj/.venv/lib/python3.6/site-packages/zipp.py'
Check the permissions.
Not my day
most likely dude to not sourcing the virtualenv you just created
py3=`which python3`
virtualenv -p $py3 .venv
source .venv/bin/activate
pip install aprsd
It can also be done this way. https://linuxize.com/post/how-to-create-python-virtual-environments-on-ubuntu-18-04/
python3 -m venv my-project-env
source my-project-env/bin/activate
pip install aprsd
sj@radio01:~$ python3 -m venv my-project-env
sj@radio01:~$ source my-project-env/bin/activate
(my-project-env) sj@radio01:~$ pip install aprsd
Collecting aprsd
Cache entry deserialization failed, entry ignored
Downloading https://files.pythonhosted.org/packages/17/7b/1e8b838fe40aed819b8a7d29ac80b650e2b3a974884826d1e134a7aa1598/aprsd-2.5.9-py2.py3-none-any.whl (358kB)
100% |████████████████████████████████| 368kB 4.2MB/s
Collecting cryptography==3.4.7 (from aprsd)
Cache entry deserialization failed, entry ignored
Downloading https://files.pythonhosted.org/packages/9b/77/461087a514d2e8ece1c975d8216bc03f7048e6090c5166bc34115afdaa53/cryptography-3.4.7.tar.gz (546kB)
100% |████████████████████████████████| 552kB 3.1MB/s
Complete output from command python setup.py egg_info:
=============================DEBUG ASSISTANCE==========================
If you are seeing an error here please try the following to
successfully install cryptography:
Upgrade to the latest pip and try again. This will fix errors for most
users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
=============================DEBUG ASSISTANCE==========================
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-73mvawae/cryptography/setup.py", line 14, in <module>
from setuptools_rust import RustExtension
ModuleNotFoundError: No module named 'setuptools_rust'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-73mvawae/cryptography/
try upgrading pip.
after sourcing your venv run pip install -U pip
YES! That worked! Thank you so much for the help @hemna!
Installed
pip install Werkzeug
But still the same issue. What can that be?