-
Notifications
You must be signed in to change notification settings - Fork 279
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
usage fails on fedora #195
Comments
@drewmullen, we expect to use the stdlib provided package. Do not try to install the PyPI readline package with pip. Last time this came up (#157) it related to issues when compiling Python. Some Linux distributions split up the stdlib. Others may do other things that only conditionally include I personally use $ python -c 'import readline; print(readline)'
<module 'readline' from '/home/altendky/.pyenv/versions/3.9.1/lib/python3.9/lib-dynload/readline.cpython-39-x86_64-linux-gnu.so'> |
yeah i just realized that the i installed via chia docs: sudo wget https://www.python.org/ftp/python/3.7.7/Python-3.7.7.tgz
sudo tar -zxvf Python-3.7.7.tgz ; cd Python-3.7.7
./configure --enable-optimizations; sudo make -j$(nproc) altinstall; cd .. i can try |
Uh... Well, I guess it's good for me to know they are recommending compiling your own Python. That's definitely interesting. |
check this out...
*edit - im still reading up researching this - just an update
|
@drewmullen, first off, did you get all the deps mentioned in the pyenv wiki installed first? Second, I saw a few tickets on the topic in pyenv. I didn't dig into them. Various bits of python are only included conditionally so you just have to make sure you have the deps in place ahead of time. |
@altendky i did not. it was never a problem in the past (probably because macos comes with those by default?) but i see here: "readline-devel" and that resolved the issue in a venv from pyenv:
i wonder if installing |
I expect it will. Even for people that are compiling Python themselves without pyenv I still recommend the pyenv wiki for installing build deps. You could submit to the Chia wiki you linked to suggest some more steps. |
I expected that too... however, installing thanks again for your help. for now, recommend your users install via pyenv instead of direct compilation |
Did you totally wipe out the existing build environment? There might be some detected config left around. Thanks for the follow ups here. |
this host is bare metal in my house (that is currently plotting) so i wasnt able to do a full destroy / rebuild. all i did was remove
|
I was referring to the Python build environment. Not the entire computer. I guess that would be the
The But, dig into this only however far you find interesting or appropriate, of course. |
@altendky AH i see what you mean. i moved to another dir and repeated the install and now plotman is working as expected!
do you have docs for configuring rsync? for example, i have a tmp, nvme dest and then mounted share from my nas. id love the rsync feature to take from my nvme dest and move to my nas
|
We do need to improve our docs and related explanations. I do consider this to be bad instruction on their part. They are telling you how to compile a maybe-missing-stuff Python without any commentary. So, it really maybe belongs both places. But mostly, if you need to compile Python use pyenv and follow their instructions. @drewmullen does your NAS run rsyncd? I'd personally tend towards that over a mounted share. I don't have good feelings about network mounts being particularly robust or failing nicely. Though maybe that attitude is outdated. Anyways, either rsyncd or wait for #88 to get finished up and then you can configure local rsync such as with a mounted network filesystem or just local drives. When you configure rsyncd you define 'modules'. In my setup below the module is named https://github.com/altendky/farm/blob/1ec82b80ae86949fbe26b21115732dda3c2e04d1/config.yaml |
ty for this link: #88 ill send a doc PR tomorrow to include a note. tbh i think its OK that chia doesnt mention |
In my case, on CentOS 8.3, with chia also installed per instructions, I just had to install readline-devel (dnf install readline-devel) then recompile Python 3.7.7 (no manual changes) and plotman generates a config successfully afterward. |
Confirmed solution above on CentOS7. Install readline-devel and then rebuild Python 3.7. |
Edit: Resolved.
when installing using chia's guide, which has you compile python, first install
readline-devel
then reinstall chia starting from the compiling commands.OP
looked up readline
as suggested here i tried reinstall of python + chia + plotman, same errors.
The text was updated successfully, but these errors were encountered: