Comments (9)
@ReedWarbler Which linux distribution do you have (i.e. Ubuntu, Redhat, etc)? I can point you to where you can get the package for it from. Alternatively, you can compile it from source, which you can get it from here:
https://sourceforge.net/projects/bzip2/files/
from nucleus.
One easy suggestion is to try running the demo code from a different directory. This error can happen if you run the demo from the Nucleus base directory, because then Python tries to load Nucleus from that location rather than from the installed location, and only the installed location has the compiled .so files.
If that doesn't work, you will want to run
$ python
import sys
sys.path
to see where Python is importing Nucleus from. (Since you used --user, the directory name will probably be based in your home directory and will include "site-packages" at the end.)
Once you have that directory, run
$ ls [import dir]/nucleus/io/python
That directory should contain a bunch of .so files like bedgraph_reader.so, gff_writer.so, etc. If it doesn't, there was an installation error.
from nucleus.
I run outside the installation folder, but still got the error.
run sys.path
I got:
['', '/user_path/anaconda2/lib/python27.zip', '/user_path/anaconda2/lib/python2.7', '/user_path/anaconda2/lib/python2.7/plat-linux2', '/user_path/anaconda2/lib/python2.7/lib-tk', '/user_path/anaconda2/lib/python2.7/lib-old', '/user_path/anaconda2/lib/python2.7/lib-dynload', '/user_path/.local/lib/python2.7/site-packages', '/user_path/anaconda2/lib/python2.7/site-packages', '/user_path/anaconda2/lib/python2.7/site-packages/Sphinx-1.5.6-py2.7.egg', '/user_path/anaconda2/lib/python2.7/site-packages/matplotlib_venn-0.11.5-py2.7.egg']
I saw the .so files under /user_path/.local/lib/python2.7/site-packages
:
bedgraph_reader.so bed_writer.so gff_reader.so __init__.py reference.so unindexed_fasta_reader.so
bedgraph_writer.so fastq_reader.so gff_writer.so __init__.pyc sam_reader.so vcf_reader.so
bed_reader.so fastq_writer.so indexed_fasta_reader.so in_memory_fasta_reader.so sam_writer.so vcf_writer.so
from nucleus.
Just update your LD_LIBRARY_PATH
and PYTHONPATH
environmental variables, and try again.
from nucleus.
Sorry @pgrosu, how do I update?
from nucleus.
Here are a few links describing it for LD_LIBRARY_PATH
:
https://www.tecmint.com/understanding-shared-libraries-in-linux/
https://docs.oracle.com/cd/E19455-01/816-0559/chapter2-48927/index.html
The same for PYTHONPATH
, which is described here:
https://docs.python.org/2/using/cmdline.html#envvar-PYTHONPATH
Make sure you echo them out for (i.e. echo $LD_LIBRARY_PATH
) to see what they already contain, which you want to keep. You can test changes like this:
LD_LIBRARY_PATH=your_DIR:$LD_LIBRARY_PATH PYTHONPATH=... python Your_Program ...
Basically standard Linux config :)
~p
from nucleus.
Problem for me is I don't know where libbz2.so.1.0
is? @pgrosu
from nucleus.
Here are a few links describing it for
LD_LIBRARY_PATH
:https://www.tecmint.com/understanding-shared-libraries-in-linux/
https://docs.oracle.com/cd/E19455-01/816-0559/chapter2-48927/index.htmlThe same for
PYTHONPATH
, which is described here:https://docs.python.org/2/using/cmdline.html#envvar-PYTHONPATH
Make sure you echo them out for (i.e.
echo $LD_LIBRARY_PATH
) to see what they already contain, which you want to keep. You can test changes like this:
LD_LIBRARY_PATH=your_DIR:$LD_LIBRARY_PATH PYTHONPATH=... python Your_Program ...
Basically standard Linux config :)
~p
Thank you very much! Update the LD_LIBRARY_PATH definitely fixed all of my problems.
from nucleus.
You're very welcome @xyq013563!
~p
from nucleus.
Related Issues (20)
- Install process is completely broken in presence of existing tensorflow install, and breaks that also HOT 5
- User Menu for Nucleus HOT 2
- hdf5 file format not supported HOT 3
- Is there any limitation for calling rare mutation? HOT 2
- MD tag HOT 2
- ImportError for `nucleus.io.gfile` HOT 2
- RuntimeError: PythonNext() argument variant is not valid: Dynamic cast failed. HOT 1
- RuntimeError: PythonNext() argument read is not valid: Dynamic cast failed HOT 4
- Nucleus Proto is colliding with Tensorflow protos? HOT 8
- Failed to install google-nucleus HOT 2
- Nucleus Proto is colliding with Tensorflow protos HOT 7
- Error runing codelab : dna_sequencing_error_correction HOT 4
- Read strand HOT 1
- ImportError: libbz2.so.1.0: cannot open shared object file: No such file or directory HOT 3
- Nucleus not building for Python3.7-3.9 via pip. HOT 5
- Compatibility with Tensorflow 2.11.0 HOT 2
- install google-nucleus error HOT 14
- PythonNext() argument read is not valid HOT 2
- PythonNext() argument read is not valid: Dynamic cast failed
- Complex version of error correction example?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nucleus.