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

ModuleNotFoundError: No module named 'optimum_reparam' #196

Closed
alejandro-ariza opened this issue Apr 10, 2020 · 8 comments
Closed

ModuleNotFoundError: No module named 'optimum_reparam' #196

alejandro-ariza opened this issue Apr 10, 2020 · 8 comments

Comments

@alejandro-ariza
Copy link

Hi, I just forked/cloned the repository and I found a module which is not listed in the dependencies. It's called "optimum_reparam" and it's imported right here. Maybe somewhere else. I failed finding the module myself, could someone provide details about this module in the README requirements section, please?

Thanks for this initiative!

@vnmabus
Copy link
Member

vnmabus commented Apr 10, 2020

This is a Cython module in https://github.com/GAA-UAM/scikit-fda/tree/develop/deps/fdasrsf.

Did you have any problems with it?

@alejandro-ariza
Copy link
Author

I'm getting a ModuleNotFoundError when importing optimum_reparam with the Anaconda python distribution (Python 3.7.7, Cython 0.29.15), using Spyder 4.1.2.

import optimum_reparam
>>> ModuleNotFoundError: No module named 'optimum_reparam'

I managed to import optimum_reparam with Python 3.6 and Cython 0.29.16 from the terminal, but I do most of my work with Spyder! Anyone knows a workaround to install optimum_reparam with conda?

Thanks.

@vnmabus
Copy link
Member

vnmabus commented Apr 10, 2020

Which OS do you use? How have you installed the package?

@alejandro-ariza
Copy link
Author

Ubuntu 18.04.4 LTS.

I did pip install scikit-fda but what I actually need is conda install scikit-fda, to use the package from the Anaconda python distribution (Spyder). I found that the later is not available yet so I manually added scikit-fda and all the dependencies in the PYTHONPATH (~/.bashrc). So technically, scikit-fda is not installed in the Anaconda python distribution, I just added the library path.

@vnmabus
Copy link
Member

vnmabus commented Apr 10, 2020

Even if you install it from pip, if you do it inside your conda environment it should be available to conda programs. I do not personally use Spyder, but I use Miniconda and never had a problem with that. Did you install from pip while inside your conda environment?

@alejandro-ariza
Copy link
Author

Sweet, it works!

I had no idea you could "pip install" inside the conda environment, so that's a double win :)

I'm interested in FDA to apply in the field of oceanography. I just forked/cloned the repository to give it a go. Are you fancy guys to receive pull request if I find bugs?

@vnmabus
Copy link
Member

vnmabus commented Apr 10, 2020

Yes, of course! Feel free to open PRs and issues or to discuss them.

@alejandro-ariza alejandro-ariza changed the title Missing requirement: optimum_reparam ModuleNotFoundError: No module named 'optimum_reparam' Apr 10, 2020
@alejandro-ariza
Copy link
Author

Gracias!

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