History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: SRC-434
Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Unassigned
Reporter: Jason Huggins
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Selenium Remote Control

Useful error message when the user is missing Python pstats module

Created: 26/Feb/08 06:25 PM   Updated: 12/Aug/08 05:35 PM
Component/s: Build Scripts/Tooling
Affects Version/s: 0.9.2
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment: Tested on Ubuntu 7.04 (Feisty Fawn)


 Description  « Hide
On a vanilla install of Ubuntu, the Maven build of the Python client fails because the "pstats" module is missing. Here's a extract from terminal window:

~/projects/selenium/rc/trunk/clients/python$ mvn install

...

generate-sources:

pydoc:

doc:
     [exec] Traceback (most recent call last):
     [exec] File "/home/ubuntu/projects/selenium/rc/trunk/clients/python/lib/myepydoc.py", line 9, in <module>
     [exec] from epydoc.cli import cli
     [exec] File "/home/ubuntu/projects/selenium/rc/trunk/clients/python/lib/epydoc/cli.py", line 62, in <module>
     [exec] import sys, os, time, re, pstats
     [exec] ImportError: No module named pstats
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
...




 All   Comments   Work Log   Change History      Sort Order:
Dan Fabulich - 26/Feb/08 06:35 PM
This error is Ubuntu's fault, not ours. The pstats module comes with Python, but the Ubuntu/Debian developers decided that they would rip it out of their default distribution because it's not entirely Free as in speech.

To run our Python build on Ubuntu you have to install the rest of Python, using "sudo apt-get install python-profiler". I've updated the description of this bug; we should provide a better error message when pstats is missing.