Giter Site home page Giter Site logo

pip install missing resources package about lbl HOT 6 OPEN

j-faria avatar j-faria commented on September 27, 2024
pip install missing resources package

from lbl.

Comments (6)

njcuk9999 avatar njcuk9999 commented on September 27, 2024

Done.

I've never got this ModuleNotFoundError so I guess you aren't using: pip install -U -e . as per the readme instructions, is that correct?
My guess is that when the you install via pip and keep the git repo editable this doesn't matter (as pip doesn't move the directory to the site-packages)

from lbl.

j-faria avatar j-faria commented on September 27, 2024

Thank you! 👍🏼

My guess is that when the you install via pip and keep the git repo editable this doesn't matter (as pip doesn't move the directory to the site-packages)

Exactly, with the -e it still works because it picks up the "local" directory. I was using

pip install https://github.com/njcuk9999/lbl/archive/main.zip 

from lbl.

j-faria avatar j-faria commented on September 27, 2024

Oops, closed the issue too soon.
The data_str_readme.md file still doesn't get moved to site-packages which makes the copy_readme function fail.

Maybe it would be easier to hardcode the "data structure read me" in lbl_misc.py?

from lbl.

njcuk9999 avatar njcuk9999 commented on September 27, 2024

I don't want to hard code this it isn't the point. There should be a way to write a manifest of files that are copied over.

Just out of curiosity is there a reason you can't use pip install -U -e . for now?

from lbl.

j-faria avatar j-faria commented on September 27, 2024

I don't want to hard code this it isn't the point. There should be a way to write a manifest of files that are copied over.

Agree!
I think it might be working with the new manifest file.

Just out of curiosity is there a reason you can't use pip install -U -e . for now?

No strong reason, but I'm using lbl within a CI / action and wanted to specify it as a dependence instead of git cloneing and pip installing locally.
More generally, requiring a user to clone the repository and have a local copy may not be feasible in some cases (although I'm very much guilty of that myself!). Since it's relatively easy to pip install from the repo directly, I thought it would be nice to have the option.

from lbl.

njcuk9999 avatar njcuk9999 commented on September 27, 2024

Yer it was the plan eventually to use pip install only but we are still in development and not having the git easily updatable is a pain (especially when we don't change the version for every small change, which means pip wont update lbl).

The MANIFEST.in should work now though.

from lbl.

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.