Questions tagged as 'python'

0
answers

Error installing pyproj W10

Inside my virtual desktop (WWII) I have pandas installed, bokeh and when I install pyproj, I get errors. Initially I was asking for Visual c ++ 14.0, after installing it I get the following error when installing pyproj. use python 3.7.0...
asked by 18.11.2018 / 20:04
1
answer

Remove the name of the file in Python3

I am working on a program which downloads YouTube videos and converts them to an audio file of any format, either by giving a link or a search term and I have a problem with collecting the name of the downloaded file, since it can be downloaded...
asked by 13.11.2018 / 12:34
0
answers

Error connecting pyodbc to external server

Hi, I'm connecting my application to an external database server sql server 2008 R2 and I can not connect, it gives me the following error    pyodbc.OperationalError: ('HYT00', '[HYT00] [unixODBC] [Microsoft] [ODBC Driver 13 for SQL Server] L...
asked by 10.11.2018 / 17:36
1
answer

I try to replace a few bytes of a binary file, but it does not do it correctly, in Python

Anyone with experience in file manipulation? 1st Code block, create a text file. 2nd Code block, replaces the first letters of the file leaving the rest intact. (ALL CORRECT) The input is only for pausing. 3rd code block, try to...
asked by 11.11.2018 / 22:17
0
answers

Extract data from a table to fill a combobox in django

model.py class Animal(models.Model): id_animal = models.PositiveIntegerField() nom_animal = models.CharField(max_length=50) edad_animal = models.PositiveIntegerField() condi_animal = models.TextField() id_especie = models.F...
asked by 11.11.2018 / 20:34
0
answers

How to calculate the total money sold by each vendor, and the number of units sold of each product

Here in the image you will see the approach and the exercise as I carry it. and I also leave the code, just missing the last part of the exercise where you must calculate the total money sold by each seller, and the number of units sold of each...
asked by 10.11.2018 / 20:44
0
answers

Send a txt print to a USB printer in python

My doubt is that I want to print a txt file inside a Python program, and I'm also looking for a way to press a certain key or do something with the keyboard to print, because I want it inside a while edit: I have ubuntu 18.04 LTS and my print...
asked by 10.11.2018 / 23:57
1
answer

problem with the Sorting in a QTableWidget

I'm putting together a table with QTableWidget in PyQt5 .. I set the sortingEnabled to True , but the problem is that it does not sort the numbers well. For example, if I'm 20, 201 and 30, sort them as follows:...
asked by 14.11.2018 / 18:36
1
answer

Change a field of the parent class in the Django models

I have a parent class where I have an attribute that I want to modify according to the child class: class Service(models.Model): # otros atributos SERVICE_TYPE = { 'None': 'Unknown service type', 'visa': 'Visa', } ser...
asked by 09.11.2018 / 20:53
1
answer

Error too many values to unpack

When I fill out the form, the data stores it correctly in the database, but the form does not work again and the error "too many values to unpack" appears. What can I do? Here is my template: <div class="col-md-20 animate-box">...
asked by 07.11.2018 / 20:43