Closed prankousky closed 5 years ago
When you say import i3ipc
, it's importing the file in that directory /home/me/test/i3ipc.py
, not the library.
Rename that file and it should work.
Read this:
https://docs.python.org/3/tutorial/modules.html#the-module-search-path
Doh! How could I not have thought of that. Thank you so much, works perfectly now.
Hi,
I just tried to learn
i3ipc
a bit. I downloaded it fromPyPi
and copied the exampleapps-on-ws-init.py
. My version isPython 3.7.3
on an up-to-date Archlinux.When I run the script, I get
I am just beginning to learn python, so I don't exactly know what this means... considering that this is an official example file, the attribute
Connection
should work. Is my python setup messed up or what could cause this?Thanks for your support :)