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

pip install fails on Windows 10, Python 3 #59

Open
AEFeinstein opened this issue Jun 12, 2020 · 3 comments
Open

pip install fails on Windows 10, Python 3 #59

AEFeinstein opened this issue Jun 12, 2020 · 3 comments

Comments

@AEFeinstein
Copy link

Describe the bug
pip install fretwork fails to install fretwork on Windows. During installation, the find_command() function in setup.py looks for the file .\win32\deps\bin\pkg-config.exe which it cannot find. This is supposed to be in the dependency pack, but because pip is running setup.py from a temp folder, I don't see how the dependency could be placed there.

Error message

PS C:\Users\AFeinstein> pip install fretwork
Collecting fretwork
  Using cached fretwork-0.4.0.tar.gz (76 kB)
    ERROR: Command errored out with exit status 1:
     command: 'c:\python38\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\AFeinstein\\AppData\\Local\\Temp\\pip-install-pc9dy2rv\\fretwork\\setup.py'"'"'; __file__='"'"'C:\\Users\\AFeinstein\\AppData\\Local\\Temp\\pip-install-pc9dy2rv\\fretwork\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\AFeinstein\AppData\Local\Temp\pip-pip-egg-info-f8y2ubrp'
         cwd: C:\Users\AFeinstein\AppData\Local\Temp\pip-install-pc9dy2rv\fretwork\
    Complete output (3 lines):
    checking for program pkg-config... not found
    Could not find required program "pkg-config".
    (Check that you have the latest version of the dependency pack installed.)
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

To Reproduce
Run pip install fretwork from a Windows operating system

Screenshots
n/a

Environment (please complete the following information):

  • Windows 10
  • Python 3.8.0
@AEFeinstein AEFeinstein added the bug Something isn't working label Jun 12, 2020
@AEFeinstein AEFeinstein changed the title pip install fails on Windows pip install fails on Windows 10, Python 3 Jun 12, 2020
@Linkid Linkid added Windows bug and removed bug Something isn't working labels Jun 12, 2020
@nitecoder
Copy link

Having this problem as well. I've tried installing pkg-config following https://stackoverflow.com/a/1711338
But pip install still fails to find it even though I can find it on command line via pkg-config.

  • Python 2.7, Windows 10.
  • Virtual environment
  • PowerShell

I also tried downloading whl file for fretworks from https://github.com/fofix/fretwork/releases but installing it gives an error "
$ pip install .\tmp\fretwork-0.4.0-cp27-cp27m-win32.whl
ERROR: fretwork-0.4.0-cp27-cp27m-win32.whl is not a supported wheel on this platform.

Also, "Windows dependencies pack" link on this page https://github.com/fofix/fretwork doesn't work.
http://fofix.net/downloads/fofix-win32-deppack-20130304-updated.zip

I'm not usually working on Windows, so at this point I'm at a loss... But I could try other things given a good hint :)

@nitecoder
Copy link

Update - I was able to get pip install -r requirements.txt to work.
The trick is to read instructions 🤦

  • Only Python 2.7 32 bit is supported (I had tried 64 bit)
  • Windows dependencies pack is linked from Readme file (it's on dropbox now)

@Linkid
Copy link
Member

Linkid commented Dec 30, 2020

Hi ! Thank you for reporting this bug.
For now, there are few wheels. In future releases, we need to build more wheels, especially if sources doesn't build via pip :x.
About the dependency pack, we need to update the link in the README file.
Here are the tasks, then:

  • update the Windows dependency pack link in the README file
  • make more Windows wheels
  • add a warning about the Windows dependency pack to put it in the PATH if not found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants