Questions tagged as 'python'

1
answer

With does it install kivy in the anaconda environment on mac os x10.9?

I have tried to install as per the instruction: link Error:    (most recent call last): File "", line 1, in File   "/Users/cicerozanoni/anaconda/envs/kivy/lib/python2.7/site-packages/spyderlib/wi dgets / externalshell / sitecustomize.py"...
asked by 20.07.2015 / 03:25
1
answer

Communication between database and app in Python - mini system to get password

Hello, I'm learning python and I decided to do a mini project, a simple system of chips, while I thought about it I came across some doubts and could not find almost anything about it. The program would work as follows, the person takes a fil...
asked by 09.07.2015 / 21:26
1
answer

Remove value from an array

My array is mounted as follows: obstacles = [[x, y], [x, y], ...] I want to remove from the array a position [x, y] But the obstacles.remove() function is shutting down the server when it is run, if I comment on it, the rest wil...
asked by 17.09.2015 / 00:09
1
answer

Working with multiple databases from the same class model

I'm new to Python and I need to implement a solution that every system user must have a separate database, briefly what I need is something like db1 = Persistencia('mysql', 'usuario','minhasenha', '192.168.0.1','banco1') db2 = Persistencia...
asked by 23.07.2015 / 23:14
1
answer

Return values in ForeignKey and ManyToManyField in Django

I have the following Models: Restaurant with a ForeignKey for Cardapio, Cardapio with a ManyToMany for Product, Product with a ManyToMany for DiaPromocao, and I need in the template to display some information such as restaurant, product, price...
asked by 22.05.2015 / 13:51
0
answers

How to use PyOpenGL

Well, I'd like to use the PyOpenGL library in Python, however I'm having trouble installing. I would like to know which version of OpenGL and Python I need to download and install. Thanks for the help right away.     
asked by 17.05.2015 / 16:28
0
answers

Gchart with Django

Hi, I'm developing a Django application that creates graphics. And I've already implemented a line chart using GCharts insert the link description here but it only has one line, and in the example I I've seen how to create the same graph with...
asked by 19.06.2015 / 20:37
1
answer

Format characters need not be specified?

Do the format characters have to be specified? such as: x = "Get rekt m8" print "Eu disse: %r." % x So why did not I have to specify this one and it worked for me? hilarious = False joke_evaluation = "Isn't that joke so funny?! %r"     
asked by 18.03.2015 / 17:45
1
answer

Depending on the seed I put the print of the capabilities does not occur. How to pack?

import random semente=int(input("por favor, digite a semente do gerador aleatório:")) print(" ") print("Início da simulação") random.seed(semente) cap_inicial_1 = random.randrange(20,51) cap_inicial_2 = random.randrange(20,51) cap_i...
asked by 28.03.2015 / 21:02
1
answer

Proxy (corporate) problem using dev_appserver.py - GAE

Hello, I'm having a problem using Google App Engine and would like to know if anyone can help me. On my machine I have installed: Windows XP Python 2.7.6 Google App Engine 1.9.17 (it's the newest one) I made an example applicati...
asked by 15.01.2015 / 11:22