Skip to content
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

No module named basismixer.basisfunctions #1

Open
eoinroe opened this issue Apr 17, 2024 · 3 comments
Open

No module named basismixer.basisfunctions #1

eoinroe opened this issue Apr 17, 2024 · 3 comments

Comments

@eoinroe
Copy link

eoinroe commented Apr 17, 2024

After setting up a conda environment using conda env create -f environment_macos.yml I am unable to run the notebooks since the basis functions module is not found.

ModuleNotFoundError Traceback (most recent call last)
Cell In[1], line 2
1 get_ipython().run_line_magic('matplotlib', 'notebook')
----> 2 from helper import init_dataset, performance_player, show_score
3 init_dataset()

File ~/PycharmProjects/basismixer-notebooks/helper/init.py:3
1 from helper.visualization import performance_player, show_score
2 from helper.data import init_dataset
----> 3 from helper.rendering import load_model, compute_basis_from_xml, render_midi
4 from helper.plotting import plot_basis

File ~/PycharmProjects/basismixer-notebooks/helper/rendering.py:17
15 from basismixer.predictive_models import FullPredictiveModel, construct_model
16 from basismixer.performance_codec import get_performance_codec
---> 17 from basismixer.basisfunctions import make_basis
19 from helper.predictions import setup_output_directory
21 LOGGER = logging.getLogger(name)

ModuleNotFoundError: No module named 'basismixer.basisfunctions'

@CarlosCancino-Chacon
Copy link
Member

Hi @eoinroe!

As I mentioned in the issue that you raised in the basismixer repository, the main problem here is that some of the code in the baasismixer repository was moved to Partitura (see the note_features module).

I won't have time to work on this issue until later this year, so I would suggest either using the main basismixer repository (in the branch update_training), or using older versions of the packages (in particular, partitura and basismixer).

@eoinroe
Copy link
Author

eoinroe commented Apr 22, 2024

Hi @neosatrapahereje, thanks for your help with this!

Which versions of the packages would you suggest using if I wanted to go for the option of using older versions for now?

@CarlosCancino-Chacon
Copy link
Member

Hi @eoinroe! Sorry for the late reply (I've been out of office this week). The notebooks should work with the oldest version of partitura and basismixer (from late 2019), since that is what we used for a tutorial for ISMIR back then (but then you might need to see the compatibility with other packages).

If you want, we could have a chat sometime in the next two weeks, and I can help you setup a version of the code (you can write me to my JKU email: [email protected] and we can coordinate a time for a Zoom call).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants