Questions tagged as 'python'

1
answer

Make it change QLabel

I am practicing with PyQt and I have done an exercise that prints on the console which button I press, then I wanted to change it so that it appears in QLabel , pro gives me an error    File "call.pyw", line 30, in b1_clicked    ...
asked by 06.10.2017 / 17:46
0
answers

Object not pickleable running multiprocessing

I have a script that scrapes a data table from the web, so that each node represents a row, and inside the tag is information that I want to obtain. The linear sequence code works fine, but I have decided to try to execute it asynchronously with...
asked by 14.11.2017 / 09:56
0
answers

Problem sending files larger than 23 MB per socket

I have a class that inherits from Process that takes advantage of a connection SSH to do a port-forwarding to a remote machine and send a certain number of bytes. import socket from multiprocessing import Process,Pipe class SshC...
asked by 14.11.2017 / 23:42
1
answer

Python client / server

I'm doing a client and a server with sockets. The client sends an option (1,2,3) and the server returns the result. In option 1 I send a command (ipconfig) and it returns the result, but then to re-execute another command I have to press agai...
asked by 20.09.2017 / 17:10
0
answers

Use PyQt5 with Qgis 2.99 in Windows

I want to be able to program in Qdesigner, therefore I install PyQt5, GIS applications, importing QGIS 2.99 in PyQt to be able to use Qgis I read a lot because I can not do the import of Qgis in python 3.5    Operating System: Windows 7 -...
asked by 22.09.2017 / 14:01
0
answers

Django - Reply with JsonResponse and pdf

I have a view that responds with a JsonResponse. I need to generate a pdf report using the same instance of the Building class (the structure variable). For example, the view returned by a Json is: @login_required def buildings(reque...
asked by 04.10.2017 / 16:18
1
answer

Close a window from python

I used the library code os to open a google window. import os os.startfile("C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Google Chrome") I would like to add time.sleep and then close that window, but I have no idea how to do it.  ...
asked by 04.10.2017 / 19:55
1
answer

ImportError: DLL load failed using sklearn

I have a Laptop with Win10 and I am working in Python3.6, and as a development environment I use PyCharm. I have installed the following packages through Pip: cycler (0.10.0) matplotlib (2.0.2) nose (1.3.7) numpy (1.13.1) pandas (0.20.3) p...
asked by 25.09.2017 / 19:30
1
answer

Read files in python

I need to read a file in python and look for the words that end with ing in it. I had already done my code in C and it worked, now when I pass it to python I run into the problem that I can not read the file. I hope you can help me def lec...
asked by 24.09.2017 / 04:44
1
answer

How to use subprocess

I do not know if there is any way to capture what comes out in the cmd, and tried to do this, it shows me the information but it does not generate the file and it throws me this error: Traceback (most recent call last): File "comandos.py",...
asked by 24.09.2017 / 15:54