Questions tagged as 'python'

0
answers

how to copy data from one column to another openpyxl?

Dear, I am working with openpyxl and I need your help I want to copy the data from the A - B column to the C - D column but that the B data is divided by 10. and A's data is as is. How can i solve this? the other steps and I have them I...
asked by 22.12.2017 / 03:57
1
answer

Red Hat 6 - Httpd24 - Django - mod_wsgi

I find a server with Red Hat 6 OS, this one by default comes with an httpd service that we do not want to use. Therefore I install httpd 2.4.18 as a second apache service. More or less in this link you can identify how it was done. Now we w...
asked by 26.02.2018 / 18:43
0
answers

Run python script using C # .NET

Good morning. I'm making an C# .NET application that needs to call a script of python . I tried to call the script through the library IronPython : using IronPython.Hosting; using Microsoft.Scripting.Hosting; p...
asked by 04.01.2018 / 00:02
2
answers

How to apply a destroy () to a Top Level window?

I want to make my top level window close when I press the "Close" button that is located inside the top level itself. Could you tell me what's wrong? My code is as follows: def win2 (): t1 = Toplevel(bg="Brown") t1.title("Modificar Dat...
asked by 19.01.2018 / 23:09
0
answers

How many processes does a multi-process webserver support?

I have a server that must respond to multiple PCs at the time, but some respond to others not. Sometimes an alert comes up with the phrase: "Bad Gateway". This led me to suppose that the server is not able to receive many requests, or is over...
asked by 20.01.2018 / 15:48
0
answers

When using base64 on a string of bytes I receive the error 'utf8' codec can not decode byte 0x86 in position 2: invalid start byte

I'm trying to encrypt a file through a web api that uses Flask. First I read the bytes of the file, I put it in a json encoding with base64 and I send it in a post to the api: with open('/root/Desktop/fichero.txt', 'rb') as outfile: dat...
asked by 29.11.2017 / 12:26
1
answer

Absence of the first record in the table when filling a Treeview with the result of a query

I am still a novice in Python and I have a problem that has not been solved. I am creating a form to feed / view / modify ... records from a database in PostgreSQL and among other options I want to dump the data from the database to a Treeview...
asked by 11.12.2017 / 20:02
2
answers

How to use handle_uploaded_file in Django

Hello, I'm using handle_uploaded_file in Django and it throws me the following error: MultiValueDictKeyError at / restore / "'file'" Here I leave my code to see if you can help me and know what happens This is the form.py : class...
asked by 12.12.2017 / 16:27
0
answers

Logging on Twitter with requests

I'm trying to make a Python script to log into Twitter with requests (through another site) based on a PHP script that I made that worked. But throw the next error    Traceback (most recent call last): File   "C: /Users/User/Desktop/instabot-...
asked by 11.12.2017 / 14:29
1
answer

Problem with scrollbar in a Canvas, appears outside it

I'm trying to create a Canvas with a ScrollBar in order to load an image and manipulate it. I have the following code: from tkinter import * from tkinter import Tk from tkinter import PhotoImage from tkinter import Canvas fro...
asked by 08.02.2018 / 19:38