nitipit / appkit

Gnome desktop application framework based on Webkit, HTML5 and Python
http://nitipit.github.io/appkit
MIT License
42 stars 4 forks source link

Install problems #33

Open kraftkedge opened 4 years ago

kraftkedge commented 4 years ago

i keep trying to install appkit but i keep running into the same problem. Yes i already have installed Quartz. When i try pip3 install AppKit or pip install AppKit i keep getting the following `ERROR: Command errored out with exit status 1: command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /private/tmp/pip-build-env-ejsn87m7/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel pycairo cwd: None Complete output (29 lines): WARNING: The directory '/Users/xxx/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. WARNING: The directory '/Users/xxx/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. Collecting setuptools Downloading https://files.pythonhosted.org/packages/54/28/c45d8b54c1339f9644b87663945e54a8503cfef59cf0f65b3ff5dd17cf64/setuptools-42.0.2-py2.py3-none-any.whl (583kB) Collecting wheel Downloading https://files.pythonhosted.org/packages/00/83/b4a77d044e78ad1a45610eb88f745be2fd2c6d658f9798a15e384b7d57c9/wheel-0.33.6-py2.py3-none-any.whl Collecting pycairo Downloading https://files.pythonhosted.org/packages/3c/1a/c0478ecab31baae50fda9956547788afbd0ca563adc52c9b03cab30f17eb/pycairo-1.18.2.tar.gz (200kB) Installing collected packages: setuptools, wheel, pycairo Running setup.py install for pycairo: started Running setup.py install for pycairo: finished with status 'error' ERROR: Command errored out with exit status 1: command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-install-qynd_0kn/pycairo/setup.py'"'"'; file='"'"'/private/tmp/pip-install-qynd_0kn/pycairo/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/tmp/pip-record-ajgenwxx/install-record.txt --single-version-externally-managed --prefix /private/tmp/pip-build-env-ejsn87m7/overlay --compile cwd: /private/tmp/pip-install-qynd_0kn/pycairo/ Complete output (12 lines): running install running build running build_py creating build creating build/lib.macosx-10.9-x86_64-3.8 creating build/lib.macosx-10.9-x86_64-3.8/cairo copying cairo/init.py -> build/lib.macosx-10.9-x86_64-3.8/cairo copying cairo/init.pyi -> build/lib.macosx-10.9-x86_64-3.8/cairo copying cairo/py.typed -> build/lib.macosx-10.9-x86_64-3.8/cairo running build_ext 'pkg-config' not found. Command ['pkg-config', '--print-errors', '--exists', 'cairo >= 1.13.1']

ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-install-qynd_0kn/pycairo/setup.py'"'"'; file='"'"'/private/tmp/pip-install-qynd_0kn/pycairo/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/tmp/pip-record-ajgenwxx/install-record.txt --single-version-externally-managed --prefix /private/tmp/pip-build-env-ejsn87m7/overlay --compile Check the logs for full command output.

ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /private/tmp/pip-build-env-ejsn87m7/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel pycairo Check the logs for full command output.`

nitipit commented 4 years ago

Thanks for opening the issue. The fact is, I've leaved this repo for a long time without update. Maybe it's time to revamp it.

nitipit commented 4 years ago

What platform and environment do you use ? Now AppKit only support for Gnome Desktop. I try install on my own computer (Fedora 31 / Gnome) and it pass without error

mkdir test
cd test
python3 -m venv --system-site-package venv
source venv/bin/activate
pip install appkit