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 <jacob.fenw...@gmail.com>wrote:

> On Thu, Oct 29, 2009 at 1:47 PM, Preston Holmes <pres...@ptone.com> wrote:
>
>>
>>
>>
>> On Oct 27, 9:07 pm, Jacob Fenwick <jacob.fenw...@gmail.com> 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 django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to