AlexanderFabisch / gmr

Gaussian Mixture Regression
https://alexanderfabisch.github.io/gmr/
BSD 3-Clause "New" or "Revised" License
168 stars 49 forks source link

Error when trying first example #4

Closed MetaDev closed 8 years ago

MetaDev commented 8 years ago

This is probably a very basic mistake. But I can't seem to run the example (after installing with pip). I get the error:

File "/Users/Harald/anaconda/lib/python3.4/site-packages/gmr/init.py", line 1, in from mvn import MVN, plot_error_ellipse

ImportError: No module named 'mvn'

I tried cloning the complete repository and run the examples from the source but that didn't help either.

AlexanderFabisch commented 8 years ago

Hi @MetaDev,

the bug should be fixed in the current master of the git repository. You can install it with sudo python setup.py install. It is still present in the version that is currently in PyPI. I will fix that.

AlexanderFabisch commented 8 years ago

Try pip install --upgrade gmr now. It should work with Python 3 now.

MetaDev commented 8 years ago

I'm still getting the same error. After the pip --upgrade gmr I was still on version 1.0. Installing from master did put it on version 1.1 but still the error remains. I use Python 3.5, could that be it?

AlexanderFabisch commented 8 years ago

In your first post it seems to be Python 3.4. I use Python 3.4.3 and it works for me. I cannot reproduce this. Could you help me there?

MetaDev commented 8 years ago

I updated to 3.5 due to some issue with other packages and the spyder editor. I'm currently updating all libraries I'll keep you posted, it could be a problem at my side. Ok, after updating everything, I still get the error. What more info could be of help to you? This time I only installed using pip: "Successfully installed gmr-1.0" Should I install from the master directly?

AlexanderFabisch commented 8 years ago

Maybe I forgot to release it on the Pypi website. You could try both.

MetaDev commented 8 years ago

Alright, it's good to go :). I had to restart the IPython console I use after the install. Thank you very much for your patience.

Labulitiolle commented 4 years ago

Hi @AlexanderFabisch , This error No module named 'mvn' is now occurring again when using py37. Is there a way to get around it?

Thank you for your help

AlexanderFabisch commented 4 years ago

Hi @Labulitiolle . Thanks for reporting. It would be better to open a new issue for this problem. I'll see what I can do.

AlexanderFabisch commented 4 years ago

I don't know exactly why this happens. Maybe the PyPI package for Python 3 is not updated. If you clone the repository and run python setup.py it should work.

AlexanderFabisch commented 4 years ago

OK, I reuploaded gmr 1.1 to PyPI. I hope it works for you know?

Labulitiolle commented 4 years ago

Great, it is working now. Thank you for your quick response.