Re: WinCVS installation - python installed but not recognized
"ChikChik84" <[email protected]> Sat, 10 Oct 2009 11:17:27 -0000
| Newsgroups | gmane.comp.version-control.cvs.gui.user |
|---|---|
| Message-ID | <[email protected]> |
I have exactly the same problem... "NameError: name 'StringVar' is not defined" What would be the correct solution to fix this? I guess this error is not because of WinCvs or Python, it might be because of some issue in the way the Python scripts are written. However, I haven't verified this yet. If my assumption is correct, this error would not occur with older version of Python. Anyways, if anyone has found a solution by now, please post it to this thread. --- In [email protected], Critter <critter@...> wrote: > > Guy Rouillier wrote: > > > > Mike wrote: > > > I have the same problem, and subscribed to this group to get the > > answers. > > > > > > Python 2.6 > > > WinCVS 2.0.9.1 (the latest version), downloaded from wincvs.org > > > WinXP SP1 > > > > > > WinCVS warn me that Python isn't installed, but it installed (for me > > > only, not for all users). > > > I'm sorry, my question is stupid. There is an option, which contain the > path to Python's DLL library. > From WinCVS' menu: > Admin->Preferences->WinCvs->(Programs)->PythonDLL > And there we can select the path for the dll. > > But... > > It write many error messages in the log: > > Python 2.6.1 (r261:67517, Dec 4 2008, 16:51:00) [MSC v.1500 32 bit > (Intel)] on win32 > Error loading E:\Program Files\!Programming\_Version > Control\WinCVS\Macros\BrowseRepoTk.py: > Traceback (most recent call last): > File "E:\Program Files\!Programming\_Version > Control\WinCVS\PythonLib\cvsgui\MacroRegistry.py", line 152, in > LoadMacrosRecurs > execfile(filename, self.m_globals) > File "E:\Program Files\!Programming\_Version > Control\WinCVS\Macros\BrowseRepoTk.py", line 4, in <module> > from cvsgui.SafeTk import * > File "E:\Program Files\!Programming\_Version > Control\WinCVS\PythonLib\cvsgui\SafeTk.py", line 130, in <module> > class PersistentStringVar(StringVar, PersistentVar): > NameError: name 'StringVar' is not defined > Error loading E:\Program Files\!Programming\_Version > Control\WinCVS\Macros\ChangeSubstModeTk.py: > Traceback (most recent call last): > File "E:\Program Files\!Programming\_Version > Control\WinCVS\PythonLib\cvsgui\MacroRegistry.py", line 152, in > LoadMacrosRecurs > execfile(filename, self.m_globals) > File "E:\Program Files\!Programming\_Version > Control\WinCVS\Macros\ChangeSubstModeTk.py", line 6, in <module> > from cvsgui.SafeTk import * > File "E:\Program Files\!Programming\_Version > Control\WinCVS\PythonLib\cvsgui\SafeTk.py", line 130, in <module> > class PersistentStringVar(StringVar, PersistentVar): > NameError: name 'StringVar' is not defined > 'module' object has no attribute 'argv' > Error loading E:\Program Files\!Programming\_Version > Control\WinCVS\Macros\cvs2clTk.py: > Traceback (most recent call last): > File "E:\Program Files\!Programming\_Version > Control\WinCVS\PythonLib\cvsgui\MacroRegistry.py", line 152, in > LoadMacrosRecurs > execfile(filename, self.m_globals) > File "E:\Program Files\!Programming\_Version > Control\WinCVS\Macros\cvs2clTk.py", line 6, in <module> > from cvsgui.SafeTk import * > File "E:\Program Files\!Programming\_Version > Control\WinCVS\PythonLib\cvsgui\SafeTk.py", line 130, in <module> > class PersistentStringVar(StringVar, PersistentVar): > NameError: name 'StringVar' is not defined > Error loading E:\Program Files\!Programming\_Version > Control\WinCVS\Macros\ExtendedAddTk.py: > Traceback (most recent call last): > File "E:\Program Files\!Programming\_Version > Control\WinCVS\PythonLib\cvsgui\MacroRegistry.py", line 152, in > LoadMacrosRecurs > execfile(filename, self.m_globals) > File "E:\Program Files\!Programming\_Version > Control\WinCVS\Macros\ExtendedAddTk.py", line 5, in <module> > from cvsgui.SafeTk import * > File "E:\Program Files\!Programming\_Version > Control\WinCVS\PythonLib\cvsgui\SafeTk.py", line 130, in <module> > class PersistentStringVar(StringVar, PersistentVar): > NameError: name 'StringVar' is not defined > Error loading E:\Program Files\!Programming\_Version > Control\WinCVS\Macros\RecursiveAddTk.py: > Traceback (most recent call last): > File "E:\Program Files\!Programming\_Version > Control\WinCVS\PythonLib\cvsgui\MacroRegistry.py", line 152, in > LoadMacrosRecurs > execfile(filename, self.m_globals) > File "E:\Program Files\!Programming\_Version > Control\WinCVS\Macros\RecursiveAddTk.py", line 6, in <module> > from cvsgui.SafeTk import * > File "E:\Program Files\!Programming\_Version > Control\WinCVS\PythonLib\cvsgui\SafeTk.py", line 130, in <module> > class PersistentStringVar(StringVar, PersistentVar): > NameError: name 'StringVar' is not defined > Error loading E:\Program Files\!Programming\_Version > Control\WinCVS\Macros\TemplateMacroTk.py: > Traceback (most recent call last): > File "E:\Program Files\!Programming\_Version > Control\WinCVS\PythonLib\cvsgui\MacroRegistry.py", line 152, in > LoadMacrosRecurs > execfile(filename, self.m_globals) > File "E:\Program Files\!Programming\_Version > Control\WinCVS\Macros\TemplateMacroTk.py", line 6, in <module> > from cvsgui.SafeTk import * > File "E:\Program Files\!Programming\_Version > Control\WinCVS\PythonLib\cvsgui\SafeTk.py", line 130, in <module> > class PersistentStringVar(StringVar, PersistentVar): > NameError: name 'StringVar' is not defined > > > > What the problem? > > > > > [Non-text portions of this message have been removed] > ------------------------------------ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/cvsgui/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/cvsgui/join (Yahoo! ID required) <*> To change settings via email: mailto:[email protected] mailto:[email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/