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

Fretwork package installation #219

Open
Tinkerbell2102 opened this issue Jun 11, 2020 · 4 comments
Open

Fretwork package installation #219

Tinkerbell2102 opened this issue Jun 11, 2020 · 4 comments

Comments

@Tinkerbell2102
Copy link

Having issues installing the Fretwork package. New to the python language (I'm a student). Any help would be great. Thank you

image

@DjMike238
Copy link

DjMike238 commented Jun 11, 2020

I guess it should be fretwork, not frerwork. You just spelled it incorrectly.

@Tinkerbell2102
Copy link
Author

image

Even with the correct spelling I have this error, I have discused this with a few friends, my teacher and non of us can figure out whats wrong

@AEFeinstein
Copy link
Contributor

You can download the the setup.py file that is run from here: https://pypi.org/project/fretwork/#files (it's in fretwork-0.4.0.tar.gz). If you search in there for the error "could not find the required program" you find this:

def find_command(cmd):
    '''Find a program on the PATH, or, on win32, in the dependency pack.'''

    sys.stdout.write('checking for program %s... ' % cmd)

    if os.name == 'nt':
        # Only accept something from the dependency pack.
        path = os.path.join('.', 'win32', 'deps', 'bin', cmd + '.exe')
    else:
        # Search the PATH.
        path = None
        for dir in os.environ['PATH'].split(os.pathsep):
            if os.access(os.path.join(dir, cmd), os.X_OK):
                path = os.path.join(dir, cmd)
                break

    if path is None or not os.path.isfile(path):
        print('not found')
        sys.stderr.write('Could not find required program "%s".\n' % cmd)
        if os.name == 'nt':
            sys.stderr.write('(Check that you have the latest version of the dependency pack installed.)\n')
        sys.exit(1)

    print(path)
    return path

So on Windows, it's looking specifically for the file .\win32\deps\bin\pkg-config.exe which it cannot find because it doesn't exist. I don't know why it's written this way, but it's really bad for pip. You're better off following the instructions on fofix's main page, which has you download the dependency pack and put it where it needs to be.

@Linkid
Copy link
Member

Linkid commented Dec 30, 2020

This bug is related to this one : fofix/fretwork#59.

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

No branches or pull requests

4 participants