Questions tagged as 'python'

0
answers

error in Vpython help "AttributeError: 'numpy.ndarray' object has no attribute 'x'"

Traceback (most recent call last):   File "C: \ Users \ VAIO PC \ Desktop # realization of the visualization in 3D.py", line 76, in     pos = pos + dt * vel   File "vpython \ cyvector.pyx", line 59, in vpython.cyvector.vector. add Attrib...
asked by 29.04.2018 / 20:11
0
answers

Seemingly nonexistent error in python with pygame

I have a method that converts a "pygame.Font" class to a "pygame.Surface" surface with the method already predefined by pygame in the "pygame.Font" class: .render (). The problem is that sometimes, without apparent sense, the program remains fro...
asked by 21.04.2018 / 13:37
0
answers

generate pdf with Django

I am using a library called weasyPrint to generate a PDF with an HTML template and a CSS. My problem is that it does not load {% load static %} and I can not load the images that carry that pdf. It also does not load {% load bootstr...
asked by 24.04.2018 / 08:08
1
answer

Synchronization interface

Hello, how can I make a login connection to my interface, In other words, my interface is connected, for example, to gmail     
asked by 23.04.2018 / 22:21
0
answers

IndexError: list index out of range, when formatting

I'm trying to format a file, my problem is that if inside "", there is an extra quote ("" ") thunders & throws this error, my code is as follows: with open(entrada, "r") as fichero: datos = fichero.read() datos = list(datos) indice=0 w...
asked by 19.04.2018 / 00:42
0
answers

How do I work with dates in python?

Hi, my question is how can I offer control to the user to enter a date in PYTHON that is not a simple Entry with gray text ... in plan "Ejemplo: 27/10/2014" or "dd/mm/yyyy" . Like there is something similar to a calendar or o...
asked by 21.04.2018 / 09:48
0
answers

How to create a 32-bit exe?

Hi, I have a problem and that is that I have a program which will pass it to exe using cx_freeze, but the exe is 64 bits and I want it to be 32 bits. How can I get it?     
asked by 19.04.2018 / 19:21
0
answers

I can not upload a project to pypi

I'm trying to upload a project to pypi with this command: setup.py sdist upload -r pypitest but I get this error: File "setup.py", line 3, in <module> setup(name='spongebot', version='1.0', packages=find_packages(), description =...
asked by 30.04.2018 / 16:14
2
answers

Convert SQL query into one for Django ORM

My question is this: I want to convert this query sql : SELECT "misuper_calendareventsretailerdelivery"."id", "misuper_calendareventsretailerdelivery"."normal_retailer_delivery_id", "misuper_calendareventsretailerdelivery"."deli...
asked by 18.04.2018 / 17:08
0
answers

django with ldaps

The error that shows the logging of django_auth_ldap is as follows: It returns error:    14090086: SSL routines: SSL3_GET_SERVER_CERTIFICATE: certificate verify failed We need the system to find the certificate as it is done in linux...
asked by 16.04.2018 / 19:59