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

Missing conan #54

Open
t413 opened this issue Aug 28, 2018 · 2 comments
Open

Missing conan #54

t413 opened this issue Aug 28, 2018 · 2 comments

Comments

@t413
Copy link

t413 commented Aug 28, 2018

Running the default example there seems to be no conan utility installed. Running pip install conan as a prerequisite won't work directly because the install destination isn't writable, using pip install --user conan seems to install it in a black hole that can't be found (it's not put in ~/.local/bin).

I'm finding the same problem on dockcross so came here for a simpler setup to investigate. Any ideas?

I depend on boost to build, what is the most idiomatic way here? I can see conan, apt/yum, or building the source in the mounted directory as options.

@jcfr
Copy link
Member

jcfr commented Oct 15, 2018

both dockcross and dockbuild include a wrapper script named sudo (internally invoking gosu)

Running the following command complete ...

sudo pip install conan

Last issue is that the python installed in dockbuild (and by extension dockcross) doesn't have sqlite:

conan --help
Traceback (most recent call last):
  File "/usr/local/bin/conan", line 11, in <module>
    load_entry_point('conan==1.8.2', 'console_scripts', 'conan')()
  File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 565, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2631, in load_entry_point
    return ep.load()
  File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2291, in load
    return self.resolve()
  File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2297, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/local/lib/python3.6/site-packages/conans/conan.py", line 1, in <module>
    from conans.client.command import main
  File "/usr/local/lib/python3.6/site-packages/conans/client/command.py", line 10, in <module>
    from conans.client.conan_api import (Conan, default_manifest_folder)
  File "/usr/local/lib/python3.6/site-packages/conans/client/conan_api.py", line 23, in <module>
    from conans.client.rest.auth_manager import ConanApiAuthManager
  File "/usr/local/lib/python3.6/site-packages/conans/client/rest/auth_manager.py", line 19, in <module>
    from conans.client.cmd.user import update_localdb
  File "/usr/local/lib/python3.6/site-packages/conans/client/cmd/user.py", line 2, in <module>
    from conans.client.store.localdb import LocalDB
  File "/usr/local/lib/python3.6/site-packages/conans/client/store/localdb.py", line 2, in <module>
    import sqlite3
  File "/usr/local/lib/python3.6/sqlite3/__init__.py", line 23, in <module>
    from sqlite3.dbapi2 import *
  File "/usr/local/lib/python3.6/sqlite3/dbapi2.py", line 27, in <module>
    from _sqlite3 import *
ModuleNotFoundError: No module named '_sqlite3'

@jcfr
Copy link
Member

jcfr commented Oct 15, 2018

this is observed with at least the ubuntu1804 and centos7 images

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

2 participants