Click here to Skip to main content
15,878,959 members
Home / Discussions / Python
   

Python

 
AnswerRe: How to secure Python application using license key? Pin
Gerry Schmitz15-Nov-22 12:04
mveGerry Schmitz15-Nov-22 12:04 
QuestionHow to set activation system to ready python project? Pin
MR-XAN77715-Oct-22 22:38
MR-XAN77715-Oct-22 22:38 
AnswerRe: How to set activation system to ready python project? Pin
Richard MacCutchan16-Oct-22 0:48
mveRichard MacCutchan16-Oct-22 0:48 
Question[Help]H.W issues Pin
אנטון מוטרוק 202115-Oct-22 7:10
אנטון מוטרוק 202115-Oct-22 7:10 
AnswerRe: [Help]H.W issues Pin
Richard MacCutchan15-Oct-22 9:05
mveRichard MacCutchan15-Oct-22 9:05 
QuestionError - 'module' object has no attribute 'askopenfilename' Pin
s yu13-Oct-22 2:59
s yu13-Oct-22 2:59 
AnswerRe: Error - 'module' object has no attribute 'askopenfilename' Pin
Richard MacCutchan13-Oct-22 3:12
mveRichard MacCutchan13-Oct-22 3:12 
QuestionUnexpected token 'root' Pin
s yu12-Oct-22 5:45
s yu12-Oct-22 5:45 
Using Python 2.7 and run in VS2019, my Python script has errors. Mycode is below
Python
import os
import arcpy
import numpy as np
import pandas as pd
import tkinter
from tkinter import filedialog
import time
import zipfile
...
def getfile(title, filetype, ext):
    root = tkinter.Tk() root.withdraw()
...

A red wave-line is below the
root.withdraw()
, and the error message is
Unexpected token 'root' 
.
In my CPU, the
Anaconda3
is installed
C:\Users\...\Anaconda3\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\tkinter
. In my Environmental Variables, there is such an item as
C:\Users\...\Anaconda3

How to debug it? Thanks if you can help.
AnswerRe: Unexpected token 'root' Pin
Richard MacCutchan12-Oct-22 6:39
mveRichard MacCutchan12-Oct-22 6:39 
GeneralRe: Unexpected token 'root' Pin
s yu12-Oct-22 7:28
s yu12-Oct-22 7:28 
GeneralRe: Unexpected token 'root' Pin
Richard MacCutchan12-Oct-22 7:57
mveRichard MacCutchan12-Oct-22 7:57 
GeneralRe: Unexpected token 'root' Pin
Dave Kreskowiak12-Oct-22 12:08
mveDave Kreskowiak12-Oct-22 12:08 
GeneralRe: Unexpected token 'root' Pin
s yu13-Oct-22 2:28
s yu13-Oct-22 2:28 
Questionhello, good day, does anyone know how to solve this problem? It would help me a lot if you could explain how to do it Pin
Member 157924299-Oct-22 18:35
Member 157924299-Oct-22 18:35 
AnswerRe: hello, good day, does anyone know how to solve this problem? It would help me a lot if you could explain how to do it Pin
Richard MacCutchan9-Oct-22 22:16
mveRichard MacCutchan9-Oct-22 22:16 
AnswerRe: hello, good day, does anyone know how to solve this problem? It would help me a lot if you could explain how to do it Pin
Reverend Jim10-Jun-23 4:51
Reverend Jim10-Jun-23 4:51 
QuestionCan you have a virtual environment based on a virtual environment? Pin
Chris Maunder5-Oct-22 12:16
cofounderChris Maunder5-Oct-22 12:16 
AnswerRe: Can you have a virtual environment based on a virtual environment? Pin
trønderen5-Oct-22 12:34
trønderen5-Oct-22 12:34 
AnswerRe: Can you have a virtual environment based on a virtual environment? Pin
Richard MacCutchan5-Oct-22 22:54
mveRichard MacCutchan5-Oct-22 22:54 
GeneralRe: Can you have a virtual environment based on a virtual environment? Pin
Chris Maunder18-Oct-22 3:16
cofounderChris Maunder18-Oct-22 3:16 
GeneralRe: Can you have a virtual environment based on a virtual environment? Pin
Richard MacCutchan18-Oct-22 3:45
mveRichard MacCutchan18-Oct-22 3:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.