On Sun, 7 May 2023 10:42:07 -0400 Go Canes <letsgonhlcanes0@xxxxxxxxx> wrote: > On Sun, May 7, 2023 at 10:16 AM stan via users > <users@xxxxxxxxxxxxxxxxxxxxxxx> wrote: > > > > On Sun, 7 May 2023 08:46:26 -0400 > > Robert Moskowitz <rgm@xxxxxxxxxxxxxxx> wrote: > > > > from /usr/share/doc/python3-asn1/README.rst > > of the fedora package python3-asn1 > > python3-asn1 != pyasn1 which is what the OP is trying to use as per > the guidance from his colleague. I thought he had the fedora packages installed, at least that is what was in his last message. He shouldn't be messing around with 3rd party libraries if he does. Just use the fedora package. grep asn1 dnf.lst |grep -i python python3-pyasn1.noarch 0.4.8-12.fc38 @fedora <----- looks like old compatibility version, used as pyasn1, python2? python3-pyasn1-modules.noarch 0.4.8-12.fc38 @fedora python-asn1-doc.noarch 2.6.0-2.fc38 fedora python-pyasn1-doc.noarch 0.4.8-12.fc38 fedora python3-asn1.noarch 2.6.0-2.fc38 fedora <----- current version, asn1, python3 python3-asn1crypto.noarch 1.5.1-4.fc38 The READM also had this in it: I wonder if the code he has received is actually python2, and he actually needs future installed so it doesn't break. Dependencies ============== Python-ASN1 relies on `Python-Future <https://python-future.org>`_ for Python 2 and 3 compatibility. To install Python-Future: .. code-block:: sh pip install future He should install the python3-future fedora package if he doesn't have it already installed. Or, if he has python2.7 installed, run it as python2 /usr/bin/python2 [program name] Regardless, the code he is looking at has to have some definition of an encoder. Maybe his colleague sent him an earlier version, and he is now using a version that has this instead, from asn1 import encoder as asn1_enc _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue