Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6585703
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:41:49+00:00 2026-05-25T16:41:49+00:00

I’m trying to easy_install a Python package called lxml on my shared server. However,

  • 0

I’m trying to easy_install a Python package called “lxml” on my shared server. However, I had to do that locally, as I cannot fork processes on my online server.

  1. Both my prod and dev server are Ubuntu64, but only my offline dev had python-64, while my prod has 32bit.
  2. Python version is 2.6.6.
  3. I’m using virtualenv

So I built it on my dev server (using pip), then I simply uploaded on my prod server (via ftp). But I got this error:

django.core.exceptions.ImproperlyConfigured: Error importing middleware pootle_misc.middleware.siteconfig: "/accounts/gabriobald/www/translate.9thcircle.it/lib/python2.6/site-packages/lxml/etree.so: wrong ELF class: ELFCLASS64"

I guess it’s because of the binded library etree.so

So, the point is: is there a way to easy_install a Python package in 32 bit on a 64 bit system?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T16:41:50+00:00Added an answer on May 25, 2026 at 4:41 pm

    With easy_install you can specify the exact package you want to install. If the 32bits version of the package would be available you could download it and then execute: easy_install ./lxml-2.3-py-2.6-linux_i386.egg. However I think that for lxml there is not a precompiled version for linux 32bits and your version of python.

    In this link you can find how to build a 32 bit python module on a 64 bits system. But you will need a 32 bit version of python and all its dependencies so you it won’t work in your current development environment (you mentioned you have a 64 bits version).

    It is highly recommended to have the development environment as close as possible to the production environment so you don’t find ‘surprises’ when deploying into production. Sometimes is not possible to have the exact same environment just because of differences in the operating system. This is one of the reasons why we package the BitNami Django Stack and virtual appliance (I’m a BitNami developer). The stack is a self-contained, multi-platform package for developers. Also it is completely independent of the user system and will not interfere with anything else in the system. Developing on top of the
    stack and use it for production assure you that you will have the same environment in both systems. In any case you already have a production server and if using the stack is not an option for you (you would need to migrate your applications) I would recommend that you set your development environment also with the 32bits version of python and dependencies.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
Seemingly simple, but I cannot find anything relevant on the web. What is the
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I am trying to loop through a bunch of documents I have to put
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
Does anyone know how can I replace this 2 symbol below from the string

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.