Wow, I added the lxml library to sys.path in dispatch.fcgi and it worked! Which piece of software do you think needed the path that wasn't able to access it?
Thanks for giving me the idea Preston. Jacob On Thu, Oct 29, 2009 at 9:14 PM, Jacob Fenwick <[email protected]>wrote: > On Thu, Oct 29, 2009 at 1:47 PM, Preston Holmes <[email protected]> wrote: > >> >> >> >> On Oct 27, 9:07 pm, Jacob Fenwick <[email protected]> wrote: >> > Wow, big surprise that someone else is having shared hosting issues with >> > dreamhost eh? >> > >> > I'm importing a library I installed in site-packages in a module in a >> django >> > app. When I call this django project, it returns with the error: >> > >> > ImportError: No module named lxml >> >> When you say you installed in site-packages in a module in a django >> app - where exactly is lxml installed? Are you using a virtualenv? >> What steps have you done to check and ensure that the lxml module is >> available in your Python path? >> >> > Let me explain the setup a little more clearly: > > I installed lxml in site-packages. > The site-packages is inside a directory structure created by virtualenv. > I imported the lxml library in my views.py in a django app. > > > To ensure lxml module is available in my PYTHONPATH I added the following: > > In .bash_profile: export > PYTHONPATH=/home/jacobfenwick/local/lib/python2.4/site-packages > In dispatch.fcgi: sys.path += > ['/home/jacobfenwick/local/lib/python2.4/site-packages'] > > Let me know if I'm doing it wrong! > > Jacob > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

