I’m trying to explore some data we have in a MariaDB database, and after I setup my environment I tried to install taipy[mysql] as recommended in the manual.
At this step, I get a warning :
WARNING: taipy 2.0.0 does not provide the extra ‘mysql’
My pipeline fails with an error :
taipy.core.exceptions.exceptions.UnknownDatabaseEngine: Unknown engine: mysql
There is an error in the documentation. ‘mysql’ is not supported in this current version but will be in the next big release in January. We are also going to test along the way with MariaDB. The error in the documentation will be fixed soon.
I’m a little at a loss here, I read the user manual, and I just don’t get what read_fct and write_fct expect for parameters, and what format they are supposed to return (for write_fct I don’t even know what to return).
I wrote read_fct to send back a list of tuples I pulled from the DB, the data I want to look at, and with write_fct I don’t know what to do.
Could you please give a little example to explain how it’s supposed to work ?
You also have to be aware of your types. The function of your task will receive the type given by ‘read_data’ and the type returned by the function of your task should be in the correct type for ‘write_data’ to work.
This line of code below should work with “foo” and “bar” optional and function(), your normal Python function used by your task.
write_data(function(read_data(“foo”)), “bar”)
If you need more explanation, I can help you or organize a call when you want.
So, how do you access your db without doing “SQL-related stuff”? Maybe, try to delete your .data of your project if not already done. If the previous configuration of the CSV data node is still in the .data, it might cause some errors.
I don’t see why you would get an “ODBC driver missing” error if you don’t use SQL in Taipy.
If the deletion of your .data doesn’t help, you can maybe contact me by mail to send me a copy of your code reproducing the error or organize a call.
clearing the .data directory did the trick, the pipeline works now,
I’m pulling the data from my DB using an orm, and not any of Taipy stuff, as I’m using MariaDB.
it’s OK now, thanks a lot for your help,
best regards,
— JMM
Author
Posts
Viewing 8 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic.
Cookies!
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
Cookie
Duration
Description
cookielawinfo-checkbox-analytics
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional
11 months
The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy
11 months
The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.