Comments (15)
It is trying to run the chia
command to start a plot. I think the general expectation is that you have activated the chia virtual environment such that you could manually run chia
.
Lines 104 to 123 in 349d13a
from plotman.
Perhaps it would be worth catching this particular exception and reporting an explanatory and instructional message.
from plotman.
I thought I was calling it from a shell where I did have the virtual environment activated, but can double check later (I kicked off a job manually to start plotting). I definitely think more informative exception messages could be useful.
from plotman.
I've run the commands from within the virtual environment and get the same errors.
from plotman.
Calling from the virtual environment I get a new error:
...starting plot loop
Warning: unrecognized args: -k32 -n1
Warning: unrecognized args: -t/media/billy/Data/chiatmp -2/media/billy/Data/chiatmp
Warning: unrecognized args: -d/media/billy/chia-1-16TB/chiaplots -b13500
Warning: unrecognized args: -u64 -r4
Warning: unrecognized args: -a2792509996 -e
Traceback (most recent call last):
File "plotman.py", line 92, in <module>
wait_reason = manager.maybe_start_new_plot(dir_cfg, sched_cfg, plotting_cfg)
File "/home/billy/Desktop/chia-blockchain/manager.py", line 69, in maybe_start_new_plot
jobs = job.Job.get_running_jobs(dir_cfg['log'])
File "/home/billy/Desktop/chia-blockchain/job.py", line 74, in get_running_jobs
jobs.append(Job(proc, logroot))
File "/home/billy/Desktop/chia-blockchain/job.py", line 127, in __init__
self.init_from_logfile()
File "/home/billy/Desktop/chia-blockchain/job.py", line 133, in init_from_logfile
assert self.logfile
AssertionError
I had plotman cloned to ~/Desktop and navigated there and tried things, and got an error. Then I copied the plotman directory into the directory where I have the chia stuff located ~/Desktop/chia-blockchain/plotman, tried running the command there and got an error. Then I tried moving the individual python scripts into ~/Desktop/chia-blockchain and tried to execute the script there and the trackback above is from that last attempt.
I think in addition to having more informative exception messages, it might be useful to have a bit more information available about the installations/set-up assumptions as well.
from plotman.
Completely agreed. Volunteers are actively working on improving the installation/setup process and assumptions.
The other error you're seing (unrecognized args) is plotman trying to make sense of a plotting job that was started not-by-plotman with different format command line. This is something it can't quite do yet, although there are some fixes coming that should make it more robust to that.
from plotman.
(eric beat me to submitting this, but since i had already typed it up... and i totally agree with you as well...)
The present tendencies around setting up Chia and plotman do seem messy and confusing to me. Chia is already available on PyPI and we're working towards plotman being available as well. At that point users won't need to involve git in the setup at all. Hopefully then we can provide tidier setup instructions.
Probably best not to be moving files around. Their absolute location isn't super relevant and definitely has nothing to do with being 'in the venv'.
As to those warnings, you seem to be hitting the issue being worked on over in #60. plotman has assumed that arguments would have spaces such as -k 32
rather than -k32
as it is finding in situation. I think the fix is good but we're trying to coordinate a few changes. I'll try to chat with the other devs about that. If you want to try that PR you can work with the jkbecker-fix41b
branch at https://github.com/jkbecker/plotman
.
Sorry for all the troubles.
from plotman.
FYI, I merged the argument-without-space fix into development
.
from plotman.
@altendky
I figured that and tried modifying the code to add a space in the definition but it was still removed.
from plotman.
@ericaltendorf
I'm not sure that was the cause of the error since I didn't have any other plotting happening at that time.
from plotman.
@altendky
It seems like whatever changes you made in development
worked. Do you know if the chia GUI is able to detect plotting that is started using plotman? At the moment it doesn't seem like that is happening so I can't tell how many actual plots are being created at the moment, but it seems like it is only a single plot? If that is correct, is there a way to force multiple plots to be created in parallel?
from plotman.
I have no idea what the GUI does, sorry. If you want to do a manual check of what is running to compare with the GUI and plotman, there's ps aux | grep 'chia plots create'
. plotman can be configured in various ways with per temp drive limits, global limits, phase staggered starts, time staggered starts, and i think more. Take a look through the example configuration. Maybe start a new ticket or check in on keybase if you need more help with that.
Is the original issue reported here still outstanding? Or has it been resolved.
from plotman.
@altendky
Sorry I should have closed the ticket. It's running now.
from plotman.
@altendky
Sorry I should have closed the ticket. It's running now.
hi ,i try to working on WSL2. The same problem heppen to me , can you tell me how to fix this proble? thx.
Traceback (most recent call last):
File "/home/cake/.local/bin/plotman", line 8, in <module>
sys.exit(main())
File "/home/cake/.local/lib/python3.8/site-packages/plotman/plotman.py", line 145, in main
wait_reason = manager.maybe_start_new_plot(cfg.directories, cfg.scheduling, cfg.plotting)
File "/home/cake/.local/lib/python3.8/site-packages/plotman/manager.py", line 130, in maybe_start_new_plot
p = subprocess.Popen(plot_args,
File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'chia'
from plotman.
if you are using linux sudo apt-get install xclip
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.