Git Product home page Git Product logo

Comments (4)

villegmb avatar villegmb commented on August 28, 2024

Someone comented in this blog https://community.anaconda.cloud/t/how-to-get-gdbm-module/35785/5

The cause of the error is unknown, but “_gdbm.cpython-39-x86_64-linux-gnu.so”, which should exist under “/lib/python3.9/lib-dynload/”, does not exist. .

If another version of the corresponding library exists, copying it to the above directory will solve the problem.

But I am not able to solve it this way. What other alternatives do you recommend to open the database?

from nanocompore.

lmulroney avatar lmulroney commented on August 28, 2024

Hi @villegmb,

Just for a little more context, can you share the command you were trying to do to open the database?

Thanks,
Logan

from nanocompore.

villegmb avatar villegmb commented on August 28, 2024

Hello. I am following this https://nanocompore.rna.rocks/demo/SampCompDB_usage/

> from nanocompore.SampCompDB import SampCompDB, help
> # Load database
> db = SampCompDB (
>     db_fn = "/ibex/scratch/projects/c2078/Heat_stress_analysis/final_result_nanocompore/final_final_results/outSampComp.db",
>     fasta_fn = "/ibex/scratch/projects/c2078/Villegmb/20230913_P4U2_2/Ahem_transcript_rename.fasta")
> 
> # Print general metadata information
> print (db)

from nanocompore.

lmulroney avatar lmulroney commented on August 28, 2024

Hi @villegmb,

Just a few more quick questions, and some possible solutions assuming some things about your setup.

Was the db generated on a linux, windows, or macOs machine?
Are you trying to access the db on a windows, linux, or macOs machine?
When you installed Nanocompore, did you install it in a clean virtual environment?

If you didn't install Nanocompore in a clean virtual environment, I recommend reinstalling Nanocompore in a new virtual environment and trying to open the database using the new virtual environment.

I've seen two possible solutions if you're on a linux machine.
either install the libgdbm-dev library with sudo permissions:
sudo apt-get install libgdbm-dev
sudo yum install gdbm-devel

or try to reinstall it using pip (this might also work on Windows):
pip install gdbm

If you're on a macOs you can try to install the gdbm library using:
brew install gdbm

Alternatively, this stacked overflow post seems to suggest that the issues comes from the pycache folders in the source code.
They had to rename some folders, update to a newer version of python, delete all the python caches, and restart PyCharm to resolve the issue.
https://stackoverflow.com/questions/50998839/error-db-type-is-dbm-gnu-but-the-module-is-not-available-in-windows

Let me know if any of these possible solutions work for you.

Logan

from nanocompore.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.