Skip to content

Conversation

@ruimartinsptl
Copy link
Contributor

@ruimartinsptl ruimartinsptl commented Oct 3, 2025

With the version '1.5.3' when I try to install in a new virtual environment I have this error (the same happens with Poetry):

(...)
    | pandas/_libs/src/klib/khash.h:426:77: note: expanded from macro 'KHASH_INIT'
    |   426 |         KHASH_INIT2(name, PANDAS_INLINE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
    |       |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
    | pandas/_libs/src/klib/khash.h:393:71: note: expanded from macro 'KHASH_INIT2'
    |   393 |                                 while (!__ac_isempty(h->flags, i) && (__ac_isdel(h->flags, i) || !__hash_equal(h->keys[i], key))) { \
    |       |                                                                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    | pandas/_libs/src/klib/khash_python.h:147:34: note: expanded from macro 'kh_complex_hash_equal'
    |   147 |   (kh_floats_hash_equal(a.real, b.real) && kh_floats_hash_equal(a.imag, b.imag))
    |       |                                 ~^~~~~
    | pandas/_libs/src/klib/khash_python.h:127:53: note: expanded from macro 'kh_floats_hash_equal'
    |   127 | #define kh_floats_hash_equal(a, b) ((a) == (b) || ((b) != (b) && (a) != (a)))
    |       |                                                     ^
    | fatal error: too many errors emitted, stopping now [-ferror-limit=]
    | 20 errors generated.
    | error: command '/usr/bin/clang' failed with exit code 1

Note: This error originates from the build backend, and is likely not a problem with poetry but one of the following issues with pandas (1.5.3)

  - not supporting PEP 517 builds
  - not specifying PEP 517 build requirements correctly
  - the build requirements are incompatible with your operating system or Python version
  - the build requirements are missing system dependencies (eg: compilers, libraries, headers).

You can verify this by running pip wheel --no-cache-dir --use-pep517 "pandas (==1.5.3)".

After updating it's working well

@Nfsaavedra
Copy link
Member

Thanks! I'll merge and fix the linter in another commit :)

@Nfsaavedra Nfsaavedra merged commit d7331b5 into sr-lab:main Oct 4, 2025
1 of 2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants