When I run CUTE for the first time, it creates a
.cuterc file. All seems well, but then (whether I make
any config changes or not) when I close and reopen the
program it appears to corrupt the config file it has
just created, and throws a whole load of errors. This
pattern is repeated every 2 runs.
If I set $PYTHONHOME to /usr/include/python2.4 the
messages about the libraries go away, but the problem
still occurs.
[russ@detritus ~]$ rm -rf .cute/ .cuterc
[russ@detritus ~]$ cute
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
'import site' failed; use -v for traceback
no integer useMonospacedFont found
[russ@detritus ~]$ cat .cuterc
#This file is automatically generated by CUTE.
#Do not modify UNLESS YOU know what you are doing.
from config import *
#executes user pre config
if fileExists("cute.pre_config"):
execfile("cute.pre_config")
#settings
general.maxSelectedStringLengthInDialog = 100
general.docPath = '/usr/share/doc/cute/index.html'
general.theme = Theme.Default
general.mdiMode = MdiMode.ChildframeMode
general.showMessagePanel = 1
general.maxRecentFiles = 20
general.showSidePanel = 1
edit.useUtf8Encoding = 0
edit.lineFeed = EolMode.EolUnix
edit.backspaceUnindents = 0
edit.autoCompletionReplaceWord = 1
edit.autoCompletionCaseSensitivity = 1
edit.autoCompletionThreshold = 5
edit.autoIndent = 1
edit.autoCompletionSource = AutoCompletion.Document
edit.tabWidth = 4
edit.tabIndents = 1
edit.indentationsUseTabs = 1
view.foldMargin = 1
view.cmdToolbar = 1
view.toolbar = 1
view.fullScreenShowToolBar = 1
view.taskbar = 1
view.monospacedFont = 'Courier,10,-1,5,50,0,0,0,0,0'
view.indentationsGuide = 1
view.folding = FoldStyle.PlainFoldStyle
view.fullScreenShowMenuBar = 1
view.statusbar = 1
view.margin = 1
view.lineNumbers = 0
view.zoomLevel = 0
view.useMonospacedFont = 0
view.fullScreenShowCommandBox = 1
view.defaultFont = 'Courier,10,-1,5,50,0,0,0,0,0'
view.whitespaces = WhitespaceVisibility.WsVisible
view.braceMatching = BraceMatch.StrictBraceMatch
view.toggleAllFolds = 1
view.wrapLines = 0
view.eolVisibility = 0
setMainWidgetGeometry(10, 71, 334, 361)
#file history
#project history
addRecentProject("")
# all shortcuts
map("unnamed", "")
map("new", "Ctrl+F, N")
map("open", "Ctrl+F, O")
map("reopen", "Ctrl+F, R")
map("changeWorkingDir", "Ctrl+F, W")
map("close", "Ctrl+F, C")
map("closeAll", "Ctrl+F, Ctrl+C")
map("save", "Ctrl+F, S")
map("saveAll", "Ctrl+F, A")
map("saveAs", "Ctrl+F, Ctrl+S")
map("loadTagsFile", "Ctrl+T, L")
map("unloadTagsFile", "Ctrl+T, U")
map("print", "Ctrl+P")
map("exit", "Ctrl+Q")
map("gotoMatchingBrace", "Ctrl+(")
map("selectToMatchingBrace", "Ctrl+Alt+(")
map("insertCommand", "Ctrl+>")
map("editFilter", "Ctrl+!")
map("blockComment", "Ctrl+#")
map("streamComment", "Ctrl+Alt+#")
map("autoComplete", "Ctrl+Return")
map("find", "Ctrl+S, F")
map("findNext", "Ctrl+S, N")
map("findPrevious", "Ctrl+S, P")
map("findInFiles", "Ctrl+S, G")
map("findSelection", "Ctrl+S, S")
map("enterSelection", "Ctrl+S, E")
map("replace", "Ctrl+S, R")
map("goTo", "Ctrl+S, L")
map("findTag", "Ctrl+T, F")
map("jumpToTag", "Ctrl+T, J")
map("jumpToNextTag", "Ctrl+T, N")
map("jumpToPreviousTag", "Ctrl+T, P")
map("findNextBookmark", "Ctrl+B, N")
map("findPreviousBookmark", "Ctrl+B, P")
map("toggleBookmark", "Ctrl+B, T")
map("renameBookmark", "Ctrl+B, R")
map("toggleCurrentFold", "")
map("toggleAllFolds", "")
map("wrapLines", "")
map("viewBraceMatch", "")
map("viewFullscreen", "F11")
map("viewStatusbar", "")
map("viewToolbar", "")
map("viewCmdToolbar", "")
map("viewWhitespaces", "")
map("viewLineNumbers", "")
map("viewMargin", "")
map("viewFoldMargin", "")
map("viewShowMessagePanel", "")
map("viewShowSidePanel", "")
map("useMonospacedFont", "Ctrl+F11")
map("switchFocusCmdBox", "")
map("switchFocusDoc", "")
map("switchFocusDir", "")
map("switchFocusTagsFile", "")
map("switchFocusPro", "")
map("switchFocusMessages", "")
map("switchFocusStdout", "")
map("switchFocusStderr", "")
map("switchFocusShell", "")
map("switchFocusSearch", "")
map("switchFocusTags", "")
map("compile", "")
map("build", "F7")
map("go", "")
map("stop", "")
map("nextMessage", "")
map("prevMessage", "")
map("openProject", "")
map("newProject", "")
map("closeProject", "")
map("optionsProject", "")
map("toggleAutoIndent", "")
map("showQtConfig", "")
map("editPreConfigFile", "")
map("editPostConfigFile", "")
map("showCutercFile", "")
map("runScript", "Ctrl+R, S")
map("runCurrentFile", "Ctrl+R, F")
map("runPyCommand", "Ctrl+R, C")
map("evalSelection", "Ctrl+R, T")
map("loadSession", "Ctrl+Alt+S, L")
map("saveSession", "Ctrl+Alt+S, S")
map("closeSession", "Ctrl+Alt+S, C")
map("addTool", "")
map("startMacroRecording", "Ctrl+M, (")
map("stopMacroRecording", "Ctrl+M, )")
map("runMacro", "Ctrl+M, R")
map("loadMacro", "Ctrl+M, L")
map("saveMacro", "Ctrl+M, S")
map("buildTagsFile", "Ctrl+T, B")
map("nextWindow", "Ctrl+Alt+Right")
map("previousWindow", "Ctrl+Alt+Left")
map("showWindows", "Ctrl+Space")
map("helpHandbook", "F1")
map("viewLicense", "")
map("viewAbout", "")
map("viewAboutQt", "")
map("redo", "Ctrl+Y")
map("selectAll", "Ctrl+A")
map("undo", "Ctrl+Z")
map("cut", "Shift+Del")
map("copy", "Ctrl+C")
map("paste", "Shift+Ins")
map("clear", "Del")
map("lineDown", "Down")
map("lineDownExtend", "Shift+Down")
map("lineUp", "Up")
map("lineUpExtend", "Shift+Up")
map("charLeft", "Left")
map("charLeftExtend", "Shift+Left")
map("charRight", "Right")
map("charRightExtend", "Shift+Right")
map("wordLeft", "Ctrl+Left")
map("wordLeftExtend", "Ctrl+Shift+Left")
map("wordRight", "Ctrl+Right")
map("wordRightExtend", "Ctrl+Shift+Right")
map("lineEnd", "End")
map("lineEndExtend", "Shift+End")
map("documentStart", "Ctrl+Home")
map("documentStartExtend", "Ctrl+Shift+Home")
map("documentEnd", "Ctrl+End")
map("documentEndExtend", "Ctrl+Shift+End")
map("pageUp", "PgUp")
map("pageUpExtend", "Alt+Shift+PgUp")
map("pageDown", "PgDown")
map("pageDownExtend", "Alt+Shift+PgDown")
map("editToggleOvertype", "Ins")
map("cancel", "Esc")
map("deleteBack", "Backspace")
map("tab", "Tab")
map("backTab", "Shift+Tab")
map("newLine", "Return")
map("VCHome", "Home")
map("VCHomeExtend", "Shift+Home")
map("zoomIn", "Ctrl++")
map("zoomOut", "Ctrl+-")
map("delWordLeft", "Ctrl+Backspace")
map("delWordRight", "Ctrl+Del")
map("lineCut", "Ctrl+L")
map("lineDelete", "Ctrl+Shift+L")
map("lineTranspose", "Ctrl+Alt+T")
map("lowerCase", "Ctrl+U")
map("upperCase", "Ctrl+Shift+U")
map("lineScrollDown", "Ctrl+Down")
map("lineScrollUp", "Ctrl+Up")
map("deleteBackNotLine", "")
map("homeDisplay", "Alt+Home")
map("homeDisplayExtend", "Alt+Shift+Home")
map("wordPartLeft", "Alt+Left")
map("wordPartLeftExtend", "Alt+Shift+Left")
map("wordPartRight", "Alt+Right")
map("wordPartRightExtend", "Alt+Shift+Right")
map("delLineLeft", "Ctrl+Shift+Backspace")
map("delLineRight", "Ctrl+Shift+Del")
map("lineDuplicate", "Ctrl+D")
map("paraDown", "Alt+Down")
map("paraDownExtend", "Alt+Shift+Down")
map("paraUp", "Alt+Up")
map("paraUpExtend", "Alt+Shift+Up")
map("lineCopy", "Ctrl+Shift+T")
#executes user post config
if fileExists("cute.post_config"):
execfile("cute.post_config")
[russ@detritus ~]$ cute
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
'import site' failed; use -v for traceback
Traceback (most recent call last):
File "<string>", line 1, in ?
File "/home/russ/.cute/langs/asm.py", line 9, in ?
asm.CPUInstructions.fore = 0x7F0000L
AttributeError: 'module' object has no attribute
'CPUInstructions'
Traceback (most recent call last):
File "<string>", line 1, in ?
File "/home/russ/.cute/langs/cpp.py", line 9, in ?
cpp.EOLStringNotClosed.fore = 0x0L
AttributeError: 'module' object has no attribute
'EOLStringNotClosed'
Traceback (most recent call last):
File "<string>", line 1, in ?
File "/home/russ/.cute/langs/csharp.py", line 9, in ?
csharp.EOLStringNotClosed.fore = 0x0L
AttributeError: 'module' object has no attribute
'EOLStringNotClosed'
Traceback (most recent call last):
File "<string>", line 1, in ?
File "/home/russ/.cute/langs/diff.py", line 9, in ?
diff.command.fore = 0x7F7F00L
AttributeError: 'module' object has no attribute 'command'
Traceback (most recent call last):
File "<string>", line 1, in ?
File "/home/russ/.cute/langs/docbook.py", line 9, in ?
docbook.asp1.fore = 0xFFFF00L
AttributeError: 'module' object has no attribute 'asp1'
Traceback (most recent call last):
File "<string>", line 1, in ?
File "/home/russ/.cute/langs/fortran.py", line 9, in ?
fortran.EOLStringNotClosed.fore = 0x0L
AttributeError: 'module' object has no attribute
'EOLStringNotClosed'
Traceback (most recent call last):
File "<string>", line 1, in ?
File "/home/russ/.cute/langs/HTML.py", line 9, in ?
HTML.ASPJavaScriptComment.fore = 0x3F7F3FL
AttributeError: 'module' object has no attribute
'ASPJavaScriptComment'
Traceback (most recent call last):
File "<string>", line 1, in ?
File "/home/russ/.cute/langs/idl.py", line 9, in ?
idl.EOLStringNotClosed.fore = 0x0L
AttributeError: 'module' object has no attribute
'EOLStringNotClosed'
Traceback (most recent call last):
File "<string>", line 1, in ?
File "/home/russ/.cute/langs/java.py", line 9, in ?
java.EOLStringNotClosed.fore = 0x0L
AttributeError: 'module' object has no attribute
'EOLStringNotClosed'
Traceback (most recent call last):
File "<string>", line 1, in ?
File "/home/russ/.cute/langs/javascript.py", line 9, in ?
javascript.EOLStringNotClosed.fore = 0x0L
AttributeError: 'module' object has no attribute
'EOLStringNotClosed'
Traceback (most recent call last):
File "<string>", line 1, in ?
File "/home/russ/.cute/langs/latex.py", line 9, in ?
latex.command.fore = 0xAA0000L
AttributeError: 'module' object has no attribute 'command'
Traceback (most recent call last):
File "<string>", line 1, in ?
File "/home/russ/.cute/langs/makefile.py", line 9, in ?
makefile.comment.fore = 0x3F7F3FL
AttributeError: 'module' object has no attribute 'comment'
Traceback (most recent call last):
File "<string>", line 1, in ?
File "/home/russ/.cute/langs/matlab.py", line 9, in ?
matlab.command.fore = 0x7F7FL
AttributeError: 'module' object has no attribute 'command'
Traceback (most recent call last):
File "<string>", line 1, in ?
File "/home/russ/.cute/langs/perl.py", line 9, in ?
perl.array.fore = 0x0L
AttributeError: 'module' object has no attribute 'array'
Traceback (most recent call last):
File "<string>", line 1, in ?
File "/home/russ/.cute/langs/php.py", line 9, in ?
php.PHPComment.fore = 0x3F7F3FL
AttributeError: 'module' object has no attribute
'PHPComment'
Traceback (most recent call last):
File "<string>", line 1, in ?
File "/home/russ/.cute/langs/plain.py", line 9, in ?
plain.default.fore = 0x0L
AttributeError: 'module' object has no attribute 'default'
Traceback (most recent call last):
File "<string>", line 1, in ?
File "/home/russ/.cute/langs/python.py", line 9, in ?
python.EOLStringNotClosed.fore = 0x0L
AttributeError: 'module' object has no attribute
'EOLStringNotClosed'
Traceback (most recent call last):
File "<string>", line 1, in ?
File "/home/russ/.cute/langs/shell.py", line 9, in ?
shell.array.fore = 0x0L
AttributeError: 'module' object has no attribute 'array'
Traceback (most recent call last):
File "<string>", line 1, in ?
File "/home/russ/.cute/langs/sql.py", line 9, in ?
sql.EOLStringNotClosed.fore = 0x0L
AttributeError: 'module' object has no attribute
'EOLStringNotClosed'
Traceback (most recent call last):
File "<string>", line 1, in ?
File "/home/russ/.cute/langs/tcl.py", line 9, in ?
tcl.EOLStringNotClosed.fore = 0x0L
AttributeError: 'module' object has no attribute
'EOLStringNotClosed'
Traceback (most recent call last):
File "<string>", line 1, in ?
File "/home/russ/.cute/langs/xml.py", line 9, in ?
xml.attributes.fore = 0x8080L
AttributeError: 'module' object has no attribute
'attributes'
[russ@detritus ~]$ cat .cuterc
#This file is automatically generated by CUTE.
#Do not modify UNLESS YOU know what you are doing.
from config import *
#executes user pre config
if fileExists("cute.pre_config"):
execfile("cute.pre_config")
#settings
.maxSelectedStringLengthInDialog = 100
.docPath = '/usr/share/doc/cute/index.html'
.theme = Theme.Default
.mdiMode = MdiMode.ChildframeMode
.showMessagePanel = 1
.showSidePanel = 1
.maxRecentFiles = 20
.useUtf8Encoding = 0
.lineFeed = EolMode.EolUnix
.backspaceUnindents = 0
.autoCompletionReplaceWord = 1
.autoCompletionCaseSensitivity = 1
.autoCompletionThreshold = 5
.autoIndent = 1
.autoCompletionSource = AutoCompletion.Document
.tabWidth = 4
.tabIndents = 1
.indentationsUseTabs = 1
.whitespaces = WhitespaceVisibility.WsVisible
.folding = FoldStyle.PlainFoldStyle
.fullScreenShowMenuBar = 1
.statusbar = 1
.foldMargin = 1
.cmdToolbar = 1
.eolVisibility = 0
.lineNumbers = 0
.zoomLevel = 0
.useMonospacedFont = 0
.fullScreenShowCommandBox = 1
.defaultFont = 'Courier,10,-1,5,50,0,0,0,0,0'
.fullScreenShowToolBar = 1
.monospacedFont = 'Courier,10,-1,5,50,0,0,0,0,0'
.toggleAllFolds = 1
.braceMatching = BraceMatch.StrictBraceMatch
.wrapLines = 0
.taskbar = 1
.margin = 1
.toolbar = 1
.indentationsGuide = 1
setMainWidgetGeometry(0, 0, 334, 361)
#file history
#project history
addRecentProject("")
# all shortcuts
map("unnamed", "")
map("new", "Ctrl+F, N")
map("open", "Ctrl+F, O")
map("reopen", "Ctrl+F, R")
map("changeWorkingDir", "Ctrl+F, W")
map("close", "Ctrl+F, C")
map("closeAll", "Ctrl+F, Ctrl+C")
map("save", "Ctrl+F, S")
map("saveAll", "Ctrl+F, A")
map("saveAs", "Ctrl+F, Ctrl+S")
map("loadTagsFile", "Ctrl+T, L")
map("unloadTagsFile", "Ctrl+T, U")
map("print", "Ctrl+P")
map("exit", "Ctrl+Q")
map("gotoMatchingBrace", "Ctrl+(")
map("selectToMatchingBrace", "Ctrl+Alt+(")
map("insertCommand", "Ctrl+>")
map("editFilter", "Ctrl+!")
map("blockComment", "Ctrl+#")
map("streamComment", "Ctrl+Alt+#")
map("autoComplete", "Ctrl+Return")
map("find", "Ctrl+S, F")
map("findNext", "Ctrl+S, N")
map("findPrevious", "Ctrl+S, P")
map("findInFiles", "Ctrl+S, G")
map("findSelection", "Ctrl+S, S")
map("enterSelection", "Ctrl+S, E")
map("replace", "Ctrl+S, R")
map("goTo", "Ctrl+S, L")
map("findTag", "Ctrl+T, F")
map("jumpToTag", "Ctrl+T, J")
map("jumpToNextTag", "Ctrl+T, N")
map("jumpToPreviousTag", "Ctrl+T, P")
map("findNextBookmark", "Ctrl+B, N")
map("findPreviousBookmark", "Ctrl+B, P")
map("toggleBookmark", "Ctrl+B, T")
map("renameBookmark", "Ctrl+B, R")
map("toggleCurrentFold", "")
map("toggleAllFolds", "")
map("wrapLines", "")
map("viewBraceMatch", "")
map("viewFullscreen", "F11")
map("viewStatusbar", "")
map("viewToolbar", "")
map("viewCmdToolbar", "")
map("viewWhitespaces", "")
map("viewLineNumbers", "")
map("viewMargin", "")
map("viewFoldMargin", "")
map("viewShowMessagePanel", "")
map("viewShowSidePanel", "")
map("useMonospacedFont", "Ctrl+F11")
map("switchFocusCmdBox", "")
map("switchFocusDoc", "")
map("switchFocusDir", "")
map("switchFocusTagsFile", "")
map("switchFocusPro", "")
map("switchFocusMessages", "")
map("switchFocusStdout", "")
map("switchFocusStderr", "")
map("switchFocusShell", "")
map("switchFocusSearch", "")
map("switchFocusTags", "")
map("compile", "")
map("build", "F7")
map("go", "")
map("stop", "")
map("nextMessage", "")
map("prevMessage", "")
map("openProject", "")
map("newProject", "")
map("closeProject", "")
map("optionsProject", "")
map("toggleAutoIndent", "")
map("showQtConfig", "")
map("editPreConfigFile", "")
map("editPostConfigFile", "")
map("showCutercFile", "")
map("runScript", "Ctrl+R, S")
map("runCurrentFile", "Ctrl+R, F")
map("runPyCommand", "Ctrl+R, C")
map("evalSelection", "Ctrl+R, T")
map("loadSession", "Ctrl+Alt+S, L")
map("saveSession", "Ctrl+Alt+S, S")
map("closeSession", "Ctrl+Alt+S, C")
map("addTool", "")
map("startMacroRecording", "Ctrl+M, (")
map("stopMacroRecording", "Ctrl+M, )")
map("runMacro", "Ctrl+M, R")
map("loadMacro", "Ctrl+M, L")
map("saveMacro", "Ctrl+M, S")
map("buildTagsFile", "Ctrl+T, B")
map("nextWindow", "Ctrl+Alt+Right")
map("previousWindow", "Ctrl+Alt+Left")
map("showWindows", "Ctrl+Space")
map("helpHandbook", "F1")
map("viewLicense", "")
map("viewAbout", "")
map("viewAboutQt", "")
map("redo", "Ctrl+Y")
map("selectAll", "Ctrl+A")
map("undo", "Ctrl+Z")
map("cut", "Shift+Del")
map("copy", "Ctrl+C")
map("paste", "Shift+Ins")
map("clear", "Del")
map("lineDown", "Down")
map("lineDownExtend", "Shift+Down")
map("lineUp", "Up")
map("lineUpExtend", "Shift+Up")
map("charLeft", "Left")
map("charLeftExtend", "Shift+Left")
map("charRight", "Right")
map("charRightExtend", "Shift+Right")
map("wordLeft", "Ctrl+Left")
map("wordLeftExtend", "Ctrl+Shift+Left")
map("wordRight", "Ctrl+Right")
map("wordRightExtend", "Ctrl+Shift+Right")
map("lineEnd", "End")
map("lineEndExtend", "Shift+End")
map("documentStart", "Ctrl+Home")
map("documentStartExtend", "Ctrl+Shift+Home")
map("documentEnd", "Ctrl+End")
map("documentEndExtend", "Ctrl+Shift+End")
map("pageUp", "PgUp")
map("pageUpExtend", "Alt+Shift+PgUp")
map("pageDown", "PgDown")
map("pageDownExtend", "Alt+Shift+PgDown")
map("editToggleOvertype", "Ins")
map("cancel", "Esc")
map("deleteBack", "Backspace")
map("tab", "Tab")
map("backTab", "Shift+Tab")
map("newLine", "Return")
map("VCHome", "Home")
map("VCHomeExtend", "Shift+Home")
map("zoomIn", "Ctrl++")
map("zoomOut", "Ctrl+-")
map("delWordLeft", "Ctrl+Backspace")
map("delWordRight", "Ctrl+Del")
map("lineCut", "Ctrl+L")
map("lineDelete", "Ctrl+Shift+L")
map("lineTranspose", "Ctrl+Alt+T")
map("lowerCase", "Ctrl+U")
map("upperCase", "Ctrl+Shift+U")
map("lineScrollDown", "Ctrl+Down")
map("lineScrollUp", "Ctrl+Up")
map("deleteBackNotLine", "")
map("homeDisplay", "Alt+Home")
map("homeDisplayExtend", "Alt+Shift+Home")
map("wordPartLeft", "Alt+Left")
map("wordPartLeftExtend", "Alt+Shift+Left")
map("wordPartRight", "Alt+Right")
map("wordPartRightExtend", "Alt+Shift+Right")
map("delLineLeft", "Ctrl+Shift+Backspace")
map("delLineRight", "Ctrl+Shift+Del")
map("lineDuplicate", "Ctrl+D")
map("paraDown", "Alt+Down")
map("paraDownExtend", "Alt+Shift+Down")
map("paraUp", "Alt+Up")
map("paraUpExtend", "Alt+Shift+Up")
map("lineCopy", "Ctrl+Shift+T")
#executes user post config
if fileExists("cute.post_config"):
execfile("cute.post_config")
[russ@detritus ~]$ uname -a
Linux detritus.local 2.6.14-1.1637_FC4 #1 Wed Nov 9
19:01:56 EST 2005 x86_64 x86_64 x86_64 GNU/Linux
[russ@detritus ~]$ rpm -q --queryformat="%{N}-%{V}-%{R}
%{ARCH}\n" cute qt python
cute-0.2.9-0 i386
qt-3.3.4-15.4 i386
qt-3.3.4-15.4 x86_64
python-2.4.1-2 x86_64
Note that I installed the cute RPM with --nodeps,
because it required "qt3" - as you can see I have qt
v3. It didn't complain about any other dependencies.
Logged In: YES
user_id=592845
It seems that your installed python version doesn't match
the statically linked python interpreter of CUTE.
I'am afraid you have to compile CUTE by yourself.
There is a configure script available in the CVS version to
ease up things.
Be aware to set your QTDIR and QMAKESPEC before running
configure.
Best Regards,
Heiko