qiskit.providers.ibmq.exceptions.IBMQBackendApiError: 'Error submitting job:....  (Caused by SSLError(SSLError(1, \'[SSL:  WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1056)....   I used a basic Qiskit tutorial within a Conda environment, Python3.7, Ubuntu 18. The was no problem getting it to load account with token and display the following: ibmq_qasm_simulator has 0 queued and simulated qubits ibmqx2 has 241 queued and 5 qubits ibmq_16_melbourne has 3681 queued and 15 qubits ibmq_vigo has 393 queued and 5 qubits ibmq_ourense has 507 queued and 5 qubits ibmq_valencia has 0 queued and 5 qubits ibmq_armonk has 3 queued and 1 qubits ibmq_athens has 13 queued and 5 qubits ibmq_santiago has 17 queued and 5 qubits  This is the section of code which generated the error: from qiskit.tools.monitor import job_monitor backend = provider.get_backend('ibmq_qasm_simulator') config = backend.configuration() job = q.execute(circuit, backend, shots=10) job_monitor(job)  I found one reference to the issue being on their cloud and it suggested using a VPN or different Network. I also setup an IBM cloud account, but there does not appear to be a way to incorporate that into qiskit. The next thing I tried was seeing if the IP address of their cloud link being called would work just in a simple browser window along the lines of a suggestion about safe.io intercepting the SSL on Macs. I also tried a few things related to OpenSSL and reinstalling that bit etc... no luck. The qiskit package was installed using PIP within Conda. QisKit Version: qiskit-terra: 0.16.1 qiskit-aer: 0.7.1  qiskit-ignis: 0.5.1  qiskit-ibmq-provider: 0.11.1 qiskit-aqua: 0.8.1  qiskit: 0.23.1
122582
I have been trying to execute the quantum circuit in the backend of the IBM 16 qubit Melbourne machine. I end up getting IBMQBackendApiError: 'Error submitting job: &quot;HTTPSConnectionPool(): Max retries exceeded with url: **** SignedHeaders= ** Signature= ****(Caused by SSLError(SSLError(1, \'[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1108)\')))  but when I check my IBMQ account the status of the job is Creating. I do not understand why I get such an error. Can someone help to identify what exactly the issue is?
44228
I am trying to run a standalone application. However, it does not run the program because of mentioned error in title. Here is my code:  from qgis.core import * from qgis.gui import * from qgis.utils import * from PyQt5.QtCore import * from PyQt5.QtGui import *  app = QgsApplication([], True) path = "C:/OSGeo4W64/apps/qgis-dev" app.setPrefixPath(path, True) app.initQgis()  canvas = QgsMapCanvas() title = "PyQGIS Standalone Application Example" canvas.setWindowTitle(title) canvas.setCanvasColor(Qt.white)  layer_info = 'LineString?crs=epsg:4326' layer = QgsVectorLayer(layer_info, 'MyLine', "memory") pr = layer.dataProvider() linstr = QgsFeature() wkt = "LINESTRING (1 1, 10 15, 40 35)" geom = QgsGeometry.fromWkt(wkt) linstr.setGeometry(geom) pr.addFeatures([linstr]) layer.updateExtents() QgsProject.instance().addMapLayer(layer)  canvas.setExtent(layer.extent()) canvas.setLayers([layer]) canvas.zoomToFullExtent() exitcode = app.exec_() QgsApplication.exitQgis() sys.exit(exitcode)   When I run it, I get this error:  Traceback (most recent call last):   File "C:/Users/DELL/Desktop/MyMap/myMap.py", line 1, in &lt;module&gt;     from qgis.core import *   File "C:\OSGeo4W64\apps\qgis-dev\python\qgis\__init__.py", line 72, in &lt;module&gt;     from qgis.core import QgsFeature, QgsGeometry   File "C:\OSGeo4W64\apps\qgis-dev\python\qgis\core\__init__.py", line 34, in &lt;module&gt;     from qgis._core import *   ImportError: DLL load failed: The specified module could not be found.  Python version is: 3.6 PyQt   version is: PyQt5.9 Windows 10 - 64bit  I also add many path:  %SystemRoot%\system32 %SystemRoot% %SystemRoot%\System32\Wbem %SYSTEMROOT%\System32\WindowsPowerShell\v1.0\ C:\OSGeo4W64 C:\OSGeo4W64\apps C:\OSGeo4W64\apps\gdal-dev C:\OSGeo4W64\apps\gdal-dev\bin C:\OSGeo4W64\apps\gdal-dev\pymod3\Lib\site-packages C:\OSGeo4W64\apps\grass\grass-7.2.2\bin C:\OSGeo4W64\apps\Python36 C:\OSGeo4W64\apps\Python36\Scripts C:\OSGeo4W64\apps\Python36\DLLs C:\OSGeo4W64\apps\Python36\lib\site-packages C:\OSGeo4W64\apps\qgis-dev C:\OSGeo4W64\apps\qgis-dev\bin C:\OSGeo4W64\apps\qgis-dev\lib C:\OSGeo4W64\apps\qgis-dev\python C:\OSGeo4W64\apps\qgis-dev\python\qgis C:\OSGeo4W64\apps\Qt5 C:\OSGeo4W64\apps\Qt5\lib C:\OSGeo4W64\bin C:\OSGeo4W64\apps\qgis-dev\python C:\OSGeo4W64\apps\Python36\lib C:\OSGeo4W64\include C:\Users\Mustafa Uçar\AppData\Roaming\QGIS\QGIS3\profiles\default C:\Users\Mustafa Uçar\AppData\Roaming\QGIS\QGIS3\profiles\default\QGIS   How can I fix this error?
45404
When I run followind command: qdbus I get following error:  qdbus: could not find a Qt installation of ''  I've read alot of old questions with same error but not one helps me.  I've tried execute following commands sudo apt-get install qt5-default + same for for qt4, etc. but still have same error.  If any additional information required for this issue - please add comment and I'll provide info.
26473
I want to create self signed certificate for the website. The old certificate expired few days ago. There are more than one NameVirtualHosts hosted on systems. The commands I am using to create certificate are taken from one tutorial website and are:  openssl genrsa -des3 -out server.key 1024 openssl req -new -key server.key -out server.csr  cp server.key server.key.org openssl rsa -in server.key.org -out server.key openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt   After this in ssl.conf file I have specified under VirtualHost section along with old settings done by other admin  SSLEngine on SSLCertificateFile &lt;full_path&gt;/server.crt SSLCertificateKeyFile &lt;full_path&gt;/server.key   On starting the server I am getting following messages in log file and server fails to start.  In error_log file messages are   [Mon Jun 01 23:52:46 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)   In ssl_error_log file messages are   [Mon Jun 01 23:52:46 2009] [error] Init: Private key not found  [Mon Jun 01 23:52:46 2009] [error] SSL Library Error: 218710120 error:0D094068:asn1 encoding routines:d2i_ASN1_SET:bad tag  [Mon Jun 01 23:52:46 2009] [error] SSL Library Error: 218529960 error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag  [Mon Jun 01 23:52:46 2009] [error] SSL Library Error: 218595386 error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error  [Mon Jun 01 23:52:46 2009] [error] SSL Library Error: 218734605 error:0D09A00D:asn1 encoding routines:d2i_PrivateKey:ASN1 lib   I would really appreciate if some one can explain how to solve this. I have tried a few other tutorial website on self signed SSL certificates but none of the steps they mention are working.
24255
I read the summary of deniable encryption on wikipedia:   Then I read a question, by doom123 on security.SE:   But I had a subtly different problem which can be stated as follows:   Alice wants to send Bob the book "Mocking Jay" which is banned in Bob's country.  Alice encrypts "Mocking Jay" to data MJ with the password P1. Using another book of similar size (or by trimming a larger book), say the "The Hobbit", she processes the data MJ and computes password P2.   The solution to this problem will allow Bob to claim that he maintains a copy of "The Hobbit" (assuming that "The Hobbit" is not banned of course), while being able to read  "Mocking Jay". The solution, in theory, should also allow Bob to plausibly deny that there's any other copy hidden in the data "MJ" other than "The Hobbit"; or like the aforementioned security.SE question, should allow "MJ" to hold any number of copies (and thus any number of passwords), providing Bob the excuse of acknowledging only one copy that he has the knowledge of.  The  provided by the user lynks to the question posed by doom123 solves the problem for storing data on a hard-disk. Is there a general solution to this problem?  UPDATE 1 With regards to the answer provided by fgrieu I am slightly modifying the question. Is it possible to add a third layer (and an arbitrary number of further layers) of such encryption? What I mean is, with Mocking Jay, The Hobbit, and Silmarillion (assuming that the books are roughly the same in size) as inputs, is it possible to create an encrypted output say MJTHSI? I am alright with the passwords being the output as well. Decrypting with password P1 will reveal Mocking Jay. If rubber-hose is used password P2 can also be given up revealing The Hobbit (with the intention of ultimately protecting Silmarillion which can be revealed using P3).
89067
after upgrading to Ubuntu 16.10 from 16.04, Anki program does not run. this is the error message:  Traceback (most recent call last):   File "/usr/bin/anki", line 7, in &lt;module&gt;     import aqt   File "/usr/share/anki/aqt/__init__.py", line 12, in &lt;module&gt;     from aqt.qt import *   File "/usr/share/anki/aqt/qt.py", line 22, in &lt;module&gt;     from PyQt4.QtWebKit import QWebPage, QWebView, QWebSettings ImportError: No module named QtWebKit
17197
I have Ubuntu 17.10. My kernel version is 4.14.21-041421-generic. I have downloaded HPLIP 3.17.11 run file from the website. Unfortunately I am unable to compile it. After running the .run file, it starts ./configure, which throws an error regarding net-snmp.  In particular, these are the last lines of configure:  checking for cups ppd install... no checking for foomatic-rip-hplip install... no checking for qt5... no checking for qt4... yes checking for qt3... no checking for policykit... no checking for host machine platform... x86_64 checking for CRYPTO_free in -lcrypto... no configure: error: cannot find net-snmp support (or --disable-network-build)   SNMP is installed:  snmp is already the newest version (5.7.3+dfsg-1.7ubuntu1).   and libsnmp-dev is also installed (version 5.7.3).
40128
I recently tried to run qmon (from Sun Grid Engine job queueing system) and when I do, I get a bunch of warnings that look like this:  Warning: Cannot convert string "intro" to type Pixmap Warning: Cannot convert string "toolbar_job" to type Pixmap Warning: Cannot convert string "toolbar_queue" to type Pixmap Warning: Cannot convert string "toolbar_submit" to type Pixmap Warning: Cannot convert string "toolbar_cplx" to type Pixmap Warning: Cannot convert string "toolbar_host" to type Pixmap Warning: Cannot convert string "toolbar_cluster" to type Pixmap Warning: Cannot convert string "toolbar_sched" to type Pixmap Warning: Cannot convert string "toolbar_calendar" to type Pixmap ...   And then, when the GUI finally appears, all of the icons are replaced by a small dot.  I guess for some reason, the icons cannot be shown.  I tried to look for them in:  /usr/share/gridengine/pixmaps/   and indeed, the *.xpm files are there.  About half a year or so ago, it worked fine.  I guess something happened to my system during an upgrade or update that changed things.  Any ideas on what I should be looking for?  Any log files that could help me?  Thank you!  Ray  PS:  On Ubuntu 13.10.
15710
I saw several bugs and error messages when I was looking by chance into the tool called "logs".  Being a newbie in Ubuntu I have no idea how to deal with these bugs, where to report them or how to fix them.  Any help to guide me here?  The bug I have (which is listed under important) reads:  [Firmware Bug]: TSC_DEADLINE disabled due to Errata; please update microcode to version: 0x52 (or later)
19781
I have located where the error message originates from it is in  line number 221. As I have only a single nvidia driver installed I suspect it is is the same issue. I am not a developer but looking at the code preceding this line I can see the statement.  const char *glob_pattern = "/usr/lib/nvidia-[1-9][0-9][0-9]"  this will pick up nvidia-352/ nvidia-361/ and nvidia-361-prime/ ? on my PC.
19295
I'm having trouble adding a field to a PostGIS table using PyQGIS. Here's my code:  from PyQt4.QtCore import QVariant from qgis.core import *  inLayer = iface.activeLayer() provider = inLayer.dataProvider()  # add field field = QgsField('test_field', QVariant.String) inLayer.startEditing() provider.addAttributes([field]) inLayer.updateFields()  # commit inLayer.commitChanges()   The commit fails and the PostGIS log shows an error:     2015-10-27T08:13:28    1   Erroneous query: ALTER TABLE "received"."env" ADD COLUMN "test_field"  returned 7 [ERROR:  syntax error at end of input      LINE 1: ALTER TABLE "received"."env" ADD COLUMN "test_field"    Seems the call to PostGIS fails to include the column type. Is this a bug, or am I going about this the wrong way?
70546
When we try to send some data to an external web service (REST, POST, JSON), we get the next error:     System.CalloutException: sun.security.validator.ValidatorException:   PKIX path building failed:   sun.security.provider.certpath.SunCertPathBuilderException: unable to   find valid certification path to requested target   If we check the certificate, it's a valid "Go Daddy Secure Certificate Authority - G2".  Also, We have checked that this company is included as a valid Certificate Authority into Salesforce list ().
24922
I want to create a Toffoli gate controlled by n qubits, and implement it in QISKit. Can this be done? If so, how?
73853
I am very new to quantum computing and just try to understand things from a computer scientist's perspective.  In terms of computational power, what I have understood,      100 ideal qubits ...  to [$2^n$ pieces of information]   Now Rigetti Computing has  a 128 qubit computer.   Let's imagine they indeed release it next year.  This leads me to the following thoughts, please correct me if I am wrong:   let's say hypothetically due to the noise about 28 qubits can't be taken into consideration (as used for the fault tolerance for example) that is, we could work with 100 qubits as in the example above.   Could we say then, we have an analog of  i.e. say  64 qubits go for memory and 32 qubits for the instruction set (say remaining 4 are reserved).  Does this mean then (oversimplified!):   we get 2^32 bits equivalent ~ 537 MB worth of "register bits" for CPU instructions, altogether with caches (no idea who might need that but could probably become a many-core "die" see for example ), compared to say 512KB=2^15 bits cache for one level on a classical computer and for "RAM", we get remaining 2^64 bits equivalent = 2.3 exabytes worth memory? (way more than current supercomputers have; Google had though  total disk storage of 10 exabytes in 2013)
119262
After downloading Matplotlib to use the Statist Pugin An error has occured while executing Python code:  RuntimeError: module compiled against API version 9 but this version of numpy is 6  Python version: 2.7.5 (default, Mar  9 2014, 22:15:05)  [GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)]  QGIS version: 2.2.0-Valmiera Valmiera,   Later on the message is that statist is also not able to run.  How to solve this problem?
59493
I am getting no errors yet replication is not working. I wonder where I am going wrong?  My master status is                File: mysql-bin.000002         Position: 2006432     Binlog_Do_DB: site3,site2 Binlog_Ignore_DB:    My Slave Status is   *************************** 1. row ***************************                Slave_IO_State: Waiting for master to send event                   Master_Host: 104.131.119.241                   Master_User: drupal                   Master_Port: 3306                 Connect_Retry: 60               Master_Log_File: mysql-bin.000002           Read_Master_Log_Pos: 2006432                Relay_Log_File: mysqld-relay-bin.000003                 Relay_Log_Pos: 2006577         Relay_Master_Log_File: mysql-bin.000002              Slave_IO_Running: Yes             Slave_SQL_Running: Yes               Replicate_Do_DB: site3,site2           Replicate_Ignore_DB:             Replicate_Do_Table:         Replicate_Ignore_Table:        Replicate_Wild_Do_Table:    Replicate_Wild_Ignore_Table:                     Last_Errno: 0                    Last_Error:                   Skip_Counter: 0           Exec_Master_Log_Pos: 2006432               Relay_Log_Space: 2006879               Until_Condition: None                Until_Log_File:                  Until_Log_Pos: 0            Master_SSL_Allowed: No            Master_SSL_CA_File:             Master_SSL_CA_Path:                Master_SSL_Cert:              Master_SSL_Cipher:                 Master_SSL_Key:          Seconds_Behind_Master: 0 Master_SSL_Verify_Server_Cert: No                 Last_IO_Errno: 0                 Last_IO_Error:                 Last_SQL_Errno: 0                Last_SQL_Error:  1 row in set (0.00 sec)
56606
I have read post on that problem (). The problem is even with a sys.path.append it couldn't import processing. It's very frustrated. Here the code I used:  #!/usr/bin/python  def main():     layer = QgsVectorLayer('/path/to/file.shp', "BAT","ogr")     QgsMapLayerRegistry.instance().addMapLayers([layer])      # Testing processing     try :         Processing.runalg("qgis:creategrid")     except:         print "Processing module has not been loaded"      #Check the QgsMapLayerRegistry for the layers     print QgsMapLayerRegistry.instance().mapLayers()     # Check if they are valid     print layer.isValid()  if __name__=="__main__":     import sys     from PyQt4.QtGui import *     from qgis.core import *     app = QApplication([])     QgsApplication.setPrefixPath("/usr", True)     QgsApplication.initQgis()      sys.path.append('home/qsuser/.qgis2/python/plugins')      # try to load processing     try:         from processing.core.Processing import Processing         Processing.initialize()      except:         print "unable to load processing"      main()      QgsApplication.exitQgis()   I could load QGIS and layer is valid that's ok, but processing resist to me. I am on Ubuntu 14.04 I use Pycharm to do it.  I tried on terminal with the python console, it raised this error:  Traceback (most recent call last):   File "&lt;stdin&gt;", line 1, in &lt;module&gt;   File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 572, in _import     mod = _builtin_import(name, globals, locals, fromlist, level)   File "/home/qsuser/.qgis2/python/plugins/processing/__init__.py", line 28, in &lt;module&gt;     from processing.tools.dataobjects import *   File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 572, in _import     mod = _builtin_import(name, globals, locals, fromlist, level)   File "/home/qsuser/.qgis2/python/plugins/processing/tools/dataobjects.py", line 35, in &lt;module&gt;     from processing.core.ProcessingConfig import ProcessingConfig   File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 572, in _import     mod = _builtin_import(name, globals, locals, fromlist, level)   File "/home/qsuser/.qgis2/python/plugins/processing/core/ProcessingConfig.py", line 30, in &lt;module&gt;     from PyQt4.QtCore import QPyNullVariant, QCoreApplication, QSettings ImportError: cannot import name QPyNullVariant   I don't know what I am missing.   Settings :  Qgis 2.12.1-Lyon Ubuntu 14.04 Trusty IDE : Pycharm 5 community Processing : 2.12.2   -- Edit -- And with the changes suggest by mathias kuhn  #!/usr/bin/python  def main():     layer = QgsVectorLayer('/path/to/file.shp', "BAT","ogr")     QgsMapLayerRegistry.instance().addMapLayers([layer])      # Testing processing     try :         Processing.runalg("qgis:creategrid")     except:         print "Processing module has not been loaded"      #Check the QgsMapLayerRegistry for the layers     print QgsMapLayerRegistry.instance().mapLayers()     # Check if they are valid     print layer.isValid()  if __name__=="__main__":     import sys     from qgis.core import *             from PyQt4.QtGui import *     app = QApplication([])     QgsApplication.setPrefixPath("/usr", True)     QgsApplication.initQgis()      sys.path.append('home/user/.qgis2/python/plugins')      # try to load processing     try:         from processing.core.Processing import Processing         Processing.initialize()      except:         print "unable to load processing"      main()      QgsApplication.exitQgis()