Giter Site home page Giter Site logo

Comments (6)

altendky avatar altendky commented on August 16, 2024

Will probably need to tweak the $PATHfor the subprocess to include the scripts path so chia itself can still subprocess as needed. I'm not sure if they are consistently using sys.executable or the scripts path or such for their own needs.

from plotman.

13thProgression avatar 13thProgression commented on August 16, 2024

It seems dangerous to try to modify the requirements of chia to make plotman more approachable. I understand the intent, but if chia changes how they initialize their software it could leave plotman broken. Perhaps a more verbose error if the env isn't activated?

from plotman.

altendky avatar altendky commented on August 16, 2024

There's no need to modify chia. And it is entirely proper for Python programs to be usable without activating the environment. Basically all activating the virtual environment does is add the env/bin/ directory to your PATH so that the Python and other programs there will be found.

from plotman.

altendky avatar altendky commented on August 16, 2024

Oh, and chia already works fine in my experience without activating the environment.

from plotman.

13thProgression avatar 13thProgression commented on August 16, 2024

At the moment, this is true. My point was more that the chia project provides guidelines for how to start plots. Circumventing those guidelines might work at the moment, but any change on the chia project side can break this in the future. Conforming to their current guidelines is like conforming to an API: no guarantee of future compatibility, but higher likelihood.

I don't think this change will reduce confusion for new users. This may be convenient for experienced users that always update chia in the same location. However, could cause issues for users that update chia in a new path before deleting the old one (to reduce downtime in the event that something goes wrong with the new version.)

Don't mean for this to sound negative about the potential change, just trying to enumerate a few possible unintended consequences.

from plotman.

altendky avatar altendky commented on August 16, 2024

Perhaps you have opinions about priorities and configurability of this? I think configurability could be good including allowing hardcoding a path to the chia to use. For defaults, at the moment it seems like searching PATH first is reasonable for backwards compatibility and allowance of env activation, when the user chooses to do it, to have the (theoretically) intended effect and take priority. Then second, look in the plotman env.

Note that plotman is going to be importing chia to use the chia code to parse plot command lines. Yes, this increases the coupling between the two. But, we've had numerous people having lots of different issues with this and rewriting a command line parsing isn't obviously a good choice. Yes, we may also end up copying the chia cli definition code into plotman to change the coupling (reduced in some ways, increased in others). At the end of the day, they are coupled and chia doesn't presently provide an api. Anyways, env/bin/pip install plotman[chia] will be a reasonable option for simple startup in many cases (never all) without git cloning anything etc. It seems useful for the result to work with or without activation.

from plotman.

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.