Submitted by dernier_recours on Thu, 11/11/2010 - 12:34
Posted in
Using ver. 1.80-Dev on XP
Can not save schema.
* put widget in the window
* save as...
* Saving Data... The pop-up freezes at some % (75% if there is only one widget). An empty file is created. Red-R froze once when I tried to save.
Fixed
Thanks for catching the bug. I have patched the 1.80 build to allow unicode characters while saving files. Will try to get an updater out soon.
On the dev version you can open red-r/canvas/orngDoc.py
Comment line 622
# file = file.encode('ascii')
I reinstalled Red-R 1.8-Dev.
I reinstalled Red-R 1.8-Dev. I could not save the default schema. I installed the non-Dev version. Same issue.
troubleshooting
Hi,
I cant recreate the error, so can you help in debug.
When red-R opens, go to
Menu->Options->Canvas Options->Exception handling
Check the Set to debug mode and set output level to 'All'.
now go to Menu->Options->Show Output Window
This window will show you all the debugging output that will help me debug.
Try saving the schema again and copy this output here.
If Red-R is completely freezing you can also get output from a file in the
OS specific application data folder.
On xp its:
C:\Documents and Settings \"user name"\Local Settings\Application Data
On windows 7:
C:\Users\"user name"\AppData\Roaming
Once you find the application data directory go to:
red-r/settings/RedRCanvas/outputLog.html
Thanks,
Anup
The save status bar stopped
The save status bar stopped at 55% (Red-R did not freeze). Here is the output. Please not that there is an accentuated character in my user name that previously caused problems.
Thanks.
-------------------------------------------------------
Step 3a
Step 3b
Step 3c
Step 3d
orngDoc clear
rm(list = ls())
C:/Program Files/Red-R/Red-R-1.80-Dev/Examples/firstSchema.rrs
as.vector(installed.packages(lib.loc="C:/Program Files/Red-R/R/library")[,1])
local({r <- getOption("repos"); r["CRAN"] <- "http://cran.skazkaforyou.com/"; options(repos=r)})
{'stats': {'Version': {'Stability': 'Good', 'Date': '2010-08-17', 'Number': '1.1'}, 'Description': 'A collection of basic statiscical widgets. These allow for basic statistical tests such as t.test and anova. May also include some higher order statistical functions that are deemed to be of "General Use" such that most users will find them useful or at least interesting.', 'License': 'GPL (>= 2.0)', 'Author': 'Kyle R Covington , Anup Parikh ', 'Summary': 'Base statistical widgets and signals.', 'Dependencies': [], 'Name': 'stats'}, 'plotting': {'Version': {'Stability': 'Generally Good Some Experimental', 'Date': '2010-05-30', 'Number': '1'}, 'Description': 'Package contains plotting widgets and signals. Some of these may include non-R based plotting tools that make use of Python plotting libraries. In general, most R objects can be plotted using Generic Plot, though this is not guaranteed.', 'License': 'GPL (>= 2.0)', 'Author': 'Kyle R Covington ', 'Summary': 'Plotting widgets and signals', 'Dependencies': [], 'Name': 'plotting'}}
{'Version': {'Stability': 'Good', 'Date': '2010-08-17', 'Number': '1.1'}, 'Description': 'A collection of basic statiscical widgets. These allow for basic statistical tests such as t.test and anova. May also include some higher order statistical functions that are deemed to be of "General Use" such that most users will find them useful or at least interesting.', 'License': 'GPL (>= 2.0)', 'Author': 'Kyle R Covington , Anup Parikh ', 'Summary': 'Base statistical widgets and signals.', 'Dependencies': [], 'Name': 'stats'}
{'Version': {'Stability': 'Generally Good Some Experimental', 'Date': '2010-05-30', 'Number': '1'}, 'Description': 'Package contains plotting widgets and signals. Some of these may include non-R based plotting tools that make use of Python plotting libraries. In general, most R objects can be plotted using Generic Plot, though this is not guaranteed.', 'License': 'GPL (>= 2.0)', 'Author': 'Kyle R Covington ', 'Summary': 'Plotting widgets and signals', 'Dependencies': [], 'Name': 'plotting'}
load("C:/Documents and Settings/Serge-Étienne Parent/Application Data/red-r/settings/RedRCanvas/temp/temp_1289519821.03/tmp.RData")
Icon
on set settings
on set settings
settingItemsList
@@@@@@@@@@@@@@@@ loadSettings
{'function': 'plot', 'addSettings': {'text': PyQt4.QtCore.QString(u''), 'id': None}, 'image': 'plot1288477251.54.png', 'enabled': True, 'query': 'as.data.frame(iris)', 'hidden': False}
Addign Image
Setting signalsObject
setSentRvarClass
setting setloadingSavedSession True
on set settings
loading list box
on set settings
nrow(as.data.frame(iris))
nrow(as.data.frame(iris)[,,drop = F])
Converting to list of lists
loading list box
settingItemsList
setting setloadingSavedSession True
Icon
on set settings
checkBox loadSettings
{'checked': ['Commit on Input'], 'hidden': False, 'enabled': True}
checkBox loadSettings
{'checked': ['Show All'], 'hidden': False, 'enabled': True}
on set settings
checkBox loadSettings
{'checked': ['Commit on Input'], 'hidden': False, 'enabled': True}
checkBox loadSettings
{'checked': ['Show All'], 'hidden': False, 'enabled': True}
Setting signalsObject
setSentRvarClass
settingItemsList
setting setloadingSavedSession True
on set settings
checkBox loadSettings
{'checked': ['Commit on Selection'], 'hidden': False, 'enabled': True}
checkBox loadSettings
{'checked': [], 'hidden': False, 'enabled': True}
on set settings
Setting signalsObject
setSentRvarClass
checkBox loadSettings
{'checked': ['Commit on Selection'], 'hidden': False, 'enabled': True}
checkBox loadSettings
{'checked': [], 'hidden': False, 'enabled': True}
settingItemsList
setSentRvarClass
colnames(as.data.frame(iris))
paint_7_1283135407.64 <-as.factor(as.data.frame(iris)[,'Species'])
levels(paint_7_1283135407.64)
sum(is.na(as.data.frame(iris)[,'Species']))
setosa
as.numeric(as.data.frame(iris)[as.data.frame(iris)[,'Species'] == "setosa",'Petal.Length'])
as.numeric(as.data.frame(iris)[as.data.frame(iris)[,'Species'] == "setosa",'Petal.Width'])
versicolor
as.numeric(as.data.frame(iris)[as.data.frame(iris)[,'Species'] == "versicolor",'Petal.Length'])
as.numeric(as.data.frame(iris)[as.data.frame(iris)[,'Species'] == "versicolor",'Petal.Width'])
virginica
as.numeric(as.data.frame(iris)[as.data.frame(iris)[,'Species'] == "virginica",'Petal.Length'])
as.numeric(as.data.frame(iris)[as.data.frame(iris)[,'Species'] == "virginica",'Petal.Width'])
setting setloadingSavedSession True
Warning messages:
1: In data(package = .packages(all.available = TRUE)) :
datasets have been moved from package 'base' to package 'datasets'
2: In data(package = .packages(all.available = TRUE)) :
datasets have been moved from package 'stats' to package 'datasets'
nrow(datasets_5_1289519852.39)
nrow(datasets_5_1289519852.39)
Converting to list of lists
Icon
on set settings
on set settings
nrow(datasets_8_1284671336.31)
nrow(datasets_8_1284671336.31[,,drop = F])
Converting to list of lists
settingItemsList
setSentRvarClass
setting setloadingSavedSession True
Icon
on set settings
checkBox loadSettings
{'checked': ['Calculate on data Input'], 'hidden': False, 'enabled': True}
on set settings
Converting to list of lists
checkBox loadSettings
{'checked': ['Calculate on data Input'], 'hidden': False, 'enabled': True}
settingItemsList
setSentRvarClass
setting setloadingSavedSession True
on set settings
loading list box
on set settings
nrow(selected_7_1283135407.64)
nrow(selected_7_1283135407.64[,,drop = F])
Converting to list of lists
loading list box
settingItemsList
setting setloadingSavedSession True
Icon
on set settings
on set settings
settingItemsList
setSentRvarClass
setting setloadingSavedSession True
on set settings
on set settings
Setting signalsObject
setSentRvarClass
checkBox loadSettings
{'checked': [], 'hidden': False, 'enabled': True}
checkBox loadSettings
{'checked': ['True'], 'hidden': False, 'enabled': True}
settingItemsList
setSentRvarClass
loading list box
setting setloadingSavedSession True
3_1283135026.98 8_1284671336.31 ###################HFJSDADSHFAK#############
((((((((((((((((
Signals
[('id0', 'id1')]
Signals collected, []
Signals collected, []
#######################
processing supressed
###########################
Signals collected, []
Signals collected, []
######## enabled ########
True
4_1283135147.39 8_1284671336.31 ###################HFJSDADSHFAK#############
((((((((((((((((
Signals
[('id0', 'id0')]
Signals collected, []
Signals collected, []
#######################
processing supressed
###########################
Signals collected, []
Signals collected, []
######## enabled ########
True
7_1283135407.64 8_1284671336.31 ###################HFJSDADSHFAK#############
((((((((((((((((
Signals
[('id0', 'id0')]
Signals collected, []
Signals collected, []
#######################
processing supressed
###########################
Signals collected, []
Signals collected, []
######## enabled ########
True
11_1284671523.33 7_1283135407.64 ###################HFJSDADSHFAK#############
((((((((((((((((
Signals
[('id0', 'id1')]
Signals collected, []
Signals collected, []
#######################
processing supressed
###########################
Signals collected, []
Signals collected, []
######## enabled ########
True
20_1284671599.9 8_1284671336.31 ###################HFJSDADSHFAK#############
((((((((((((((((
Signals
[('id0', 'id0')]
Signals collected, []
Signals collected, []
#######################
processing supressed
###########################
Signals collected, []
Signals collected, []
######## enabled ########
True
2_1283134953.79 8_1284671336.31 ###################HFJSDADSHFAK#############
((((((((((((((((
Signals
[('id0', 'id0')]
Signals collected, []
Signals collected, []
#######################
processing supressed
###########################
Signals collected, []
Signals collected, []
######## enabled ########
True
10_1288477301.83 8_1284671336.31 ###################HFJSDADSHFAK#############
((((((((((((((((
Signals
[('id0', 'id0')]
Signals collected, []
Signals collected, []
#######################
processing supressed
###########################
Signals collected, []
Signals collected, []
######## enabled ########
True
10_1284671463.32 10_1288477301.83 ###################HFJSDADSHFAK#############
((((((((((((((((
Signals
[('id0', 'id0')]
Signals collected, []
Signals collected, []
#######################
processing supressed
###########################
Signals collected, []
Signals collected, []
######## enabled ########
True
setting setloadingSavedSession False
setting setloadingSavedSession False
setting setloadingSavedSession False
setting setloadingSavedSession False
setting setloadingSavedSession False
setting setloadingSavedSession False
setting setloadingSavedSession False
setting setloadingSavedSession False
setting setloadingSavedSession False
saveDocumentAs
start save schema
save in orngDoc Generic Plot
moving to saveplot
#################in getSettings
{'function': 'plot', 'query': 'as.data.frame(iris)', 'image': '', 'addSettings': {'text': PyQt4.QtCore.QString(u''), 'id': None}}
Saving signalsObject
save in orngDoc View Data Table
moving to saveRDataTable
Type 3_1283135026.98 is not supported at the moment..
#####################
No settings saved for 3_1283135026.98
############
#####################
No settings saved for
############
#####################
No settings saved for
############
save in orngDoc View R Output
moving to saverViewer
Type 4_1283135147.39 is not supported at the moment..
#####################
No settings saved for 4_1283135147.39
############
Saving signalsObject
save in orngDoc Scatterplot
moving to saveRedRScatterplot
Type 7_1283135407.64 is not supported at the moment..
#####################
No settings saved for 7_1283135407.64
############
Saving signalsObject
save in orngDoc R Datasets
moving to saveRedRdata
Type 8_1284671336.31 is not supported at the moment..
#####################
No settings saved for 8_1284671336.31
############
save in orngDoc Correlation/Variance
moving to savecor
Type 10_1284671463.32 is not supported at the moment..
#####################
No settings saved for 10_1284671463.32
############
save in orngDoc View Data Table (2)
moving to saveRDataTable
Type 11_1284671523.33 is not supported at the moment..
#####################
No settings saved for 11_1284671523.33
############
#####################
No settings saved for
############
#####################
No settings saved for
############
save in orngDoc Pairwise T-Test
moving to savepairwise_t_test
Type 20_1284671599.9 is not supported at the moment..
#####################
No settings saved for 20_1284671599.9
############
save in orngDoc Row or Column Selection
moving to saverowcolPicker
Type 10_1288477301.83 is not supported at the moment..
#####################
No settings saved for 10_1288477301.83
############
Saving signalsObject
{'stats': {'Version': {'Stability': 'Good', 'Date': '2010-08-17', 'Number': '1.1'}, 'Description': 'A collection of basic statiscical widgets. These allow for basic statistical tests such as t.test and anova. May also include some higher order statistical functions that are deemed to be of "General Use" such that most users will find them useful or at least interesting.', 'License': 'GPL (>= 2.0)', 'Author': 'Kyle R Covington , Anup Parikh ', 'Summary': 'Base statistical widgets and signals.', 'Dependencies': [], 'Name': 'stats'}, 'plotting': {'Version': {'Stability': 'Generally Good Some Experimental', 'Date': '2010-05-30', 'Number': '1'}, 'Description': 'Package contains plotting widgets and signals. Some of these may include non-R based plotting tools that make use of Python plotting libraries. In general, most R objects can be plotted using Generic Plot, though this is not guaranteed.', 'License': 'GPL (>= 2.0)', 'Author': 'Kyle R Covington ', 'Summary': 'Plotting widgets and signals', 'Dependencies': [], 'Name': 'plotting'}}
lines
saving image...
save.image("C:/Documents and Settings/Serge-Étienne Parent/Application Data/red-r/settings/RedRCanvas/temp/temp_1289519821.03/tmp.RData")
image saved.
############################################################
Unhandled exception of type UnicodeDecodeError occured at 2010-11-11 18:57:53.609000:
Traceback:
File: red-RCanvas.pyw, line 398 in menuItemSaveAs
Code: self.schema.saveDocumentAs()
File: orngDoc.py, line 579 in saveDocumentAs
Code: return self.save(str(name),template=False)
File: orngDoc.py, line 745 in save
Code: self.createZipFile(filename,[],[redREnviron.directoryNames['tempDir']])# collect the files that are in the tempDir and save them into the zip file.
File: orngDoc.py, line 627 in createZipFile
Code: self.addFolderToZip(myZipFile,folder)
File: orngDoc.py, line 609 in addFolderToZip
Code: folder = folder.encode('ascii') #convert path to ascii for ZipFile Method
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc9 in position 32: ordinal not in range(128)
############################################################
non-ascii character
The problem is because of the non-ascii character. Unfortunately you will have to save the file and only load files from directories that only contain ascii's.
We are fixing this in the next version which should be available soon.
Kyle
Thanks.
Thanks.