Troubles with library import
serjisa opened this issue · 4 comments
serjisa commented
Hi!
I installed cna via pip using the following command: pip3 install cna
There were no warnings or errors. But after it, I try to import this package and I get this:
>>> import cna
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/my_user/.local/lib/python3.6/site-packages/cna/__init__.py", line 1, in <module>
from . import tools as tl
File "/home/my_user/.local/lib/python3.6/site-packages/cna/tools/__init__.py", line 2, in <module>
from ._association import association
File "/home/my_user/.local/lib/python3.6/site-packages/cna/tools/_association.py", line 6, in <module>
import cna.tools._stats as stats
AttributeError: module 'cna' has no attribute 'tools'
What should I do to fix this bug? This problem doesn't reproduce on a different server with Python 3.7.5.
yakirr commented
Hi @serjisa, we're not sure why this error is happening. Could you send us the python version that's causing the difficulty? Thank you!
serjisa commented
It's Python 3.6.9
yakirr commented
Sergey,
We were able to reproduce this error with that python version. We'll look
into whether a bugfix is possible; in the meantime, it seems python 3.7 is
the way to go. Thank you for bringing this to our attention!
…On Fri, Nov 19, 2021 at 3:48 AM Sergey Isaev ***@***.***> wrote:
It's Python 3.6.9
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#8 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA4RHOIIT4VLEOJ76OBY6JLUMYFNPANCNFSM5IJBBZ2A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
yakirr commented
Sergey, we just uploaded a bugfix, it's cna version 0.1.3. Let us know if you have issues with it.