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

Failed to install connan 1.8.2 on ubuntu16.04 #3728

Closed
figroc opened this issue Oct 11, 2018 · 12 comments
Closed

Failed to install connan 1.8.2 on ubuntu16.04 #3728

figroc opened this issue Oct 11, 2018 · 12 comments
Assignees
Milestone

Comments

@figroc
Copy link

figroc commented Oct 11, 2018

I'm installing as

pip --no-cache-dir install conan conan_package_tools

As the time of installing, the latest version was 1.8.2. And,
the output logs:

Installing collected packages: PyJWT, colorama, patch, monotonic, fasteners, node-semver, distro, isort, wrapt, lazy-object-proxy, typed-ast, astroid, mccabe, pylint, deprecation, t
qdm, bottle, pluginbase, conan, idna, tabulate, conan-package-tools
  Running setup.py install for patch: started
    Running setup.py install for patch: finished with status 'done'
  Running setup.py install for wrapt: started
    Running setup.py install for wrapt: finished with status 'done'
  Found existing installation: tqdm 4.26.0
    Uninstalling tqdm-4.26.0:
      Successfully uninstalled tqdm-4.26.0
  Rolling back uninstall of tqdm
Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: '/usr/local/man/man1'

I switched the installing to version 1.7.4, and everything was good.

@danimtb
Copy link
Member

danimtb commented Oct 11, 2018

Found a similar issue here tqdm/tqdm#460

Maybe you dont have that man directory or the right user permissions

@Croydon
Copy link
Contributor

Croydon commented Oct 11, 2018

I just run into this two days ago on macOS Travis CI. It worked before but stopped working suddenly, it could be related to the 1.8.0 release, but I haven't tested that yet.

I have workaround that by doing this:

sudo mkdir -p /usr/local/man;
sudo chown -R "${USER}:admin" /usr/local/man;

Would be still nice to know where this is coming from

@danimtb
Copy link
Member

danimtb commented Oct 11, 2018

I think this is actually coming from the tqdm dependency that was introduced in 1.8.0

cc/ @jgsogo

@figroc
Copy link
Author

figroc commented Oct 12, 2018

Actually I was building an image for C++ environment including conan tools. I really don't want to install man 😕

In version 1.8.2, it is required tqdm==4.20.0 strictly. Why can't it be 4.26.0?

@danimtb
Copy link
Member

danimtb commented Oct 12, 2018

Hi @figroc,

Seems tqdm was downgraded due to an issue with python 2, you can see the conversation starting at this comment: #3545 (comment)

We will try to get it fixed for next release. Keep us posted if you workaround this in the meantime. Thank!

@jgsogo
Copy link
Contributor

jgsogo commented Oct 12, 2018

You can try to pip install in the user home directory by typping pip install --user conan conan_package_tools (or using a virtualenv). Let us know if the --user works for you.

About the tqdm update, I'm tracking the issue, I'll ping them and try to push it forward.

@Croydon
Copy link
Contributor

Croydon commented Oct 12, 2018

This is affecting pretty much every project using Conan directly or indirectly, so this should probably getting a high priority. 🙈

albert-github added a commit to albert-github/doxygen that referenced this issue Oct 12, 2018
Suggestion fro @crodon implemented
This is an error in one of the dependencies of Conan, which should be fixed upstream soon. Then we can remove this error again. See conan-io/conan#3728 for more information
@jgsogo
Copy link
Contributor

jgsogo commented Oct 14, 2018

Hi!

I don't think this can be tagged as a bug or even an issue, it has to do with system permissions and the way pip/python works. It's so common to come across a permissions denied error when installing packages system-wide with pip and the solution is to use sudo, install it per-user (with --user) or use a virtualenv.

We'll open the revision required for tqdm as soon as we identify a range without known issues, but chances to find this error again are 100% (@figroc would have been ok with his 4.26.0 version, but anyone without a tqdm installed could have got the error) . Right now there are several dependencies of Conan that requires elevated permissions to be installed system-wide, but usually, they are already installed so it doesn't complain.

We may change the docs and recommend installing Conan using the --user argument (although it would be even better to use a virtualenv). The --user is a long-standing discussion in the pip community and I hope it will be the default behavior anytime soon (more info: pypa/pip#1668).

@jgsogo
Copy link
Contributor

jgsogo commented Oct 16, 2018

We may change the docs and recommend installing Conan using the --user argument (although it would be even better to use a virtualenv).

What do you think about updating docs in this way, @conan-io/barbarians?

@danimtb
Copy link
Member

danimtb commented Oct 18, 2018

I am willing improve the installation steps and clear the section of the docs by moving some things to FAQ for example

@jgsogo
Copy link
Contributor

jgsogo commented Oct 19, 2018

Also, there is a proposal for a temporary fix here #3785 (comment)

@lasote lasote added this to the 1.8.4 milestone Oct 19, 2018
@lasote
Copy link
Contributor

lasote commented Oct 19, 2018

We will release 1.8.4 soon to fix this.

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

No branches or pull requests

6 participants