dc740 / AutoHotPy

AutoHotKey replacement using Incerception driver
GNU Lesser General Public License v3.0
59 stars 23 forks source link

Python 3: Queue import error #7

Closed yurri87 closed 5 years ago

yurri87 commented 5 years ago

Hi!

\AutoHotPy.py", line 103, in init self.kb_queue = Queue.Queue() AttributeError: 'function' object has no attribute 'Queue'

what could be the cause of the error?

lekary commented 5 years ago

I changed from "Queue.Queue" to "queue.Queue"

dc740 commented 5 years ago

I need to update the code. Queue (uppercase) was used back in python 2. I need to update the code for Python 3. And yes, changing it to lower case fixes it, since that will work in the newer python versions.

dc740 commented 5 years ago

I pushed the changes. Let me know if it doesn't work.

Python 2 is no longer supported in this project.