Posts by EiAlex • 56 points
6 posts
-
0
votes1
answer1304
viewsA: pyodbc.Interfaceerror: ('IM002', '[IM002] [Microsoft][ODBC Driver Manager] Name of data source not found
import pyodbc def retorna_conexao_sql(): server = "ALEXANDRE-PC\ARC" database = "DB_ARC" username = "sa" password = "#abc123#" cnxn = pyodbc.connect('DRIVER={ODBC Driver 17 for SQL…
-
0
votes1
answer82
viewsA: Module named 'Tkinter' not found - python
Tkinter has been since Python 3.1, ttk where they are included in all standard Python distributions. I recommend installing the "Activepython" distribution of Activestate, which includes everything…
-
0
votes1
answer359
viewsA: Convert json to Dictionary
Your JSON is probably an array with a single or multiple objects inside, so when you read it, you get a list with a dictionary inside. You can access your dictionary by accessing the value…
-
1
votes1
answer158
viewsA: Get a specific XML field
with the help of the xmltodict library available at link you can perform the xml parser for Dict or json and also perform the return path. also created a gist to expand this code a little.…
-
0
votes4
answers3254
viewsA: GIT error: pathspec 'master' Did not match any file(s) known to git
you can use git branch to list later git checkout {NOME_BRANCH}, go back the last commit but keep the information git reset HEAD~1. For your convenience I recommend using the graphical version of…
-
-1
votes1
answer138
viewsA: JO KEN PO’s game gone wrong
Analyzing your code I found a simple and quick solution. The entity you choose is receiving a string, I suggest adding an entire type cast to perform the conversion. choice = int (choice)…