Skip to content

Instantly share code, notes, and snippets.

@altendky

altendky/x.py Secret

Last active May 10, 2018 17:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save altendky/140429fe1824901c398e06de627dfa43 to your computer and use it in GitHub Desktop.
Save altendky/140429fe1824901c398e06de627dfa43 to your computer and use it in GitHub Desktop.
$ venv/bin/pip install pyqt5
Collecting pyqt5
Cache entry deserialization failed, entry ignored
Using cached https://files.pythonhosted.org/packages/e4/15/4e2e49f64884edbab6f833c6fd3add24d7938f2429aec1f2883e645d4d8f/PyQt5-5.10.1-5.10.1-cp35.cp36.cp37.cp38-abi3-manylinux1_x86_64.whl
Collecting sip<4.20,>=4.19.4 (from pyqt5)
Cache entry deserialization failed, entry ignored
Using cached https://files.pythonhosted.org/packages/8a/ea/d317ce5696dda4df7c156cd60447cda22833b38106c98250eae1451f03ec/sip-4.19.8-cp36-cp36m-manylinux1_x86_64.whl
Installing collected packages: sip, pyqt5
from PyQt5 Successfully installed pyqt5-5.10.1 sip-4.19.8
You are using pip version 9.0.3, however version 10.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
$ venv/bin/python
Python 3.6.5 (default, Apr 29 2018, 18:05:11)
[GCC 6.3.0 20170516] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from PyQt5 import Qt
>>> app = Qt.QAppliation([])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'PyQt5.Qt' has no attribute 'QAppliation'
>>> app = Qt.QApplication([])
>>> Qt.QFileDialog.getSaveFileName(dir='/red')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: getSaveFileName(parent: QWidget = None, caption: str = '', directory: str = '', filter: str = '', initialFilter: str = '', options: Union[QFileDialog.Options, QFileDialog.Option] = 0): 'dir' is not a valid keyword argument
>>> Qt.QFileDialog.getSaveFileName(filter='')
('', '')
>>> Qt.QFileDialog.getSaveFileName(caption='')
('', '')
>>> Qt.QFileDialog.getSaveFileName(directory='/red')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
KeyboardInterrupt
>>> Qt.QFileDialog.getSaveFileName(directory='/red')
('', '')
>>> Qt.QFileDialog.getOpenFileName(directory='/red')
('', '')
>>> Qt.QFileDialog.getOpenFileName(dir='/red')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: getOpenFileName(parent: QWidget = None, caption: str = '', directory: str = '', filter: str = '', initialFilter: str = '', options: Union[QFileDialog.Options, QFileDialog.Option] = 0): 'dir' is not a valid keyword argument
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment