Questions tagged as 'python-2.7'

1
answer

Loguin API AOL Token

I'm looking to log in to a site through Python. I do not know how to do it since it is through its API, I leave here the information provided by the API to log me in. It is really necessary that you do it through python. I have logged through...
asked by 22.11.2017 / 16:19
1
answer

Reverse the bits of each byte of a string

I have a string byte generated by the Random module of the PyCrypto library in this way: c = Random.new().read(13) Now, I want to invert the value of the bits that make c with the unary operator ~ , but I can not do it because...
asked by 09.11.2017 / 14:39
1
answer

Dictionary Python call keys

I can not call my key name value. I get error: string indices must be integers, not str . I need if or if I use the for but I do not understand why I get that error diccionario = { "inventorysources":( { 'name': '...
asked by 09.11.2017 / 13:08
1
answer

Problem when comparing two unicode variables in Python 2.7

I have a problem comparing two unicode variables in python 2.7. What I want to do in my program is open a file with characters (they are specifically Japanese characters) and compare with a series of characters of the same type entered by the us...
asked by 30.09.2017 / 00:53
1
answer

Show SQL Server fields in Telegram

I have the following code in python with connection to SQLServer database made in ubuntu (it is a bot for telegram): import pymssql from telegram.ext import Updater, CommandHandler, MessageHandler, Filters import logging logging.basicConfig(...
asked by 26.07.2017 / 00:14
1
answer

Valid column name SQL Server-Python

I am developing a small application that depends on SQL Server and development in Python , this takes data of Sp of SQL Server that it has by default of name: xp_readerrorlog 6, 1, N'login', N'failed' As you see,...
asked by 23.06.2017 / 17:03
1
answer

raise NeedDownloadError ('Need ffmpeg exe.' NeedDownloadError: Need ffmpeg exe)

I'm trying to run an unofficial Instagram API written in Python, after several fixed dependency errors are fixed I'm stuck on this error: File "C:\Users\Pablo\Desktop\txts_pys_phps_programacion\Instagram-API-python-master\InstagramAPI.py", lin...
asked by 14.06.2017 / 18:44
1
answer

WebDriverException: Message: Expected browser binary location, but unable to find binary in default location

I am trying to use Selenium in Python 2.7 and it throws me the following error message.    WebDriverException: Message: Expected browser binary location, but   unable to find binary in default location, no   'moz: firefoxOptions.binary' capab...
asked by 19.10.2017 / 11:22
1
answer

List dictionary, tour Python values

I want to go through a dictionary that has lists within Lista = {'829690':['testmartin','--test$2--']} I need that in my function For key in ... read me testmartin and --test$2-- Here is everything I have to do with...
asked by 18.10.2017 / 22:22
1
answer

method of. it does not work the way I thought

I want to create a deck of cards that gets the first card after it shuffles from random import shuffle def doing_deck(): value = ['a','2','3','4','5','6','7','8','9','t','j','q','k'] suits = ['H','D','S','C',] cards = [] fo...
asked by 12.04.2017 / 18:55