Hi,
I too am having problems implementing ReadMe. I am not an expert on
such matters so I do not deny the possibility of user error.
I installed the most recent version of ReadMe. I am also running
Python 3. When I try to execute the demo, I get this:
> library(ReadMe)
Loading required package: VA
> demo(clinton)
demo(clinton)
---- ~~~~~~~
Type <Return> to start :
> oldwd <- getwd()
> setwd(system.file("demofiles/clintonposts", package="ReadMe"))
> undergrad.results <- undergrad(sep = ',')
[1] "python
C:/Users/Jesse/Documents/R/win-library/2.12/ReadMe/makerfile
--separator \",\" --control-file control.txt --table-file
tablefile.txt --threshold 0.01"
Error in undergrad(sep = ",") : Python module failed. Aborting undergrad.
When I try to execute my own analysis, I get this:
> setwd("C:/Users/Jesse/Presidents and Party Rhetoric/Data/1933 Roosevelt")
> undergrad.results <- undergrad(control="1933RooseveltControl.txt",
> stem=F, strip.tags=F, ignore.case=T, threshold=0.01, python3=T,
> pyexe="C:/Python32/Python", sep=',')
[1] "C:/Python32/Python
C:/Users/Jesse/Documents/R/win-library/2.12/ReadMe/makerfile3-0.py
--no-stem --tags --separator \",\" --control-file
1933RooseveltControl.txt --table-file tablefile.txt --threshold 0.01"
Traceback (most recent call last):
File
"C:/Users/Jesse/Documents/R/win-library/2.12/ReadMe/makerfile3-0.py",
line 487, in <module>
main()
File
"C:/Users/Jesse/Documents/R/win-library/2.12/ReadMe/makerfile3-0.py",
line 483, in main
outputdata(controldata,stripTags, stem, ignoreCase, threshold,
tablefile,fullfreq,printit)
File
"C:/Users/Jesse/Documents/R/win-library/2.12/ReadMe/makerfile3-0.py",
line 423, in outputdata
allwords = getallwords(controldata, stripTags, stem, ignoreCase,
threshold)
File
"C:/Users/Jesse/Documents/R/win-library/2.12/ReadMe/makerfile3-0.py",
line 410, in getallwords
text = getText(filename)
File
"C:/Users/Jesse/Documents/R/win-library/2.12/ReadMe/makerfile3-0.py",
line 374, in getText
text = ' '.join(f.readlines())
File "C:\Python32\lib\codecs.py", line 300, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf8' codec can't decode bytes in position
155-156: invalid continuation byte
Error in undergrad(control = "1933RooseveltControl.txt", stem = F,
strip.tags = F, :
Python module failed. Aborting undergrad.
In addition: Warning message:
running command 'C:/Python32/Python
C:/Users/Jesse/Documents/R/win-library/2.12/ReadMe/makerfile3-0.py
--no-stem --tags --separator "," --control-file
1933RooseveltControl.txt --table-file tablefile.txt --threshold 0.01'
had status 1
Jesse H. Rhodes
Assistant Professor
Department of Political Science
University of Massachusetts, Amherst
jrhodes(a)polsci.umass.edu
413-545-6185
Hello,
I tried running ReadMe over the weekend and when I executed the "demo(clinton)" command, I got an error message after the "undergrad.results <- undergrad(sep = ',')" command line (error message below). My best guess is that it has something to do with python-Windows 7, though from what I can tell Python is installed correctly.
"[1] "python C:/Program Files/R/R-2.14.2/library/ReadMe/makerfile --separator \",\" --control-file control.txt --table-file tablefile.txt --threshold 0.01"
Error in undergrad(sep = ",") : Python module failed. Aborting undergrad."
Any help would be sincerely appreciated. Thank you,
Justin
Dear all
I am new to this and I wonder if anyone could point me to the right direction.
I have installed python 2.7 and the Readme package. When I run
demo(clinton), I received the following error messages:
[1] "python C:/Program Files/R/R-2.15.0/library/ReadMe/makerfile
--separator \",\" --control-file control.txt --table-file
tablefile.txt --threshold 0.01"
C:\Python27\python.exe: can't open file 'C:/Program': [Errno 2] No
such file or directory
Error in undergrad(sep = ",") : Python module failed. Aborting undergrad.
In addition: Warning message:
running command 'python C:/Program
Files/R/R-2.15.0/library/ReadMe/makerfile --separator ","
--control-file control.txt --table-file tablefile.txt --threshold
0.01' had status 2
Thanks a lot for your help in advance!
Jim
--
Think green. Please do not print this email unless it is absolutely
necessary! thanks.