Questions tagged as 'python'

1
answer

Error django_session

I am deploying my application and when I try to login it gives me this error, my application works with 2 database 1 with postgresql and the other sql server that is on an external server, the users are at the base data postgres , t...
asked by 19.09.2018 / 15:54
1
answer

Using PYQT5 When clicking on Label The function is not executed

Generate a clcik action to a Label with an associated pixmap, when clicking on the label, only visualize the QMessageBox that you put as a reference, the function that changes the color to the pixmap does nothing. I leave the code and hopefully...
asked by 12.09.2018 / 22:32
0
answers

2D collisions in pygame

I already have the collision by means of a library function pygame . The function returns True each time a collision is generated. My problem is this: I want to make that when a collision is True I can not transfer that...
asked by 14.09.2018 / 04:37
2
answers

Get the number of common elements from two lists

I am implementing the python code for this statement: Implement a function called cantAparicionesSub that take two integer lists as a parameter, and calculate the amount of elements of the first list that are also in the second. Also return a li...
asked by 25.09.2018 / 05:27
0
answers

Robobrowser to login in a form

I'm trying to login in a web form: from robobrowser import RoboBrowser s = requests.Session() browser = RoboBrowser(session=s, history=True, parser='html.parser') browser.open('https://www.miweb.com/') print(str(browser.parsed)) form = brows...
asked by 13.09.2018 / 10:17
1
answer

Upload an image with django 2.0

I need to upload an image in the administration site or in another html page, I have a model which has an ImageField attribute, I need once it is assigned an image to be able to visualize it. Thanks in advance to any help     
asked by 13.09.2018 / 19:42
0
answers

Problems with script to view and eject users

I'm doing a script with python3 in linux to let me know when someone is connected to my system and allows me to throw the user I want. I have this script and it works with graphical interface with the tkinter library. The problem is that when I'...
asked by 11.09.2018 / 17:47
0
answers

Error with ibm_db on Mac os High Sierra

I am developing a project with db2, I recently changed my Linux machine for a Mac (due to the company) and I had a problem that I still can not solve. As much as I try I can not run the ibm_db module with python and it shows me the following e...
asked by 11.09.2018 / 16:50
0
answers

I can not access the property of a web form with Robobrowser

I'm trying to access the content of a website but for that I have to cover the zip code. When I try to access the property 'cl_postal_code' I get an error. What can be happening? from robobrowser import RoboBrowser browser = RoboBrowser(histo...
asked by 12.09.2018 / 15:33
0
answers

Error installing pygame

I'm trying to install pygame in my python 2.7. I do it in this python because for some reason if I try to install pip in python 3.7 it will not let me. From the terminal I entered: sudo pip install pygame And supposedly installed it well, b...
asked by 19.09.2018 / 22:15