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

Installation problem: python-rocksdb gives an error for both the conda install and the pip install #17

Open
ZoePochon opened this issue Feb 2, 2024 · 2 comments

Comments

@ZoePochon
Copy link

I've tried installing sam2lca on two servers with conda and with pip but it seems that an error while trying to install the python-rocksdb package is failing the installations.

  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/sw/comp/python/3.10.8/rackham/include/python3.10 -c rocksdb/_rocksdb.cpp -o build/temp.linux-x86_64-cpython-310/rocksdb/_rocksdb.o -std=c++11 -O3 -Wall -Wextra -Wconversion -fno-strict-aliasing -fno-rtti
  rocksdb/_rocksdb.cpp:770:27: fatal error: rocksdb/slice.h: No such file or directory
   #include "rocksdb/slice.h"
                             ^
  compilation terminated.
  error: command '/usr/bin/gcc' failed with exit code 1
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> python-rocksdb

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

@maxibor
Copy link
Owner

maxibor commented Feb 2, 2024

Hey @ZoePochon ,
Have you tried in a dedicated conda environment ?
Just tried, it's working fine for me

mamba create -n sam2lca -c bioconda sam2lca

@ZoePochon
Copy link
Author

Hey @maxibor
Sorry for the late answer. When I try the command you provide, it gives me this:

Looking for: ['sam2lca']

warning libmamba Cache file "/home/pochonz/miniconda3/pkgs/cache/ffeee55f.json" was modified by another program
warning libmamba Cache file "/home/pochonz/miniconda3/pkgs/cache/2a957770.json" was modified by another program
warning libmamba Cache file "/home/pochonz/miniconda3/pkgs/cache/47929eba.json" was modified by another program
warning libmamba Cache file "/home/pochonz/miniconda3/pkgs/cache/3e39a7aa.json" was modified by another program
warning libmamba Cache file "/home/pochonz/miniconda3/pkgs/cache/2ce54b42.json" was modified by another program
warning libmamba Cache file "/home/pochonz/miniconda3/pkgs/cache/4ea078d6.json" was modified by another program
pkgs/main/noarch 859.8kB @ 2.8MB/s 0.3s
pkgs/r/linux-64 1.9MB @ 3.0MB/s 0.7s
pkgs/r/noarch 2.3MB @ 2.5MB/s 0.7s
bioconda/linux-64 5.3MB @ 4.0MB/s 1.5s
bioconda/noarch 5.1MB @ 3.4MB/s 1.6s
pkgs/main/linux-64 6.6MB @ 4.1MB/s 1.8s
Could not solve for environment specs
The following package could not be installed
└─ sam2lca is uninstallable because it requires
└─ python-rocksdb , which does not exist (perhaps a missing channel).

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