script can't find module

Bug #220560 reported by Loell Anthony Erecre
4
Affects Status Importance Assigned to Milestone
reverend (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

in Hardy,

 when you run the attached script file ie( python sample_reverend.py) , python will generate an error

python sample_reverend.py
Traceback (most recent call last):
  File "sample_reverend.py", line 1, in <module>
    from reverend.thomas import Bayes
  File "reverend.py", line 3, in <module>
    from reverend.thomas import Bayes
ImportError: No module named thomas

python couldn't seem to locate the module, but when you manually input it to python's interactive command line, python can find it.

Revision history for this message
Loell Anthony Erecre (loell) wrote :
Revision history for this message
Daniel T Chen (crimsun) wrote :

Is this symptom still reproducible in 8.10 or 9.04?

Changed in reverend:
status: New → Incomplete
Revision history for this message
Loell Anthony Erecre (loell) wrote :

yes this is still reproducible in 8.10 so i'm guessing this is the case in 9.04

though i would like to add, that downloading the module and then put it to the same directory where the script is located, then it works.

Revision history for this message
Arnaud Soyez (weboide) wrote :

This is *NOT* reproducible under ubuntu 9.04.

"from reverend.thomas import Bayes" works with python 2.6

Revision history for this message
xteejx (xteejx) wrote :

This bug report is being closed due to your last comment regarding this being fixed with an update. For future reference you can manage the status of your own bugs by clicking on the current status in the yellow line and then choosing a new status in the revealed drop down box. You can learn more about bug statuses at https://wiki.ubuntu.com/Bugs/Status. Thank you again for taking the time to report this bug and helping to make Ubuntu better. Please submit any future bugs you may find.

Changed in reverend (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.