<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Buona sera.<div class=""><br class=""></div><div class="">Ho trovato questo modulo per la gestione della tastiera e volevo provarlo.</div><div class=""><div class=""><a href="https://pypi.python.org/pypi/keyboard/" class="">https://pypi.python.org/pypi/keyboard/</a></div><div class=""><br class=""></div><div class="">Lo installo:</div><div class=""><br class=""></div><div class="">pip install keyboard</div><div class=""><br class=""></div><div class="">Apro l’interprete e lo importo. Sotto Win 10, tutto ok, sotto MacOS 10.13, ottengo:</div><div class=""><br class=""></div><div class="">Python 3.6.2 (v3.6.2:5fd33b5926, Jul 16 2017, 20:11:06) </div><div class="">[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin</div><div class="">Type "help", "copyright", "credits" or "license" for more information.</div><div class="">>>> import keyboard</div><div class=""><div class=""><br class=""></div><div class="">Traceback (most recent call last):</div><div class=""> File "<stdin>", line 1, in <module></div><div class=""> File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/keyboard/__init__.py", line 103, in <module></div><div class=""> from. import _darwinkeyboard as _os_keyboard</div><div class=""> File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/keyboard/_darwinkeyboard.py", line 3, in <module></div><div class=""> import Quartz</div><div class="">ModuleNotFoundError: No module named 'Quartz'</div><div class="">>>> </div></div><div class="">Allora torno al terminale e scrivo:</div><div class=""><br class=""></div><div class="">pip install quartz</div><div class=""><br class=""></div><div class="">E questo è l’output:</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""> Complete output from command python setup.py egg_info:</div><div class=""> Traceback (most recent call last):</div><div class=""> File "<string>", line 1, in <module></div><div class=""> File "/private/var/folders/kv/1q4mr4rn5wjcnx1fxq7vxz5r0000gp/T/pip-build-0Mj631/quartz/setup.py", line 35, in <module></div><div class=""> install_requires=read_dependencies("requirements.txt"),</div><div class=""> File "/private/var/folders/kv/1q4mr4rn5wjcnx1fxq7vxz5r0000gp/T/pip-build-0Mj631/quartz/setup.py", line 7, in read_dependencies</div><div class=""> with open(req_file) as req:</div><div class=""> IOError: [Errno 2] No such file or directory: 'requirements.txt'</div><div class=""> </div><div class=""> ----------------------------------------</div><div class="">Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/kv/1q4mr4rn5wjcnx1fxq7vxz5r0000gp/T/pip-build-0Mj631/quartz/</div><div class="">iMac27-di-Gabriele-Battaglia-2:py Gabrimac$ </div><div class=""><br class=""></div><div class="">Non capisco di che dipendenza abbia bisogno.</div><div class="">Qualcuno mi aiuta a far luce? Ricordo che sono un principiante e la mia conoscenza di O.S. e di python è superficiale.</div><div class="">Grazie.</div><div class="">Gabriele.</div><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">—<div class="">Namasté!</div><div class="">Sent from my iMac27. (Libero)</div></div>
</div>
<br class=""></div></body></html>