Questions tagged as 'python'

0
answers

I want to open a video from my desktop with python

I use this code but it marks me access denied. what I want to do is that from the interface that I create I can open a video and play it from that interface import os from tkinter import * app = Tk() app.title('Video Player') Fcanvas = Canva...
asked by 04.10.2017 / 19:19
1
answer

Class Def Python Try / Except

I'm looking for someone to help me with funciones and clases python. I had always worked with functions but never with functions within functions. When I wanted to run the program I did not perform any of my functions until I chang...
asked by 13.10.2017 / 16:08
2
answers

Dump program output to file

Good afternoon, I am doing a program that is able to obtain certain information from two domains entered by the user. I would like to dump the information obtained in a text file and then analyze it but I am having some problems with that .....
asked by 07.10.2017 / 14:04
2
answers

Syntax Error in print

I am new using Python so I am taking a course. Our challenge was to make a small program that calculates in what year you will be 100 years old. In line 8, I am marked with an error in the syntax, how can I solve it? Here is my code: import st...
asked by 08.10.2017 / 02:11
0
answers

Syntax error, "ParseError: bad input on line 9"

I am learning Python and I have this exercise:    4.6 Write to program to prompt the user for hours and rate per hour using input to compute gross pay. Award time-and-a-half for the hourly rate for all hours worked above 40 hours. Put the log...
asked by 23.11.2017 / 21:34
1
answer

Web service in python

Hello, I am really new to this and I want to connect to the web service of the bank of Mexico to get the exchange rate, which I am doing in Python. Until now I have managed to connect to the banxico web service with the following code: from...
asked by 23.11.2017 / 20:49
1
answer

WebDriver in Python with Pycharm does not work

These are the imports:    Update to the latest version of Selenium from lib2to3.pgen2 import driver import time from selenium import webdriver import datetime driver = webdriver.Chrome() driver.maximize_window() And here is the program...
asked by 23.11.2017 / 20:38
1
answer

Error using the pip command

Goodbye everyone, doing a proof of concept at home I found that when using the command "pip3 install -r requeriments.txt" I missed the following error: No command 'pip3' found, did you mean: Command 'pip' from package 'python-pip' (universe)...
asked by 25.10.2017 / 09:26
1
answer

Why does not raw_input () work for me? [duplicate]

In Python 3.6.2 in my Shell I put: print ("Hola mundo") raw_input() I execute it and it sends me this error: multiple statements found while compiling a single statement     
asked by 02.10.2017 / 09:03
0
answers

Django REST framework returns "Got AttributeError when attempting to get a value for field"

The problem I have is when I try to access the api in link is throwing me this error:    Got AttributeError when attempting to get a value for field name on serializer BattleSerializer . The serializer field might be incorrectl...
asked by 02.10.2017 / 03:32