Comments (6)
Will probably need to tweak the $PATH
for 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.
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.
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.
Oh, and chia already works fine in my experience without activating the environment.
from plotman.
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.
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)
- Allow Randomization of Archive Drive Destinations HOT 3
- Configuration file does not show by default the pool_contract_address HOT 1
- Plotman v0.5 on mac osx creates new plot every 20 secs HOT 10
- how to create new plots
- phase stagger doesn't work with madmax? HOT 18
- log file stops at [P4] Writing C2 table . madmax HOT 2
- Increasing archive throughput HOT 13
- Fixed secondary temp -2 folder is inflexible tbh HOT 8
- allow passing of k setting with madmax HOT 4
- M1 Mac Mini, fresh install errors HOT 2
- finding unused dst dirs fails because of trailing slash "/" mismatch HOT 1
- v0.5.2 breaks with config file used in v0.5.1 HOT 4
- Plotman (k33) keeps making plots for a -d storage disk that's already full - it even reports it as full! HOT 1
- ParserError first time running plotman HOT 1
- Install fails when upgrading to chia 1.3, Debian 11, Python 3.9 HOT 6
- archiving issue HOT 1
- Error in resources/target_definitions.yaml - rsyncd - transfer_script HOT 6
- archiving does not pick up compressed plots HOT 3
- Allow Bitblade CUDA to create more than 1 plot per run (-n) HOT 2
- pip install does not work on Ubuntu 22.04 LTS HOT 1
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 plotman.