The Following User Says Thank You to coderus For This Useful Post: | ||
|
2014-02-19
, 11:17
|
|
Posts: 141 |
Thanked: 267 times |
Joined on May 2010
@ Germany
|
#63
|
addImportPath(Qt.resolvedUrl('.'));
addImportPath(Qt.resolvedUrl('.').substr('file://'.length));
/usr/lib/qt5/bin/qmlscene events_example.qml
|
2014-02-23
, 04:03
|
Posts: 120 |
Thanked: 279 times |
Joined on Sep 2009
@ Perth, Australia
|
#65
|
ImportError: No module named 'ssl_match_hostname'
from _implementation import CertificateError, match_hostname ImportError: No module named '_implementation'
|
2014-02-23
, 12:04
|
Guest |
Posts: n/a |
Thanked: 0 times |
Joined on
|
#66
|
Anyone else experiencing SSL/cert related problems with python3 on Sailfish OS?
I've now encountered problems in two different situations:
1) When creating a python3 virtualenv, I can't use pip to install anything:
2) When attempting to use the "requests" library:Code:ImportError: No module named 'ssl_match_hostname'
I'm attempting to write a NewsBlur client, and need to use the requests library, so this has me a bit stumped .Code:from _implementation import CertificateError, match_hostname ImportError: No module named '_implementation'
EDIT 1: Possibly related: https://github.com/shazow/urllib3/issues/320
So it looks like the Python version in the repos might be compiled without SSL .
EDIT 2: Looks like this pull request has been merged which will allow ssl: https://github.com/thp/mer-python3/issues/1 and https://github.com/nemomobile-packages/python3/pull/1. I'm not sure how to track when this reaches the mer/nemo/sailfish repos though - anyone have any tips?
[nemo@localhost ~]$ python Python 2.7.5 (default, May 09 2013, 12:34:56) [GCC 4.6.4 20130412 (Mer 4.6.4-1)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import socket >>> hasattr(socket, "ssl") True >>>
The Following User Says Thank You to For This Useful Post: | ||
|
2014-02-23
, 12:56
|
Posts: 120 |
Thanked: 279 times |
Joined on Sep 2009
@ Perth, Australia
|
#67
|
at least python 2.7.5 on repos have
Code:[nemo@localhost ~]$ python Python 2.7.5 (default, May 09 2013, 12:34:56) [GCC 4.6.4 20130412 (Mer 4.6.4-1)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import socket >>> hasattr(socket, "ssl") True >>>
[nemo@localhost ~]$ python3 Python 3.3.3 (default, Jan 20 2014, 16:21:36) [GCC 4.6.4 20130412 (Mer 4.6.4-1)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import socket >>> hasattr(socket, 'ssl') False >>>
|
2014-02-23
, 14:54
|
Guest |
Posts: n/a |
Thanked: 0 times |
Joined on
|
#68
|
[nemo@localhost ~]$ python3 Python 3.3.5rc1 (default, Feb 23 2014, 21:01:14) [GCC 4.6.4 20130412 (Mer 4.6.4-1)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import ssl >>> import sys >>> sys.modules.keys() dict_keys(['collections.abc', 'textwrap', 'signal', 'ssl', 'zipimport', '_warnings', 'copyreg', 'encodings.utf_8', 'abc', 'stat', '__main__', 'os', 'site', 'errno', 'keyword', 'encodings.latin_1', 'sys', 'readline', 'sre_parse', 'heapq', 'encodings', '_io', '_ssl', 'posix', 'encodings.aliases', 'os.path', '_codecs', 'traceback', '_frozen_importlib', 'genericpath', '_thread', '_socket', 'io', 'operator', '_imp', 'marshal', '_struct', '_sysconfigdata', 'pprint', 'sre_constants', '_sre', 'posixpath', '_collections', 'collections', 'base64', 'reprlib', 'sysconfig', 'codecs', 'functools', 'sre_compile', 'builtins', 'binascii', 'token', 'weakref', 'socket', 'linecache', 'struct', '_weakref', 'tokenize', '_functools', '_heapq', '_weakrefset', 'itertools', 're']) >>>
The Following 3 Users Say Thank You to For This Useful Post: | ||
|
2014-02-24
, 04:50
|
Posts: 120 |
Thanked: 279 times |
Joined on Sep 2009
@ Perth, Australia
|
#69
|
The Following User Says Thank You to mattaustin For This Useful Post: | ||
|
2014-02-25
, 22:18
|
|
Posts: 126 |
Thanked: 59 times |
Joined on Jan 2011
|
#70
|
[W] DeclarativeCoverWindow::DeclarativeCoverWindow:62 - DeclarativeCoverWindow: You should be calling QQuickWindow::setDefaultAlphaBuffer(true) before creating windows. Failing to do so will result in suboptimal performance. [W] DeclarativeCoverWindow::DeclarativeCoverWindow:63 - DeclarativeCoverWindow: You also won't have cover transparency.
The Following User Says Thank You to solbrit For This Useful Post: | ||
Telegram | Openrepos | GitHub | Revolut donations