repostat icon indicating copy to clipboard operation
repostat copied to clipboard

Cannot install on M1 Mac

Open alexandernajafi opened this issue 2 years ago • 4 comments

When I install using pip3 install repostat-app

I get an error saying

      pandas/_libs/algos.c:236:12: fatal error: 'longintrepr.h' file not found
        #include "longintrepr.h"
                 ^~~~~~~~~~~~~~~
      1 error generated.
      error: command '/usr/bin/clang' failed with exit code 1
      [end of output]

alexandernajafi avatar Dec 20 '23 07:12 alexandernajafi

Hello, This seems to be an error in installing pandas (one of the dependencies for repostat) rather than in repostat itself. According to other bugreports, it seems Pandas will need to be updated to a newer version to support Python 3.11, or maybe you can use Python 3.10 instead.

pulkomandy avatar Dec 20 '23 10:12 pulkomandy

I have the same issue on M2 Mac mini, macOS 14.2.1, Python 3.11.3. Upgrading pandas (to 2.2.1) did not help.

sjrothfuss avatar Mar 20 '24 16:03 sjrothfuss

Tried in a Python 3.10 environment and got a different error:

ERROR: Failed cleaning build dir for pandas
Failed to build pandas
ERROR: Could not build wheels for pandas, which is required to install pyproject.toml-based projects

sjrothfuss avatar Mar 20 '24 16:03 sjrothfuss

These instructions worked for me: https://github.com/vifactor/repostat/issues/110#issuecomment-597911506

sjrothfuss avatar Mar 20 '24 16:03 sjrothfuss