jonhadfield / python-hosts

a hosts file manager library written in python
MIT License
125 stars 33 forks source link

ImportError: cannot import name 'Hosts' version 0.4.7 #29

Closed MareoRaft closed 4 years ago

MareoRaft commented 4 years ago

I am using Python 3.6 and python_hosts 0.4.7.

When running my script, I get the traceback:

Traceback (most recent call last):
  File "./install.py", line 9, in <module>
    import main
  File "/home/matt/dotfiles/.scripts/main.py", line 8, in <module>
    from python_hosts import Hosts
ImportError: cannot import name 'Hosts'

I have also tried this with version 0.4.5, and I get the same error. It successfully detects the presence of the python_hosts installation, but gives me this import error. My PYTHONPATH is empty. I'm really not sure what is causing this error. This is the same error as reported in #23 , but on a different version. I think it is being caused by something else.

github-actions[bot] commented 4 years ago

Stale issue message