Comments (2)
Hi Zirou,
Is the file from which you run your programme named pynput.py? In that case
Python may have difficulties finding the actual pynput package.
Try renaming your main file to something else, like pynput-test.py. if that
doesn't help, please verify that pynput has been successfully installed.
On 18 Sep 2016 03:49, "Zirou" [email protected] wrote:
hi guy i'm issue to import lib pynput in my linux, my issue pass to use
basic code our site.from pynput.keyboard import Key, Listener
def on_press(key):
print('{0} pressed'.format(key))def on_release(key):
print('{0} release'.format(key))
if key == Key.esc:
# Stop listener
return FalseCollect events until released
with Listener(on_press=on_press, on_release=on_release) as listener:
listener.join()The problem is:
/usr/bin/python3.5 /home/zirou/hk/programacao/python/python_3.5/mouseclick/pynput.py
Traceback (most recent call last):
File "/home/zirou/hk/programacao/python/python_3.5/mouseclick/pynput.py", line 1, in
from pynput.keyboard import Key, Listener
File "/home/zirou/hk/programacao/python/python_3.5/mouseclick/pynput.py", line 1, in
from pynput.keyboard import Key, Listener
ImportError: No module named 'pynput.keyboard'; 'pynput' is not a packageIf you can help me I will be grateful, thank you
sorry my english.—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#1, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAjOY6rl2eHT_8gnKR7ZExFZDvJaL6Ebks5qrJirgaJpZM4J_xNZ
.
from pynput.
hi moses-palmer,
Thank you very much my problema was with you informed, "Is the file from which you run your programme named pynput.py? In that case
Python may have difficulties finding the actual pynput package."
I rename the file the is problem go solved. Thank you.
from pynput.
Related Issues (20)
- Keyboardtracking CTRL + "second_key" doesn't output "second_key"
- pynput not detecting media keys on kde plasma wayland HOT 1
- Type method crashes on cyrillic characters HOT 1
- Suppress mouse move not working when using parsec HOT 1
- mouse listener example for win32_event_filter HOT 1
- Script Continues Rapid Clicking Despite Mouse Button Release (is_pressed Functionality Issue) HOT 6
- Press cmd_r and release with cmd pressed will produce two presses instead of press + release HOT 3
- Can this be used in Micropython? HOT 5
- Get the original pressed key HOT 1
- The Numpad numbers does not work in HotKeys.
- pynput types ">" instead of "|" HOT 1
- Need to sync keyboard lock keys
- AttributeError: record_create_context HOT 5
- capslock crshed on macOS HOT 2
- lazy imports cause a KeyError HOT 4
- Cannot install on linux Ubuntu (depends on pywin32) HOT 2
- name 'keyboard' is not defined HOT 1
- Additional keys can still trigger events HOT 2
- Missing 1.7.7 tarball on PyPI
- How can I suppress/disable the left click or right click, or any specific key HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pynput.