Re: [pyusb-users] pyusb1 picks wrong driver on Windows. Asking for help

2016-08-24 Thread Hermann Hamann
 

Hi Jeff,

I have opened an issue on this topic. Please read it and try to falsify or verfy my thesis.

I will not be back to my mailbox before september, so you have ample time.


So long

Hermann

 




--
___
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users


Re: [pyusb-users] pyusb1 picks wrong driver on Windows. Asking for help

2016-08-23 Thread Jeffrey Nichols


On 8/23/2016 5:23 AM, Hermann Hamann wrote:

Hi, thank you
you control, which is one of the reasons why everyone

Well, why then the library search? It is completely superfluous if I 
fix anything at installation.

 Sincerely
Hermann
I believe the automatic backend selection is to make scripts that run on 
only your computer simpler and interactive python shells more 
convenient. For anything that's going to be run on other people's 
computers you should definitely be specifying the backend. Moreover, you 
should be altering the PATH so you know which dll is being used.


So yes, in *your* application it is superfluous. It is convenient for 
other sorts of situations, though.


Jeff
--
___
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users


Re: [pyusb-users] pyusb1 picks wrong driver on Windows. Asking for help

2016-08-23 Thread Hermann Hamann

 

Hi, thank you



 







Well, why then the library search? It is completely superfluous if I fix anything at installation.
 Sincerely

Hermann





--
___
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users


Re: [pyusb-users] pyusb1 picks wrong driver on Windows. Asking for help

2016-08-20 Thread Jeffrey Nichols
Your real problem is that you don't know beforehand which driver your 
device will be using. If you're doing the driver install as part of an 
installer (e.g. using wdi-simple.exe) or instructing your users to use 
zadig.exe then you should already know which driver has been installed. 
I would say it's highly unusual to not know the driver for a device you 
control, which is one of the reasons why everyone has rejected the 
registry idea.


And since you'll know which driver has been installed, you'll know which 
backend to use.


You can include a libusb dll with your program and add its directory to 
the front of the PATH, like so:


os.environ['PATH'] = get_main_dir() + ';' + os.environ['PATH']

Which will guarantee that you're using the DLL you think you are.

P.S. all these can be put together nicely with cx_freeze and inno setup 
to create a "real program" for your users.


Best Regards,
Jeff

On 8/20/2016 5:19 AM, Hermann Hamann wrote:

Hi
>  ..and debug the real problem
What is my real problem?
H.H.


--


___
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users


--
___
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users


Re: [pyusb-users] pyusb1 picks wrong driver on Windows. Asking for help

2016-08-20 Thread Hermann Hamann



Hi

>  ..and debug the real problem
What is my real problem?

H.H.




--
___
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users


Re: [pyusb-users] pyusb1 picks wrong driver on Windows. Asking for help

2016-08-18 Thread Hermann Hamann







Hi Chris,



Yes.

 



Re: [pyusb-users] pyusb1 picks wrong driver on Windows. Asking for help

2016-08-17 Thread chris clark
On Wed, Aug 17, 2016 at 12:31 AM, Hermann Hamann 
wrote:

> Hi
> < would you mind opening a issue?
> I will do so, but it may take some time.
> I have absolutely no background in Windows and there will be a lot of
> googling before
> I can present hard facts.
>
> Therefore I ask the Window gurus among the users to answer me some
> questions:
> 1. What is the registry for?
> 2. Is it valid programming style to disregard registry entries?
> 3. Has anyone succesfully used a non registered driver?
>

Can you clarify #3? I've always had to install the driver, is that what you
mean by registered?

I've some rough notes on Windows usage at
https://bitbucket.org/clach04/coldtears_clock/wiki/Windows

On creating issues, it is worth creating it as a place holder and
incrementally adding details when you have them.

Chris
--
___
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users


Re: [pyusb-users] pyusb1 picks wrong driver on Windows. Asking for help

2016-08-17 Thread Hermann Hamann



Hi

< would you mind opening a issue?

I will do so, but it may take some time.

I have absolutely no background in Windows and there will be a lot of googling before

I can present hard facts.

 

Therefore I ask the Window gurus among the users to answer me some questions:

1. What is the registry for?

2. Is it valid programming style to disregard registry entries?

3. Has anyone succesfully used a non registered driver?

 

Thank you in advance

Hermann Hamann

 




--
___
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users