fmartingr / pyluxafor

Simple helper library and CLI to interact with luxafor products
MIT License
12 stars 2 forks source link

Errors while trying to install pyluxafor #11

Open magic-muschrum opened 3 years ago

magic-muschrum commented 3 years ago

Hi, very sorry to bother you with this "issue", since I strongly believe that I just screwed up by not doing sth or doing sth wrong, but I spent all afternoon trying to get this running, and I still get the same error.

I am currently on a Win8 system but wanted to actually use it on a MacOS later on and since I am not allowed to use the official software from Luxafor, due to http calls etc. I thought this python tool would suit me, in order to address the luxafor flag locally. So, I hoped (before I do things on the company's Mac) to get pyluxafor running through python, here on my Win8.

My Python skills are still in development, so I might just have missed sth important. I am running Python 3.7 over Visual Studio 2019. I do not have any other Luxafor software installed, as I think/hope that I do not need it, due to above specified reasons.

I tried to install all the necessary plugins and tool (screenshot) and also tried it without Visual Studio but I do not get around the error that tells me that cannot import name 'luxafor' from 'luxafor'.

When I try to import directly in the python CLI, as you detailed in "using as a library", I get the error message after lux = luxafor.Luxafor() -> NoBackendError.

I also googled these errors and tried to have pyusb and libusb dlls etc. installed/copied correctly.

So, if this is an "you cannot fix stupid" kind of question or go read more basic books on Python, etc. - please excuse me from taking your time - but maybe you have a hint or two for me, on how to get this running.

Thank you.

Sincerely magic-muschrum

Installed packages

Errormessage CLI

Errormessage No backend available

magic-muschrum commented 3 years ago

Hi, ok, I am sorry, now the luxa command worked and I figured out that I don't have to call luxafor.py. But now it says luxaflor flag not found. Is there a driver which I need to install?

fmartingr commented 3 years ago

Hey MagicMuschrum, no problem at all!

Can you try installing pyusb 1.1.1 (latest) on your environment and see if it works? I'm unsure why isn't in the requirements and only on the setup.py since I haven't working on this for a while now, but maybe the newer version is required.

I have no experience running python on windows either nor I have my luxafor to make tests anymore. So I can try to assist you to the best of my abilities but I can't make much testing myself :(

magic-muschrum commented 3 years ago

Hi, sorry that it took me so long to answer. Thank you for your kind answer. I updated to pyusb 1.1.1 and changed to the version in setup.py and reinstalled, but it did not change anything, meaning that "Luxafor flag not found" persists. I could update some other tools, but I doubt that it would change much. I guess I have to find a solution to make Windows recognize the flag.

PhysWiz314 commented 3 years ago

Since usb controls are limited to root, you need to use sudo in front of your luxa commands.