-
Notifications
You must be signed in to change notification settings - Fork 44
How to use database ds with sqlite3? #266
Comments
Hi @reszelaz I haven't used this database server before, so might not be much help. I also don't know of the quality or usefulness of this Python-based database server. It doesn't seem to be actively maintained. Before I could run your commands above, I also had to pip install One step forward is to get a copy of a database, instead of letting the code try to create one for you. You can get a copy (maybe old format), from here: https://github.com/ALBA-Synchrotron/pydatabaseds/blob/master/databaseds.8.1.6/empty_database.db. Just copy it into your current folder as
|
Thanks @ajoubertza for the hint!
I think it should be pretty usable. At least in the bliss project they run this code in an embedded mode. I think the problem could come from the use of Anyway, I tried to set the |
Motivated by this issue and the fact that, together with @vxgmichel, we informally agreed a long time ago that pytango database should be a separate project from tango, we (me and @jairomoldes) have created a pytango-db repository. Your issue should already be solved in this project. If the @tango-controls/pytango-developers agree:
We would also need to synchronize with @sergirubio to see if we can meet his needs so he doesn't need to maintain a separate project. |
Hi PyTango experts!
I was trying to use the Tango database with sqlite3 both with python2 and python3.
I try to launch the database ds with the following command:
For python2 I must patch this to overcome this error:
Then the server hangs on "Initializing database...":
I added these prints which points to some problem with
concurrent.future.ThreadPoolExecutor
. When I don't submit theget_cursor
method to the executor and execute it directly it works. But then the next submits to the executor hangs...Certainly I must be doing something wrong so any kind of tip/guidance would be appreciated. Thanks!
I take a profit of this post to ask if someone had tried this on Windows? Finally I would like to use it on windows to avoid the necessity to install MySQL and tango :)
Software versions:
pip install -e --user
The text was updated successfully, but these errors were encountered: