-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImportError: No module named 'medleydb.sql' #77
Comments
@Kaustubhk12 thanks for reporting this. I deprecated the sql submodule. Where did you see it in the current version of the api? Is it in the docs somewhere? |
It is there in conftest.py
Also if the existing code uses session as follows:
then exactly how can it be done now without medleydb.sql ? |
Or could you please make medleydb.sql module available, may be with a deprecation warning, so that those who want to use that module for existing code can use it. |
Any solutions regarding how can I find medleydb.sql and use medleydb.sql.session(). Or any alternatives to medleydb.sql.session() ? |
Hey @Kaustubhk12 sorry for the delay. There's no easy way to bring back the sql api without doing a fairly big rewrite. If you need it you can roll back to the version of the code where it existed. In general though, all of the search capabilities of the sql submodule can be done in python through the current api. Is there functionality missing from the current api that was in the sql api? |
Could you please explain in short how each functionality of medleydb.sql
API can be performed in the new medleydb API? For example, how to retrieve
all the stems. That guidance from your side would be very helpful. Please
reply at your earliest convenience.
…On Tue, May 30, 2017 at 8:57 PM, Rachel Bittner ***@***.***> wrote:
Hey @Kaustubhk12 <https://github.com/kaustubhk12> sorry for the delay.
There's no easy way to bring back the sql api without doing a fairly big
rewrite. If you need it you can roll back to the version of the code where
it existed. In general though, all of the search capabilities of the sql
submodule can be done in python through the current api. Is there
functionality missing from the current api that was in the sql api?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#77 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AXenY6QZRYH4IHNUtmF6UdSwEjNlYPJBks5r_DVIgaJpZM4NBdo7>
.
|
In general you can refer to the documentation. For example to retrieve all the stems for a given multitrack and print their instrument you can do: import medleydb as mdb
mtrack = mdb.MultiTrack('MusicDelta_Beethoven')
for key, stem in mtrack.stems.items():
print("This is stem # {}".format(key))
print(stem.instrument) |
Also the command :
gives the following:
although the medleydb gets installed fine by this command and medleydb can be imported without any error. Further the command
gives the following error:
My OS is Centos 6.4 and Python version is 3.5.2.
The text was updated successfully, but these errors were encountered: