Accessing librarys on SD card



  • Hello,
    I want to access a mysql library which is on SD card but when I write: import mysql it says that this module could not be found. So how can I access this library?



  • @jmarcelino
    Thanks for an answer. Do you have an example code that runs MySQL in a way you have described?



  • @michalt38
    As far as I know libraries have to be in the internal /flash/lib folder, you can put them there via FTP.

    However be aware that the standard Python MySQL library won't work in MicroPython as it's too resource heavy and has requirements such as the MySQL C libraries which aren't available here.

    Usually you'll do simple calls to a simpler web service/remote server which will have these libraries and access MySQL.


Log in to reply
 

Looks like your connection to Pycom Forum was lost, please wait while we try to reconnect.