paramiko sshclient error
SW INFO WINDOWS:
windows 11
pycharm 2021.3.2
python 3.9.9
paramiko 2.9.2
coba.py
#!/usr/bin/python3
import paramiko
def main():
ssh = paramiko.SSHClient()
if __name__ == "__main__":
main()
ERROR
partially initialized module 'paramiko' has no attribute 'SSHClient'
I don't that problem when I run that script with
linux python 3.10
VisualStudioCode windows
What I miss in pycharm
Please sign in to leave a comment.
SOLVED
I need to rename ipaddress.py in my folder
pycharm venv conflict with that filename as shown in console
File "D:\TES\mikrotik\venv\lib\site-packages\cryptography\x509\extensions.py", line 9, in <module>
import ipaddress
File "D:\TES\cisco2\ipaddress.py", line 2, in <module>
client = paramiko.SSHClient()
AttributeError: partially initialized module 'paramiko' has no attribute 'SSHClient' (most likely due to a circular import)
D:\TES\cisco2>dir
15/02/2022 10:02 130 coba.py
15/02/2022 10:28 318 coba2.py
14/02/2022 22:34 307 ipaddress.py
15/02/2022 06:25 562 services.py
14/02/2022 16:40 <DIR> venv
15/02/2022 05:50 <DIR> __pycache__
4 File(s) 1.317 bytes
QUESTIONS
1. how to prevent pycharm not reading library inside cisco2 folder but inside cisco2\venv
tq