-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
As the README notes, this works up to Python 3.5. Trying with 3.6.3 (the default in recent Ubuntu) yields sadness:
(testpynfsn) jturner@jturner-desktop:/tmp$ pynfsn member jturner accounts
Traceback (most recent call last):
File "/tmp/testpynfsn/bin/pynfsn", line 7, in <module>
from nfsn.cli import main
File "/tmp/testpynfsn/lib/python3.6/site-packages/nfsn/__init__.py", line 2, in <module>
from .nfsnbeanbag import NfsnBeanBag
File "/tmp/testpynfsn/lib/python3.6/site-packages/nfsn/nfsnbeanbag.py", line 7, in <module>
class NfsnBeanBag(BeanBag):
TypeError: __class__ set to <class 'nfsn.nfsnbeanbag.NfsnBeanBagBase'> defining 'NfsnBeanBag' as <class 'nfsn.nfsnbeanbag.NfsnBeanBag'>
I'm not sufficiently up to scratch on Python to offer a fix. A workaround is to install a local Python 3.5.4. On Ubuntu this works for me:
# Install Python 3.5.4
apt install libssl-dev openssl
cd /tmp
curl -OJ https://www.python.org/ftp/python/3.5.4/Python-3.5.4.tar.xz
tar xf Python-3.5.4.tar.xz
cd Python-3.5.4/
./configure --prefix=$HOME/python3
make altinstall # Per https://askubuntu.com/questions/682869/how-do-i-install-a-different-python-version-using-apt-get61249593366
cd /tmp
virtualenv --python=$HOME/python3/bin/python3.5 virtualenv
source virtualenv/bin/activate
pip install python-nfsn
pynfsn member jturner accounts # Now works!
Metadata
Metadata
Assignees
Labels
No labels