GithubHelp home page GithubHelp logo

kmers's People

Contributors

blackwer avatar bob-carpenter avatar fkunstner avatar gowerrobert avatar seongwoohan avatar wardbrian avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kmers's Issues

Installation issues (ModuleNotFoundError on import)

It seems I can't import the package (import kmerexpr gives ModuleNotFoundError) and the individual files (import simulate_reads) can only be imported when installed in editable mode. I tried installing through github, locally, and in editable mode. I'm using python 3.9 and pip 22.2.2.

Not sure how to fix it. Maybe setup.cfg:L18-28 needs to be tweaked to match this structure with a src/ folder between the base of the repository and the kmerexpr package?

Fixing this might mess existing import statements? For example in simple_example.py:L1-L7, imports such as import simulate_reads as sr should probably be import kmerexpr.simulate_reads as sr to work when the file is called from another directory?

Reproducing the errors

Attached are scripts to reproduce the issue (and their outputs): testing.zip.

The scripts assume they are in a folder containing the repo in a subfolder called kmers_repo
(after git clone https://github.com/bob-carpenter/kmers kmers_repo)

/test/ < console here
     /kmers_repo/
     /test_install_github.sh
     /test_install_local.sh
     /test_install_local_editable.sh

The scripts install the library and try to import kmerexpr and simulate_reads.

Note: the scripts need to first uninstall kmerexpr and might mess up existing installations.

  • test_install_github.sh = pip install git+https://github.com/bob-carpenter/kmers.
    python -c "import kmerexpr"
    python -c "import simulate_reads"
  • test_install_local.sh = pip install ./kmers_repo.
    python -c "import kmerexpr"
    python -c "import simulate_reads"
  • test_install_local_editable.sh = pip install -e ./kmers_repo.
    python -c "import kmerexpr"
    python -c "import simulate_reads" ✔️

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.