Package Details: electron20 20.3.12-3

Git Clone URL: https://aur.archlinux.org/electron20.git (read-only, click to copy)
Package Base: electron20
Description: Build cross platform desktop apps with web technologies
Upstream URL: https://electronjs.org/
Licenses: custom, MIT
Submitter: alerque
Maintainer: None
Last Packager: alerque
Votes: 0
Popularity: 0.000000
First Submitted: 2023-06-22 18:49 (UTC)
Last Updated: 2023-06-22 18:49 (UTC)

Sources (14)

Pinned Comments

alerque commented on 2024-03-12 11:38 (UTC)

Because the same issues come up over and over, here are some FAQs/tips:

  • Check if you still need this. It is in the AUR because it is EOL and removed from Arch official repos since no official packages depend on it. If none of your other packages depend on it, just remove it.
  • If you do still need it and don't want to build it, consider switching to electronNN-bin.
  • If you do build this, yes it takes about 40 Gigs of sources and a lot of CPU to build.
  • Using the chroot build methods recommended by Arch will make this much easier, especially to not run into conflicts with node versions, etc.

Latest Comments

alerque commented on 2024-03-12 11:38 (UTC)

Because the same issues come up over and over, here are some FAQs/tips:

  • Check if you still need this. It is in the AUR because it is EOL and removed from Arch official repos since no official packages depend on it. If none of your other packages depend on it, just remove it.
  • If you do still need it and don't want to build it, consider switching to electronNN-bin.
  • If you do build this, yes it takes about 40 Gigs of sources and a lot of CPU to build.
  • Using the chroot build methods recommended by Arch will make this much easier, especially to not run into conflicts with node versions, etc.

tuxayo commented on 2023-07-19 18:19 (UTC) (edited on 2023-07-19 18:19 (UTC) by tuxayo)

@gnaggnoyil I can reproduce the issue in your example. Do you get this error before or after the error that happens after this?

patching file third_party/electron_node/BUILD.gn
[...]
patching file electron/default_app/default_app.ts
patching file electron/filenames.gni
Patching Chromium for using system libraries...

gameslayer commented on 2023-07-11 08:13 (UTC)

Missing Aarch64, please add aarch64 to the package

gnaggnoyil commented on 2023-07-08 07:24 (UTC) (edited on 2023-07-08 07:48 (UTC) by gnaggnoyil)

