Git Product home page Git Product logo

Comments (9)

Destaq avatar Destaq commented on May 30, 2024 2

@Tuhin-thinks
Please try running the following to get it to install on Ubuntu:

cd /home/username/Programming/Repositories/
sudo git clone git://git.cairographics.org/git/pycairo
sudo apt-get install libcairo2-dev libjpeg-dev  libgif-dev
cd pycairo
sudo python3 setup.py install

from langstats.

enesdemirag avatar enesdemirag commented on May 30, 2024

Same error 😞
When I run pip3 install pycairo it also craches with same error.

from langstats.

Destaq avatar Destaq commented on May 30, 2024

@enesdemirag Can you confirm that you are also on Ubuntu?

from langstats.

enesdemirag avatar enesdemirag commented on May 30, 2024

@Destaq Yes. Ubuntu 20.04

from langstats.

Destaq avatar Destaq commented on May 30, 2024

Alright, try the above command. If that doesn't work, try running this as well:

sudo apt-get install libcairo2-dev libjpeg-dev libgif-dev

I'm not an Ubuntu user, so I can't really comment as much as I'd want on this. I'm searching Stack Overflow and docs for you.

Also, make sure you have pkg-config installed, you can install it with brew install pkg-config.

from langstats.

Destaq avatar Destaq commented on May 30, 2024

If all else fails, this should do the trick:

  1. sudo apt install libcairo2-dev
  2. sudo apt install libgirepository1.0-dev
    Please let me know if this works.

from langstats.

enesdemirag avatar enesdemirag commented on May 30, 2024

@Tuhin-thinks
Please try running the following to get it to install on Ubuntu:

cd /home/username/Programming/Repositories/
sudo git clone git://git.cairographics.org/git/pycairo
sudo apt-get install libcairo2-dev libjpeg-dev  libgif-dev
cd pycairo
sudo python3 setup.py install

It works. After installing pycairo successfully, I ran python3 -m pip install -e . inside the language-statistics repo and it's installed without any error. Thanks.

Reference thread: pygobject/pycairo#89 (comment)

from langstats.

Destaq avatar Destaq commented on May 30, 2024

@enesdemirag Super, I'm glad to hear that : ). I'll add the special installation for Ubuntu in the README, but since it seems like it works for you, I'm closing this issue until then. Please reopen it if there is any other issue. Happy statistics-ing!

from langstats.

Tuhin-thinks avatar Tuhin-thinks commented on May 30, 2024

yes, I have installed the pycario package library and now, it's working fine.

from langstats.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.