johnf wrote: > On Wednesday 12 November 2008 11:42:54 am Bob Sysero llc Dev wrote: > >> I am using Ubuntu 8.04 IDLE to run the python script Create a >> OpenOffice Spreadsheat. I am running on: >> >> Python 2.5.2 (r252:60911, Jul 31 2008, 17:31:22) >> [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2 >> >> I download ooolib that was ooolib-0.0.16 and a saved it in: >> /usr/lib/python2.5/site-packages under sudo command. >> >> When I run the script from IDLE I am getting the error: >> >> Traceback (most recent call last): >> File "/home/bobsysero/0SyseroProjects/00Test/oooDabo.py", line 3, in >> <module> >> import ooolib >> ImportError: No module named ooolib >> --------------------------------------------------------------------------- >> --------- The script start as: >> >> #!/usr/bin/python >> import os >> import ooolib >> #http://ooolib.sourceforge.net >> import dabo >> import dabo >> import pdb >> >> dabo.ui.loadUI("wx") >> >> pdb.trace() >> >> # app: >> app = dabo.dApp(MainFormClass=None) >> app.setup() >> >> >> # db: >> con = dabo.db.dConnection(DbType='sqlite', Database=':memory:') >> ------------------------------------------------------------------------ >> >> I tried placing the ooolib in the sane folder as my script but and that >> did not work. Any ideas? >> >> Bob >> > > Sorry Bob I did notice your post earlier - I wrote that wiki entry. Anyway > I'm not sure what going on here. But just to make sure that all is working > let's do the following: > > 1. copy the ooolib.py to the project directory. > 2. change directory to the project directory. > 3. start python > 4. import ooolib > It worked, and for some reason the problem is in the IDLE. What I did was removed the ooolib.py from my project directory and then from Ubuntu Gnome file manager I changed my oooDabo.py Permission to Execute. This way I can click on oooDabo.py and select run from terminal. Then I had no problems. There is a problem in Ubuntu IDLE.
Thank you for the Help Bob _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]
