-
Notifications
You must be signed in to change notification settings - Fork 53
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
Could not import the C extension for the projected correlation function. #316
Comments
Thank you for using Corrfunc and also reporting the issue! There are a few things that might be going wrong but will need a bit more info to check. Will you please provide the following:
That should (hopefully) give us some insight into what might be going wrong |
Dear Mandeep,
Thank you for your reply.
Here are the details:
- what operating system and compiler are you using: Operating system
Linux Mint 20.1 and compiler is cc (conda-forge gcc 13.2.0-5) 13.2.0
- the output of compiler —version: cc (conda-forge gcc 13.2.0-5) 13.2.0
- The output of python —version : Python 3.9.18
- the entire output from python -m pip install -e . —verbose (might want
to redirect to a log file and then attach the log file): I have attached
here the log file.
- confirm that the python used in installing is the same python you
trying to import Corrfunc into
Corrfunc is installed in my system. There is no issue when I import the
library. I only obtain this problem with importing the C extension. I
confirm that I am using the same python in which I am trying to import
Corrfunc into.
Regards
Suhani Gupta
…On Tue, 9 Apr 2024 at 21:13, Manodeep Sinha ***@***.***> wrote:
Thank you for using Corrfunc and also reporting the issue!
There are a few things that might be going wrong but will need a bit more
info to check. Will you please provide the following:
- what operating system and compiler are you using
- the output of compiler —version
- The output of python —version
- the entire output from python -m pip install -e . —verbose (might
want to redirect to a log file and then attach the log file)
- confirm that the python used in installing is the same python you
trying to import Corrfunc into
That should (hopefully) give us some insight into what might be going wrong
—
Reply to this email directly, view it on GitHub
<#316 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQLVXA3C5ZUU7KFKB5NBYKLY4Q4WTAVCNFSM6AAAAABF6J4EUCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBVHA4TMNBRGM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
Doctoral student
Center for Theoretical Physics Polish Academy of Sciences
Al. Lotników 32/46
02-668 Warsaw
Poland
|
@suhani0603 GitHub doesn't allow attachments over email, unfortunately. Could you attach the log file directly to a comment on this issue? |
@suhani0603 Did you still need help on this? |
Dear Manodeep,
Thank you for your email, and apologies for the late reply. I had my phd
defense so I was completely focussed on preparing for that.
I have not yet looked into this, I will get back to you as soon as possible.
Regards
Suhani Gupta
…On Fri, 3 May 2024 at 00:52, Manodeep Sinha ***@***.***> wrote:
@suhani0603 <https://github.com/suhani0603> Did you still need help on
this?
—
Reply to this email directly, view it on GitHub
<#316 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQLVXA6DL6A5XVG6PUJYU6DZAK7RNAVCNFSM6AAAAABF6J4EUCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJRHA3TINRWHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Doctoral student
Center for Theoretical Physics Polish Academy of Sciences
Al. Lotników 32/46
02-668 Warsaw
Poland
|
I installed corrfunc using the instructions provided in https://corrfunc.readthedocs.io/en/master/install.html
##--- this is my script to compute the correlation function
import numpy as np
import Corrfunc
from Corrfunc.theory import *
from Corrfunc.theory.xi import xi
file_halos = np.loadtxt('m_xyz.dat')
boxsize=1024
nthreads = 4
x = file_halos[:,1]
y = file_halos[:,2]
z = file_halos[:,3]
rmin = 0.1
rmax = 20.0
nbins = 20
rbins = np.logspace(np.log10(rmin), np.log10(rmax), nbins + 1)
results_xi = xi(boxsize, nthreads, rbins, x, y, z)
I am getting the following error: Could not import the C extension for the projected correlation function.
I am using Python 3.9.18
numpy 1.26.4
conda 24.3.0
Thank you in advance :)
The text was updated successfully, but these errors were encountered: