yuanzunli / kdeLF

A Flexible Method for Estimating Luminosity Functions via Kernel Density Estimation
MIT License
0 stars 1 forks source link

Issue installing on Ubuntu 22.04, importing kdeLF.kde_fortran #3

Open astroraun opened 5 months ago

astroraun commented 5 months ago

Hi, I've tried to install the package with pip and from source, but when importing kdeLF.kde_fortran, I get a module not found error. I also tried finding it manually, but failed. Everything else seems fine and I have installed the Intel kit for fortran.

yuanzunli commented 5 months ago

Hi, I've tried to install the package with pip and from source, but when importing kdeLF.kde_fortran, I get a module not found error. I also tried finding it manually, but failed. Everything else seems fine and I have installed the Intel kit for fortran.

What's the version of your python? What's the version for your Numpy?

yuanzunli commented 5 months ago

Could you take a screenshot to show the error?

astroraun commented 4 months ago

When I try to install it with pip, the error is "failed building wheel for kdeLF". kdelf1 kdelf2

And when I try to install from Github, it says I don't have or it can't find numpy, although with the pip installation it clearly can, as you can see from the first picture. kdelf3

When I try the test I get ModuleNotFoundError: No module named 'kdeLF.kde_fortran'. I updated everything just in case and then tried to set up the package manually by running the setup files in notebook, but that raised a whole bunch of other errors without managing to configure the needed files. Can you perhaps suggest, in which order could I maybe run the files to get the package working?

yuanzunli commented 4 months ago

Are you using the anaconda3 environment to run your Python? and is the version of you Python 3.9?

astroraun commented 4 months ago

Yes and yes.

yuanzunli commented 4 months ago

I think the problem lies with anaconda3. In the anaconda3 environment, the ifort compiler may not be found. So the first solution is that you do not use the anaconda3 environment to run Python, instead, you run your Python directly on Ubuntu. If you prefer to use the anaconda3 environment, I suggest that you update your Python to be 3.10 version.

yuanzunli commented 4 months ago

Does it work now?