Package Details: chia-git 1:1.3.5.r1165.gdd4d7d031-1

Git Clone URL: https://aur.archlinux.org/chia-git.git (read-only, click to copy)
Package Base: chia-git
Description: A new blockchain and smart transaction platform that is easier to use, more efficient, and secure. - Latest git commit, provides GUI
Upstream URL: https://www.chia.net/
Licenses: Apache
Conflicts: chia
Provides: chia
Submitter: BenTheTechGuy
Maintainer: None
Last Packager: BenTheTechGuy
Votes: 3
Popularity: 0.000000
First Submitted: 2020-11-01 05:57 (UTC)
Last Updated: 2022-11-21 02:32 (UTC)

Latest Comments

1 2 Next › Last »

GrumpyMonk commented on 2021-07-22 14:46 (UTC)

ack, thanks

BenTheTechGuy commented on 2021-07-18 21:06 (UTC)

Right now I'm working on a big change that installs the packages right to the system with no need for a virtual env or pip. In the meantime I'll revert that commit so the package still works.

GrumpyMonk commented on 2021-07-17 19:39 (UTC)

Hi, after change https://aur.archlinux.org/cgit/aur.git/commit/?h=chia-git&id=cf67fef73269032999e777a9f1aec973a9538b69 (change the way venv is managed) I can’t seem to get chia to start, always fails with PackageNotFoundError: chia-blockchain

A lot of things, including PATH set by activate, and pip -V refer to the src dir.

If I revert to the previous commit, everything is fine.

Any ideas?

BenTheTechGuy commented on 2021-05-18 16:49 (UTC)

The activation command works in scripts as well, your autostart script could just be:

#!/bin/bash
source /opt/chia-blockchain/activate
chia start farmer

or something similar

<deleted-account> commented on 2021-05-18 16:26 (UTC)

@BenTheTechGuy Thanks for looking into it. I can now use Chia with this package, assuming that I run source /opt/chia-blockchain/activate first. Do you know how I could set it up so that chia is available as a regular command, without sourcing anything? If that were the case, it would be easier for me to auto-start upon boot.

BenTheTechGuy commented on 2021-05-17 21:00 (UTC)

@trapezestunned @EndlessEden @keybreak @BunchOfAtoms the problem is now fixed! I followed this guide to solve the error present in the previous comment. The latest version of the package should have no issues.

BenTheTechGuy commented on 2021-05-15 17:47 (UTC) (edited on 2021-05-15 17:59 (UTC) by BenTheTechGuy)

I have figured out the cause of the issue. Chia's venv points to $srcdir/chia-blockchain instead of the correct /opt/chia-blockchain. So instead of trying to find chia at /opt/chia-blockchain/venv/bin/chia, it tries to find it at /home/ben/.cache/paru/clone/chia-blockchain/src/chia-blockchain/venv/bin/chia, or whatever your equivalent directory is. Since paru keeps the source cloned unless you manually delete it, I didn't experience this issue since the directory was still there. However, many AUR helpers delete the srcdir when you're done building the package, so it can't find chia. I'm working on a fix that points it to the right place.

However, the fix I came up with of just replacing all occurances of $srcdir with /opt only works partially. Even though it allows chia to be executed, a new problem pops up trying to run it:

Traceback (most recent call last):
  File "/opt/chia-blockchain/venv/bin/chia", line 33, in <module>
    sys.exit(load_entry_point('chia-blockchain', 'console_scripts', 'chia')())
  File "/opt/chia-blockchain/venv/bin/chia", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.9/importlib/metadata.py", line 77, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 855, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/opt/chia-blockchain/chia/__init__.py", line 1, in <module>
    from pkg_resources import DistributionNotFound, get_distribution, resource_filename
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 851, in exec_module
  File "<frozen importlib._bootstrap_external>", line 983, in get_code
  File "<frozen importlib._bootstrap_external>", line 647, in _compile_bytecode
ValueError: bad marshal data (unknown type code)

I have started a discussion on the GitHub to try and find out the cause and fix.

<deleted-account> commented on 2021-05-14 18:23 (UTC)

@BenTheTechGuy: different guy, but I am having the same problem. None of the commands in the comments let me use chia. The other AUR package chia-bin works fine without having to run any commands, but drags in tons of dependencies I don't need on my headless machine.

BenTheTechGuy commented on 2021-05-06 17:34 (UTC)

Try source /opt/chia-blockchain/activate. Does it still have the same issue?