Forum

.disconnect() funct...
 
Notifications
Clear all

.disconnect() function does not exist?

5 Posts
2 Users
0 Likes
248 Views
Forum 1
(@jlobin)
Active Member
Joined: 7 months ago
Posts: 8
Topic starter  

I am sure that this is a new user type question, when I am connected via USB from Ubuntu to my Pico unit and running one of the example programs, the last Python command is 'mySolo.disconnect()' .  Python responds with 'no such function found'.  Otherwise things run fine.

Thank you.

Jack


   
Quote
Forum 1
(@jlobin)
Active Member
Joined: 7 months ago
Posts: 8
Topic starter  

Ok, so it’s been several days.  Is anyone from the Solo software group going to address this?


   
ReplyQuote
SOLO_Francesco
(@solo_francesco)
Chief Member
Joined: 2 years ago
Posts: 35
 

Can you share the code you are testing? 

 

please consider:

- this problem can happen when for example you try to disconnect multiple time and the connection/disconnection get an OS error  

- the proper work of the USB connection is majorly related to your OS 

- is the disconnection/connection process something critical for your end application? in that case you can try solution similar to this that are working fine on different OS and Hardware


   
ReplyQuote
Forum 1
(@jlobin)
Active Member
Joined: 7 months ago
Posts: 8
Topic starter  

@solo_francesco, thank you for your reply.  I will be glad to send you a copy of the code.  However, i do not fully understand your response.  The code I am using is listed as being specifically for a Ubuntu, USB connection, which is what I am using.  Also, the error says the function does not exist, not just that it has an error.  In addition, when I run Motion Terminal it connects and disconnects without a problem.  Do some of the listed functions only work with an OS like Windows?  I am using the latest version of SoloPy and I am assuming that because Ubuntu is listed that all the SoloPy functions work with that OS.  Is that not true?  Thank you for taking the time to respond.

Jack


   
ReplyQuote
SOLO_Francesco
(@solo_francesco)
Chief Member
Joined: 2 years ago
Posts: 35
 

@jlobin if is listed in our repo you can also share the URL in the GitHub repo. 

 

About the OS, Unfortunately connection and disconnection is a complex connection point between the hardware and system. Different machine can have different brand and hardware, as library or codex and anything else, so the situation can be very different by environment. 

Note: I open a ticket to the develop team to request a proper user error in case of connection/disconnection fault (thank you for the feedback)         


   
ReplyQuote
Share: