Comment by [email protected]:
I am a unix neophyte, running Mac OSX 10.6.4 and have just run
easy_install. The pybot commands from the Quick Start all fail with the
same LookupError: unknown encoding: en_US
(a traceback is included below). Help would be appreciated.
Thanks
Frank
DETAILS:
Installation seems to have succeeded:
mimac:~ frank$ pybot --version Robot Framework 2.5.1 (Python 2.6.1 on
darwin)
I uaed easy_install - first I just cut&paste text from these instructions
into the terminal window and thus ran as myself - but (of course) nothing
got installed into the /usr/local/bin. I ran it again with sudo and output
looked OK. (NOTE - Suggest you modify instructions to "easy as running
command SUDO easy_install robotframework" for dummies like me!)
PERMISSIONS
Checking permissions in the Python site-packages directory:
{{{
mimac:quickstart frank$ ls -las /Library/Python/2.6/site-packages
total 24
0 drwxrwxr-x 3 root admin 204 Aug 18 11:56 .
0 drwxrwxr-x 3 root admin 136 Aug 18 11:48 ..
16 -rw-r--r--@ 1 frank admin 6148 Aug 18 11:53 .DS_Store
0 -rw-rw-r-- 1 root admin 119 Jul 9 2009 README
8 -rw-r--r-- 1 frank admin 218 Aug 18 11:44 easy-install.pth
0 drwxr-xr-x 4 frank admin 170 Aug 18 11:48
robotframework-2.5.1-py2.6.egg
}}}
EASY INSTALL OUTPUT
Last couple of lines of easy_install when run under my account:
{{{
robot.pythonpathsetter: module references __file__
robot.libraries.__init__: module references __file__
robot.running.arguments: module MAY be using inspect.trace
robot.utils.importing: module references __file__
Adding robotframework 2.5.1 to easy-install.pth file
Installing jybot script to /usr/local/bin
error: /usr/local/bin/jybot: Permission denied
}}}
Easy_install output when rerun as sudo:
{{{
mimac:~ frank$ sudo easy_install robotframework
Password:
Searching for robotframework
Best match: robotframework 2.5.1
Processing robotframework-2.5.1-py2.6.egg
robotframework 2.5.1 is already the active version in easy-install.pth
Installing jybot script to /usr/local/bin
Installing pybot script to /usr/local/bin
Installing rebot script to /usr/local/bin
Using /Library/Python/2.6/site-packages/robotframework-2.5.1-py2.6.egg
Processing dependencies for robotframework
Finished processing dependencies for robotframework
}}}
TRACEBACK
When I run pybot commands (but not pybot --version) from QUICK START I get
tracebacks like this:
{{{
mimac:quickstart frank$ pybot --log mylog.html --name My_Fine_Tests
quickstart.html
Traceback (most recent call last):
File "/Library/Python/2.6/site-packages/robotframework-2.5.1-py2.6.egg/robot/runner.py",
line 307, in <module>
robot.run_from_cli(sys.argv[1:], __doc__)
File "/Library/Python/2.6/site-packages/robotframework-2.5.1-py2.6.egg/robot/__init__.py",
line 39, in run_from_cli
_run_or_rebot_from_cli(run, args, usage, pythonpath='pythonpath')
File "/Library/Python/2.6/site-packages/robotframework-2.5.1-py2.6.egg/robot/__init__.py",
line 69, in _run_or_rebot_from_cli
_exit(FRAMEWORK_ERROR, 'Unexpected error: %s' % error, details)
File "/Library/Python/2.6/site-packages/robotframework-2.5.1-py2.6.egg/robot/__init__.py",
line 159, in _exit
LOGGER.error(message)
File "/Library/Python/2.6/site-packages/robotframework-2.5.1-py2.6.egg/robot/output/loggerhelper.py",
line 55, in error
self.write(msg, 'ERROR')
File "/Library/Python/2.6/site-packages/robotframework-2.5.1-py2.6.egg/robot/output/loggerhelper.py",
line 58, in write
self.message(Message(message, level, html))
File "/Library/Python/2.6/site-packages/robotframework-2.5.1-py2.6.egg/robot/output/logger.py",
line 94, in message
logger.message(msg)
File "/Library/Python/2.6/site-packages/robotframework-2.5.1-py2.6.egg/robot/output/monitor.py",
line 69, in message
self._write(message, stream=sys.stderr)
File "/Library/Python/2.6/site-packages/robotframework-2.5.1-py2.6.egg/robot/output/monitor.py",
line 74, in _write
stream.write(utils.encode_output(message).replace('\t', ' '*8))
File "/Library/Python/2.6/site-packages/robotframework-2.5.1-py2.6.egg/robot/utils/encoding.py",
line 29, in encode_output
return string.encode(_output_encoding, errors)
LookupError: unknown encoding: en_US
}}}
For more information:
http://code.google.com/p/robotframework/wiki/Installation