-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changed the start-up file to launch daemon process #2309
Conversation
pyProc = new Process(script, ['--wait-for-unlock'], processOptions); | ||
} | ||
const Process = childProcess.spawn; | ||
pyProc = new Process(executablePath, PY_DIST_EXEC_ARGS); | ||
} catch (e) { | ||
console.info('Running python executable: Error: '); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't you print e
here as well?
I suppose you're not changing this though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in #2311
if (guessPackaged()) { | ||
const executablePath = getExecutablePath(PY_DIST_EXECUTABLE); | ||
console.info('Running python executable: '); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is "python executable" accurate? afaict, the file ends with .exe
on winows, and there's no python
prefix to the command line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in Fixed in #2311
Summary
Changed the start-up file to launch daemon process.
Previously:
.../app.asar.unpacked/daemon/daemon
(for source install,python .../chia/daemon/server.py
)Now:
.../app.asar.unpacked/daemon/chia start daemon
(for source install,.../venv/bin/chia start daemon
)This PR makes use of
chia start daemon
command instead ofdaemon/server.py
to launch adaemon
processTest
(*1) About Fedora39 issue (source install)
This issue persistes from the previous releases so not a new issue.
In order to launch daemon from the GUI, you need to set values to
PYTHONPATH
.The values should be source root directory where you clone
chia-blockchain
.For example, if you clone
chia-blockchain
bythen you need to set PYTHONPATH like
PYTHONPATH=/home/user/dev/chia-blockchain:/home/user/dev/chia-blockchain/venv/lib/python-3.12/site-packages