@tuxayo I just found out my download fails due to the following error:

  File "/home/gnaggnoyil/.cache/yay/electron20/src/src/third_party/depot_tools/external_bin/gsutil/gsutil_4.68/gsutil/third_party/fasteners/fasteners/lock.py", line 31, in <module>
    import eventlet
  File "/usr/lib/python3.11/site-packages/eventlet/__init__.py", line 17, in <module>
    from eventlet import convenience
  File "/usr/lib/python3.11/site-packages/eventlet/convenience.py", line 7, in <module>
    from eventlet.green import socket
  File "/usr/lib/python3.11/site-packages/eventlet/green/socket.py", line 21, in <module>
    from eventlet.support import greendns
  File "/usr/lib/python3.11/site-packages/eventlet/support/greendns.py", line 79, in <module>
    setattr(dns, pkg, import_patched('dns.' + pkg))
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/eventlet/support/greendns.py", line 61, in import_patched
    return patcher.import_patched(module_name, **modules)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/eventlet/patcher.py", line 132, in import_patched
    return inject(
           ^^^^^^^
  File "/usr/lib/python3.11/site-packages/eventlet/patcher.py", line 109, in inject
    module = __import__(module_name, {}, {}, module_name.split('.')[:-1])
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/dns/asyncquery.py", line 40, in <module>
    from dns.query import (
  File "/usr/lib/python3.11/site-packages/dns/query.py", line 58, in <module>
    import httpx
  File "/usr/lib/python3.11/site-packages/httpx/__init__.py", line 2, in <module>
    from ._api import delete, get, head, options, patch, post, put, request, stream
  File "/usr/lib/python3.11/site-packages/httpx/_api.py", line 4, in <module>
    from ._client import Client
  File "/usr/lib/python3.11/site-packages/httpx/_client.py", line 30, in <module>
    from ._transports.default import AsyncHTTPTransport, HTTPTransport
  File "/usr/lib/python3.11/site-packages/httpx/_transports/default.py", line 30, in <module>
    import httpcore
  File "/usr/lib/python3.11/site-packages/httpcore/__init__.py", line 1, in <module>
    from ._api import request, stream
  File "/usr/lib/python3.11/site-packages/httpcore/_api.py", line 5, in <module>
    from ._sync.connection_pool import ConnectionPool
  File "/usr/lib/python3.11/site-packages/httpcore/_sync/__init__.py", line 1, in <module>
    from .connection import HTTPConnection
  File "/usr/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 10, in <module>
    from .._synchronization import Lock
  File "/usr/lib/python3.11/site-packages/httpcore/_synchronization.py", line 13, in <module>
    import trio
  File "/usr/lib/python3.11/site-packages/trio/__init__.py", line 18, in <module>
    from ._core import (
  File "/usr/lib/python3.11/site-packages/trio/_core/__init__.py", line 27, in <module>
    from ._run import (
  File "/usr/lib/python3.11/site-packages/trio/_core/_run.py", line 2452, in <module>
    from ._io_epoll import EpollIOManager as TheIOManager
  File "/usr/lib/python3.11/site-packages/trio/_core/_io_epoll.py", line 188, in <module>
    class EpollIOManager:
  File "/usr/lib/python3.11/site-packages/trio/_core/_io_epoll.py", line 189, in EpollIOManager
    _epoll = attr.ib(factory=select.epoll)
                             ^^^^^^^^^^^^
AttributeError: module 'eventlet.green.select' has no attribute 'epoll'

I ran python -c "import eventlet.green.select" and it reported the same error. It seems such error will occur as long as pacman -S python-eventlet python-httpx python-trio is run. Does anyone have any ideas?

@zcorn Sorry I haven't have one now.

zcorn commented on 2023-07-03 08:53 (UTC)

Hello @tuxayo and @gnaggnoyil I have encountered such problems in different tries. Any solution now? Thx in advance.

tuxayo commented on 2023-06-23 21:41 (UTC) (edited on 2023-06-27 23:49 (UTC) by tuxayo)

Anyone having a fail there? :

patching file third_party/electron_node/BUILD.gn
Hunk #2 succeeded at 203 (offset 9 lines).
Hunk #3 succeeded at 221 (offset 9 lines).
patching file electron/default_app/default_app.ts
patching file electron/filenames.gni
Patching Chromium for using system libraries...
==> Komencado de build()...
ERROR at //electron/BUILD.gn:110:20: Script returned non-zero exit code.
electron_version = exec_script("script/print-version.py",
                   ^----------
Current dir: /home/MIA_UZANTO/.cache/pikaur/build/electron20/src/src/out/Release/
Command: python3 /home/MIA_UZANTO/.cache/pikaur/build/electron20/src/src/electron/script/print-version.py
Returned 1 and printed out:

b'node: --openssl-legacy-provider is not allowed in NODE_OPTIONS\n'

stderr:

Traceback (most recent call last):
  File "/home/MIA_UZANTO/.cache/pikaur/build/electron20/src/src/electron/script/print-version.py", line 3, in <module>
    print(get_electron_version())
          ^^^^^^^^^^^^^^^^^^^^^^
  File "/home/MIA_UZANTO/.cache/pikaur/build/electron20/src/src/electron/script/lib/util.py", line 159, in get_electron_version
    cached_electron_version = str.strip(execute([
                                        ^^^^^^^^^
  File "/home/MIA_UZANTO/.cache/pikaur/build/electron20/src/src/electron/script/lib/util.py", line 144, in execute
    raise e
  File "/home/MIA_UZANTO/.cache/pikaur/build/electron20/src/src/electron/script/lib/util.py", line 137, in execute
    output = subprocess.check_output(argv, stderr=subprocess.STDOUT,
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 466, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 571, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['node', '-p', 'require("./script/lib/get-version").getElectronVersion()']' returned non-zero exit status 9.

See //electron/build/args/all.gn:2:21: which caused the file to be included.
root_extra_deps = [ "//electron" ]
                    ^-----------
==> ERARO: Malsukceso okazis en build().
    Ĉesigante...

Command 'makepkg --force' failed to execute.
:: Try recovering?

edit 2023-06-28: retried in case it was transient, still the same issue

tuxayo commented on 2023-06-23 21:37 (UTC)

@gnaggnoyil for me this download worked. Hopefully if you retry it will work.

gnaggnoyil commented on 2023-06-23 08:13 (UTC)

I got a RuntimeError: gsutil failed to download "gs://chromium-optimization-profiles/pgo_profiles/chrome-linux-5112-1659546792-1870321c902fd7dca1271b1e96ff9ea74063d09a.profdata" error during prepare(). Is there anyone having the same issue?