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 building wheel for snips-nlu-rust #105

Open
laboitemail opened this issue Jan 6, 2019 · 1 comment
Open

Failed building wheel for snips-nlu-rust #105

laboitemail opened this issue Jan 6, 2019 · 1 comment

Comments

@laboitemail
Copy link

laboitemail commented Jan 6, 2019

On raspbian stretch (RPi 3 B), trying to install snips-nlu-rust without success
not familiar with rust, don't know what I'm doing wrong

sudo apt-get install python3-venv 
mkdir snips-nlu && cd snips-nlu
python3 -m venv .env 
source .env/bin/activate 
sudo apt install rustc cargo
pip install setuptools_rust==0.8.4
pip install wheel
pip install snips-nlu-rust

getting:

error: native library `clang` is being linked to by more than one version of the same package, but it can only be linked once; try updating or pinning your dependencies to ensure that this package only shows up once
  
    clang-sys v0.26.4
    clang-sys v0.22.0
  error: cargo failed with code: 101
    
  ----------------------------------------
  Failed building wheel for snips-nlu-rust

Complete output:

Installing collected packages: snips-nlu-rust
  Running setup.py install for snips-nlu-rust ... error
    Complete output from command /home/admin/snips-nlu/.env/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-w7nn52sk/snips-nlu-rust/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-mundmd59-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/admin/snips-nlu/.env/include/site/python3.5/snips-nlu-rust:
    /home/admin/snips-nlu/.env/lib/python3.5/site-packages/setuptools/dist.py:333: UserWarning: Normalizing '0.57.0
    ' to '0.57.0'
      normalized_version,
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-armv7l-3.5
    creating build/lib.linux-armv7l-3.5/snips_nlu_rust
    copying snips_nlu_rust/nlu_engine.py -> build/lib.linux-armv7l-3.5/snips_nlu_rust
    copying snips_nlu_rust/utils.py -> build/lib.linux-armv7l-3.5/snips_nlu_rust
    copying snips_nlu_rust/__init__.py -> build/lib.linux-armv7l-3.5/snips_nlu_rust
    running egg_info
    writing top-level names to snips_nlu_rust.egg-info/top_level.txt
    writing dependency_links to snips_nlu_rust.egg-info/dependency_links.txt
    writing snips_nlu_rust.egg-info/PKG-INFO
    writing requirements to snips_nlu_rust.egg-info/requires.txt
    reading manifest file 'snips_nlu_rust.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no previously-included files matching '*' found under directory 'snips-nlu-python-ffi/target/'
    warning: no previously-included files matching '__pycache__' found anywhere in distribution
    warning: no previously-included files matching '*.py[cod]' found anywhere in distribution
    writing manifest file 'snips_nlu_rust.egg-info/SOURCES.txt'
    copying snips_nlu_rust/__version__ -> build/lib.linux-armv7l-3.5/snips_nlu_rust
    creating build/lib.linux-armv7l-3.5/snips_nlu_rust/dylib
    copying snips_nlu_rust/dylib/.gitignore -> build/lib.linux-armv7l-3.5/snips_nlu_rust/dylib
    running build_ext
    running build_rust
    cargo rustc --lib --manifest-path /tmp/pip-build-w7nn52sk/snips-nlu-rust/snips-nlu-python-ffi/Cargo.toml --release -- --crate-type cdylib
    error: native library `clang` is being linked to by more than one version of the same package, but it can only be linked once; try updating or pinning your dependencies to ensure that this package only shows up once
    
      clang-sys v0.26.4
      clang-sys v0.22.0
    error: cargo failed with code: 101
    
    
    ----------------------------------------
Command "/home/admin/snips-nlu/.env/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-w7nn52sk/snips-nlu-rust/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-mundmd59-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/admin/snips-nlu/.env/include/site/python3.5/snips-nlu-rust" failed with error code 1 in /tmp/pip-build-w7nn52sk/snips-nlu-rust/

Any help would be appreciate; really appreciate snips-nlu on my laptop by the way
Thanks

@adrienball
Copy link
Collaborator

Hi @laboitemail ,
If you plan to use Snips on a raspberry pi, you should rather have a look at the Snips Platform documentation and also join the forum.
Using the rust version of snips-nlu on a Raspi requires some non-trivial cross-compilation steps. Thus, we have built some binaries that you can install by following the instructions in the documentation linked above.
Cheers

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