sys.argv[0] - 'module' object has no attribute 'argv'

  • Thread starter =?ISO-8859-1?Q?Thomas_N=FCcker?=
  • Start date
?

=?ISO-8859-1?Q?Thomas_N=FCcker?=

Hi!

I have the following problem within a program, that is using the
python dll. With this program i want to use Tkinter, but after setting
all paths i get the following error:

Traceback (most recent call last):
File "c:/mtt/bg_private_area/truefalsetest.py", line 32 in ?
ListSelection(datal)

File "C:\Prog1\MttDialogs.py", line 324 in ListSelection
root = Tk()

File "C:\Prog1\lib\lib-tk\Tkinter.py", line 1491, in __init__
baseName = os.path.basename(sys.argv[0])

AttributeError: 'module' object has no attribute 'argv'
Redirected about to stop, stderr

sys and os are internal modules i didn't touch - so i think it must be
a problem of the configuration of Python or the corresponding
compilation.
It would be great if somebody could help me with this problem!

Thomas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top