4 ms·
Could you share the error you're getting locally? Re: calling backend, yeah you can use requests or anything else (e.g API client libs, talk to DB directly).
by willchen 2y ago
Could you share the error you're getting locally?
Re: calling backend, yeah you can use requests or anything else (e.g
API client libs, talk to DB directly). The beauty is that you're just writing regular python code
- devtom 2y agoThe error is: partially initialized module 'pandas' has no attribute '_pandas_datetime_CAPI' (most likely due to a circular import) This happens only on the second interaction.
- willchen 2y agoOK thanks. I've filed an issue here: https://github.com/google/mesop/issues/345 https://github.com/google/mesop/issues/345 if you could share with us a repro (the Mesop code you're running) on the issue, that would be helpful in debugging this. If you take a look at the "table" example on the demo gallery: https://google.github.io/mesop/demo/ https://google.github.io/mesop/demo/ it shows how to use Pandas w/ Mesop, so I'm not sure what's going on.
- devtom 2y agook, will look at the issue and add an example if possible. The code I was executing was one of the example code present on the site. So nothing special.
- devtom 2y agoSo If I make a request from the python code, is the request executed in the browser ? or on the server ? Is the UI layer executing in the browser and use proxy rpc from the server ?
- willchen 2y agoAll the python code, including requests are executed on the server Take a look at https://google.github.io/mesop/internal/architecture/ https://google.github.io/mesop/internal/architecture/ for an explainer on how the client-server interaction works and let me know if you have any questions!
- devtom 2y agoYay, thank you :-) going to take a look!