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

Install pycosat failed in MSYS2 #36

Closed
duytrung opened this issue Jul 11, 2019 · 3 comments
Closed

Install pycosat failed in MSYS2 #36

duytrung opened this issue Jul 11, 2019 · 3 comments
Labels
locked [bot] locked due to inactivity stale [bot] marked as stale due to inactivity sync::anaconda sync internally with Anaconda, Inc. ticket tracker

Comments

@duytrung
Copy link

Hello,

I tried to install Pycosat 0.6.3 using "pip install pycosat" but failed and result was like this:

➜  ~ pip install pycosat
Collecting pycosat
  Using cached https://files.pythonhosted.org/packages/c0/fd/e38d68774c0a345b0090d608a90f1fbf423970d812f7ec7aef9ac024e648/pycosat-0.6.3.zip
Installing collected packages: pycosat
  Running setup.py install for pycosat ... error
    ERROR: Complete output from command /usr/bin/python3.exe -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-4_vuj8jb/pycosat/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-9dxjvrzk/install-record.txt --single-version-externally-managed --compile:
    ERROR: running install
    running build
    running build_py
    creating build
    creating build/lib.msys-3.0.7-x86_64-3.7
    copying test_pycosat.py -> build/lib.msys-3.0.7-x86_64-3.7
    running build_ext
    building 'pycosat' extension
    creating build/temp.msys-3.0.7-x86_64-3.7
    x86_64-pc-msys-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O2 -pipe -march=x86-64 -mtune=generic -O2 -pipe -march=x86-64 -mtune=generic -O2 -pipe -I/usr/include/python3.7m -c pycosat.c -o build/temp.msys-3.0.7-x86_64-3.7/pycosat.o
    In file included from pycosat.c:10:
    /usr/include/python3.7m/Python.h:44:10: fatal error: crypt.h: No such file or directory
       44 | #include <crypt.h>
          |          ^~~~~~~~~
    compilation terminated.
    error: command 'x86_64-pc-msys-gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command "/usr/bin/python3.exe -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-4_vuj8jb/pycosat/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-9dxjvrzk/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-4_vuj8jb/pycosat/
➜  ~

System was MSYS2

Thanks

@Sherryzhang2
Copy link

I met the same problem. Has it been solved?

@LtDan33 LtDan33 added the sync::anaconda sync internally with Anaconda, Inc. ticket tracker label Jan 26, 2022
@github-actions
Copy link

Hi there, thank you for your contribution!

This issue has been automatically marked as stale because it has not had recent activity. It will be closed automatically if no further activity occurs.

If you would like this issue to remain open please:

  1. Verify that you can still reproduce the issue at hand
  2. Comment that the issue is still reproducible and include:
    - What OS and version you reproduced the issue on
    - What steps you followed to reproduce the issue

NOTE: If this issue was closed prematurely, please leave a comment.

Thanks!

@github-actions github-actions bot added the stale [bot] marked as stale due to inactivity label Jan 27, 2023
@dholth
Copy link
Contributor

dholth commented Feb 6, 2023

This is a generic msys2 problem. Try installing libcrypt-devel.

@dholth dholth closed this as completed Feb 6, 2023
@github-actions github-actions bot added the locked [bot] locked due to inactivity label Feb 7, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked [bot] locked due to inactivity stale [bot] marked as stale due to inactivity sync::anaconda sync internally with Anaconda, Inc. ticket tracker
Projects
Archived in project
Development

No branches or pull requests

4 participants