Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install on Ubuntu 14.04 fails #135

Open
sotte opened this issue Nov 23, 2014 · 6 comments · May be fixed by #153
Open

pip install on Ubuntu 14.04 fails #135

sotte opened this issue Nov 23, 2014 · 6 comments · May be fixed by #153

Comments

@sotte
Copy link

sotte commented Nov 23, 2014

Attic is not as easy to install as the docs imply. Maybe you could mention that libacl1-dev must be installed and pip3 must be used with Ubuntu 14.04.

pip install --user attic on a fresh Ubuntu 14.04 fails with

Downloading/unpacking attic
  Downloading Attic-0.13.tar.gz (232kB): 232kB downloaded
  Running setup.py (path:/tmp/pip_build_stefan/attic/setup.py) egg_info for package attic
    Attic requires Python 3.2 or later
    Complete output from command python setup.py egg_info:
    Attic requires Python 3.2 or later

pip3 install --user attic fails with

attic/platform_linux.c:344:21: fatal error: sys/acl.h: No such file or directory
 #include "sys/acl.h"
                     ^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

After installing libacl1-dev everything works.

Keep up the great work!

@siteroller
Copy link

You could mention that you need to install python3-dev (python3 is not enough), and use python3 & pip3 instead of python & pip, and that you should add ~/.library/bin to the path if you installed with --user....
It's all things that anyone could search and find, but if you are updating the docs anyway, might as well be complete.
Thanks, for writing this (even though I am not using, due to no S3 support, competition is good).

anarcat added a commit to anarcat/attic that referenced this issue Dec 16, 2014
this is written with recent Ubuntu and Debian in mind, but should be
working everywhere. the idea here is to make sure anyone can install
this without knowning too much about ACLs or anything similar.

closes jborg#135
anarcat added a commit to anarcat/attic that referenced this issue Dec 16, 2014
this is written with recent Ubuntu and Debian in mind, but should be
working everywhere. the idea here is to make sure anyone can install
this without knowning too much about ACLs or anything similar.

closes jborg#135
@anarcat anarcat linked a pull request Dec 16, 2014 that will close this issue
@alphapapa
Copy link

Had the same problem here. The final dependency I had to track down was libssl-dev, which is the OpenSSL dev files. The problem is that openssl is not in the package name. And it's not obvious from the error message:

Downloading/unpacking Attic from https://pypi.python.org/packages/source/A/Attic/Attic-0.14.tar.gz#md5=34fa12b5acff370b2558f4b0e9490b4c
  Downloading Attic-0.14.tar.gz (233kB): 233kB downloaded
  Running setup.py (path:/tmp/pip_build_me/Attic/setup.py) egg_info for package Attic
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/tmp/pip_build_me/Attic/setup.py", line 76, in <module>
        raise Exception('Unable to find OpenSSL >= 1.0 headers. (Looked here: {})'.format(', '.join(possible_openssl_prefixes)))
    Exception: Unable to find OpenSSL >= 1.0 headers. (Looked here: /usr, /usr/local, /usr/local/opt/openssl, /usr/local/ssl, /usr/local/openssl, /usr/local/attic, /opt/local)
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/tmp/pip_build_me/Attic/setup.py", line 76, in <module>

    raise Exception('Unable to find OpenSSL >= 1.0 headers. (Looked here: {})'.format(', '.join(possible_openssl_prefixes)))

Exception: Unable to find OpenSSL >= 1.0 headers. (Looked here: /usr, /usr/local, /usr/local/opt/openssl, /usr/local/ssl, /usr/local/openssl, /usr/local/attic, /opt/local)

@hoxu
Copy link

hoxu commented Oct 21, 2015

I created similar issue #360 for Debian Jessie.

@theilgaard
Copy link

Just had this issue as well.

Fixed by installing libacl1-dev

@Einzelganger
Copy link

Einzelganger commented Apr 12, 2017

I got this working on CentOS 7 by running:
yum install gcc openssl openssl-devel python34-pip python34-devel
pip3 install Attic

Considering the lack of updates since 2 years, I think it was best to search for a more active project to use. Perhaps in the future it can be nice to help solve the open issues or create a fork.

@alphapapa
Copy link

@Einzelganger I've heard the Borg fork is very good. Planning to give it a try myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants