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

Error1 #11

Open
alisi1989 opened this issue Jun 6, 2024 · 0 comments
Open

Error1 #11

alisi1989 opened this issue Jun 6, 2024 · 0 comments

Comments

@alisi1989
Copy link

alisi1989 commented Jun 6, 2024

hi, I'm trying to install the software after cloning the repository, both in .zip format and with git clone. I have already installed Cython, numpy and pandas but I always get the same error:
CondaValueError: no package names supplied,
try "conda remove -h" for more details

(base) alessandrolisi1989@alisi-2 phasedibd % make
pip install cython --user
Requirement already satisfied: cython in /Users/alessandrolisi1989/.local/lib/python3.12/site-packages (3.0.10)
python setup.py build_ext --inplace
Compiling phasedibd/template_pbwt_analysis.pyx because it changed.
Compiling phasedibd/vcf_haplotype_alignment.pyx because it changed.
[1/2] Cythonizing phasedibd/template_pbwt_analysis.pyx
/Users/alessandrolisi1989/.local/lib/python3.12/site-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /Users/alessandrolisi1989/Desktop/Cameroon_Project_final/PhasedIBD/phasedibd/phasedibd/templated_pbwt_analysis.pxd
tree = Parsing.p_module(s, pxd, full_module_name)

Error compiling Cython file:


...
free(self.segments_end_cm)
free(self.segments_start_bp)
free(self.segments_end_bp)
cdef uint32_t num_cols
if self.current_matches_start != NULL:
num_cols = sizeof(self.current_matches_start)/sizeof(self.current_matches_start[0])
^


phasedibd/template_pbwt_analysis.pyx:93:57: Cannot assign type 'double' to 'uint32_t' (alias of 'unsigned int')

Error compiling Cython file:


...
cdef uint32_t num_rows
cdef uint32_t num_cols

first free any already allocated memory

if self.current_matches_start != NULL:
num_rows = sizeof(self.current_matches_start)/sizeof(self.current_matches_start[0])
^


phasedibd/template_pbwt_analysis.pyx:165:57: Cannot assign type 'double' to 'uint32_t' (alias of 'unsigned int')
Traceback (most recent call last):
File "/Users/alessandrolisi1989/Desktop/Cameroon_Project_final/PhasedIBD/phasedibd/setup.py", line 29, in
ext_modules=cythonize([Extension('phasedibd.', ['phasedibd/.pyx'], include_dirs=[np.get_include()])]),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/alessandrolisi1989/.local/lib/python3.12/site-packages/Cython/Build/Dependencies.py", line 1154, in cythonize
cythonize_one(*args)
File "/Users/alessandrolisi1989/.local/lib/python3.12/site-packages/Cython/Build/Dependencies.py", line 1321, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: phasedibd/template_pbwt_analysis.pyx
make: *** [all] Error 1

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

1 participant