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 fail with the same traceback (see below for details). Help would be appreciated.

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!)


mimac:quickstart frank$ ls -las /Library/Python/2.6/site-packages
total 24
 0 drwxrwxr-x  3 root   admin   204 Aug 18 11:56 .
...
 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

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

When I run pybot commands from QUICK START I get traceback like this

mimac:~ frank$ pybot
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 56, in _run_or_rebot_from_cli
    _exit(DATA_ERROR, utils.unic(err))
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

Reply via email to