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

  • Home
  • SEARCH
  • 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 6777475
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:09:08+00:00 2026-05-26T16:09:08+00:00

I am trying to install the aggdraw python library to create high quality graphics

  • 0

I am trying to install the aggdraw python library to create high quality graphics but I keep getting this error:

agg22/include/agg_array.h: In member function `agg::int8u*

What is the workaround for this? How can I install it?

  • 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-26T16:09:08+00:00Added an answer on May 26, 2026 at 4:09 pm

    You should follow the instructions in http://www.pocketuniverse.ca/archive/2008/december/11/pil-and-aggdraw/ to patch AGG rather than just have the compiler allow the 64-bit incompatible code to compile.

    Here’s one way you could do it in the shell:

    cd /tmp
    svn co http://svn.effbot.org/public/tags/aggdraw-1.2a3-20060212
    cd aggdraw-1.2a3-20060212
    patch -p0 <<EOF
    Index: agg2/include/agg_array.h
    ===================================================================
    --- agg2/include/agg_array.h    (revision 532)
    +++ agg2/include/agg_array.h    (working copy)
    @@ -520,7 +520,7 @@
                     int8u* ptr = m_buf_ptr;
                     if(alignment > 1)
                     {
    -                    unsigned align = (alignment - unsigned(ptr) % alignment) % alignment;
    +                    unsigned align = (alignment - (unsigned long)(ptr) % alignment) % alignment;
                         size += align;
                         ptr += align;
                         if(size <= m_rest)
    EOF
    
    python setup.py build_ext -i
    python selftest.py
    sudo python setup.py install
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to install pear package and keep getting this strange error. Can you shed
when trying to install cygwin, I keep getting this error message: the entry point
I am trying to install ode via Macports, but get this error: On Mac
When trying to install Imagemagick via Macports, I keep getting an error when it
Trying to install mysql-python. Got following error. Got mysql and pythond already installed. Any
Trying to install memcached-northscale and getting a weird error. Any help would be appreciated.
Trying to install mysql2 gem on ruby 1.9.2 and I get this error: Installing
i am trying install sql server 2005 from last hour but i can't create
Trying to install some gems under jruby 1.6, but getting connection refused: $ gem
I'm trying install pycrypto on osx with easy_install and I'm getting the following error:

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.