NameError: name 'pyver' is not defined

שולמית מירל shulamitmi3 at
Thu Mar 6 07:53:46 CET 2014


We have python 2.6 & 3.2 installed on Sun solaris.
When running py utility, we get the below error:

"NameError: global name 'execfile' is not defined"

EXCEPTION: [Errno 17] File exists: './LOGS'
Traceback (most recent call last):
  File "", line 134, in <module>
  File "/bzqchome/bzq/ccbzq/mb_ccbzq/Perforce/p4convert/", line 61, in readconfig
    execfile(configfile,globals()) # read in the config file - must be valid Python, evaluated in the context of this file
NameError: global name 'execfile' is not defined

How to solve this problem?

Thank you!

More information about the Python-list mailing list