jnweiger / led-name-badge-ls32

Upload tool for an led name tag with USB-HID interface
GNU General Public License v2.0
223 stars 81 forks source link

Error #19

Closed toddsantoro closed 4 years ago

toddsantoro commented 4 years ago

I am getting a error /usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python: can't open file './led-badge-11x44.py': [Errno 2] No such file or directory when running the Hello World! Example on OSX 10.14.6. Any idea whats going on?

jnweiger commented 4 years ago

No idea. Sorry. Seems you have installed a python interpreter, seems you have the python script, so why the interpreter cannot find the script, I cannot tell. Different folder?

toddsantoro commented 4 years ago

pip install pyhidapi DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support Requirement already satisfied: pyhidapi in /Users/xxxxxx/Library/Python/2.7/lib/python/site-packages (0.0.2)

s-light commented 4 years ago

try with pip3 install pyhidapi this way you 'force' to install for python3.

jnweiger commented 4 years ago

yes, when you prefix the script name with ./ then that means "take it from here" -- the current folder.

Todd Santoro notifications@github.com schrieb am Di., 10. Sep. 2019 15:03:

Do I need to be in the python folder to run the script?

Cheers,

Todd Santoro Sr. Software Engineer TSD

tel :: 305.699.3515 sms :: 305.699.3515 email :: todd@toddsantoro.com web :: toddsantoro.com dribbble: dribbble.com/toddsantoro skype :: toddsantoro007 rss :: toddsantoro.com/feed twitter :: @toddsantoro

On Sep 10, 2019, at 9:01 AM, Jürgen Weigert notifications@github.com wrote:

No idea. Sorry. Seems you have installed a python interpreter, seems you have the python script, so why the interpreter cannot find the script, I cannot tell. Different folder?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/jnweiger/led-name-badge-ls32/issues/19?email_source=notifications&email_token=AAMJUUJ2BZ4RKF5NWFGGPYDQI6LCBA5CNFSM4IUK7U6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6K7ZPY#issuecomment-529923263>, or mute the thread < https://github.com/notifications/unsubscribe-auth/AAMJUUIXCSQT4NGOSVBV2HDQI6LCBANCNFSM4IUK7U6A .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jnweiger/led-name-badge-ls32/issues/19?email_source=notifications&email_token=AAIOUQSHUDZMBMZBVZDXTTTQI6LJPA5CNFSM4IUK7U6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6LAAEY#issuecomment-529924115, or mute the thread https://github.com/notifications/unsubscribe-auth/AAIOUQT5RSENN37ZSFCPGP3QI6LJPANCNFSM4IUK7U6A .

toddsantoro commented 4 years ago

I installed it with pip3 and this is the locations of the install /usr/local/bin/hidapi_enum.py /usr/local/lib/python3.7/site-packages/pyhidapi-0.0.2.dist-info/ /usr/local/lib/python3.7/site-packages/pyhidapi/

toddsantoro commented 4 years ago

I am getting closer... I get this error now: ERROR: Need the pyhidapi or usb.core module. Please try pip install pyhidapi brew install hidapi

toddsantoro commented 4 years ago

I finally got it working. Thanks for the help and the code!!! This is my first intro to python and how things work.

Samplissimo commented 4 years ago

hi todd, how did you get this working? I have the same error: need the pyhidapi, but pyhidapi is installed -> djtrackmark@djtrackmark-Satellite-L300D:~/led-badge-44x11$ sudo -H pip install pyhidapi Requirement already satisfied: pyhidapi in /usr/local/lib/python2.7/dist-packages

toddsantoro commented 4 years ago

you need to run the command from the directory of the led-name-badge folder

jnweiger commented 4 years ago

@Samplissimo it seems your pip installed the pyhidapi module for python2 -- do you run the script with python2 or python3?

Samplissimo commented 4 years ago

Hello all, Yes, i am running it from the Led-Badge folder. Also i have the latest Python release and running the command with python 3. Nevermind, i am new to Linux and i see this will be difficult - i managed to program the Badge via Windows interface, Neverless thanks for your hints. Samplissimo

jnweiger commented 4 years ago

In this case you need pip3 install ... Linux shows a lot of its internal logic to the end user. I've improved the hints my script would print in the future. Thanks for the feedback!

Samplissimo notifications@github.com schrieb am Sa., 28. Dez. 2019 09:07:

Hello all, Yes, i am running it from the Led-Badge folder. Also i have the latest Python release and running the command with python 3. Nevermind, i am new to Linux and i see this will be difficult - i managed to program the Badge via Windows interface, Neverless thanks for your hints. Samplissimo

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jnweiger/led-name-badge-ls32/issues/19?email_source=notifications&email_token=AAIOUQXFVST37UAPG2EP7WTQ24CK5A5CNFSM4IUK7U6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHYE54Y#issuecomment-569396979, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIOUQUH5Q77QLNXT45I7Q3Q24CK5ANCNFSM4IUK7U6A .

cnorrick commented 1 year ago

you need to run the command from the directory of the led-name-badge folder

I know this is a very old thread... but where is this folder? I've searched high and low. I used the 'pip3 install pyhidapi' and the 'brew install hidapi' with success (I think). But I don't see the led-badge-44x11.py script anywhere. And running the Hello World command yields the same "No such file directory" error. I've tried to run it from various locations. Including the Python folder.

s-light commented 1 year ago

@cnorrick you now that you first have to download and unpack / clone this repository to some place on your computer? and inside this folder you have to use the commands...