swayf / proxmoxer

python wrapper for Proxmox API v2 (https://pve.proxmox.com/pve-docs/api-viewer/index.html)
MIT License
156 stars 58 forks source link

ImportError: cannot import name ProxmoxAPI #50

Closed mleone87 closed 6 years ago

mleone87 commented 6 years ago

I've this error when I try to use proxmoxer

Tried on Debian 9 and Ubuntu 16.04

Package dependecies are installed


root@localhost:~# cat proxmoxer.py
from proxmoxer import ProxmoxAPI
proxmox = ProxmoxAPI('_my_ip_', user='root@pam',
                     password='***', verify_ssl=False)
Traceback (most recent call last):
   File "proxmoxer.py", line 1, in <module>
     from proxmoxer import ProxmoxAPI
   File "/root/proxmoxer.py", line 1, in <module>
     from proxmoxer import ProxmoxAPI
ImportError: cannot import name ProxmoxAPI

Any ideas?

ghost commented 6 years ago

Can you please post a 'pip -list'? Also what python version are you using?

I just installed it in a new pipenv with no issues. Im using Python 3.6 and used the below:

pip install proxmoxer requests paramiko

swayf commented 6 years ago

There is no additional info. I close this for now. Dont hesistate reopen it, if you still has the problem.