Package Details: electron9 9.4.4-6

Git Clone URL: https://aur.archlinux.org/electron9.git (read-only, click to copy)
Package Base: electron9
Description: Build cross platform desktop apps with web technologies
Upstream URL: https://electronjs.org/
Licenses: custom, MIT
Submitter: arojas
Maintainer: zzy-ac
Last Packager: arojas
Votes: 2
Popularity: 0.017717
First Submitted: 2022-04-22 08:25 (UTC)
Last Updated: 2022-04-22 08:25 (UTC)

Dependencies (37)

Sources (27)

Latest Comments

DAC324 commented on 2022-06-13 09:52 (UTC)

For unknown reasons, creation of the directories

/opt/.cache/yay/electron9/src/src/third_party/electron_node
/opt/.cache/yay/electron9/src/src/third_party/nan

fails, causing the build to abort:

  File "/usr/lib/python3.10/shutil.py", line 434, in copy2
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "/usr/lib/python3.10/shutil.py", line 254, in copyfile
    with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: '/opt/.cache/yay/electron9/src/src/third_party/electron_node'
  File "/usr/lib/python3.10/shutil.py", line 434, in copy2
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "/usr/lib/python3.10/shutil.py", line 254, in copyfile
    with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: '/opt/.cache/yay/electron9/src/src/third_party/nan'

joshm commented on 2022-05-25 16:42 (UTC)

FWIW I ended up switching to the electron9-bin package.

joshm commented on 2022-05-25 15:30 (UTC)

If installation of this package fails, subsequent installs will also fail because the src dir exists already:

fatal: destination path 'src' already exists and is not an empty directory.

Deleting the ~/.cache/pacaur/electron9/src dir allows the subsequent installation to proceed, but requires that the sources by fetched again (which is not a quick operation).

joshm commented on 2022-05-24 12:36 (UTC)

I was getting the error:

ModuleNotFoundError: No module named 'httplib2'

I was able to fix this by:

pip uninstall httplib2
pip install httplib2

And then installing electron9 again.

DAC324 commented on 2022-04-26 07:41 (UTC)

This package does not build. Apparently, it is not fully compatible with python 3.10.4.

[506/32588] ACTION //chrome/browser/resource_coordinator:mojo_bindings__verify_deps(//build/toolchain/linux/unbundle:default)
FAILED: gen/chrome/browser/resource_coordinator/lifecycle_unit_state.v 
python ../../mojo/public/tools/bindings/mojom_bindings_generator.py -o gen verify --filelist=__chrome_browser_resource_coordinator_mojo_bindings__verify_deps___build_toolchain_linux_unbundle_default__rule..rsp -f gen/chrome/browser/resource_coordinator/mojo_bindings.deps_sources_list --depth ../../
Traceback (most recent call last):
  File "/opt/.cache/yay/electron9/src/src/out/Release/../../mojo/public/tools/bindings/mojom_bindings_generator.py", line 43, in <module>
    from mojom.generate import template_expander
  File "/opt/.cache/yay/electron9/src/src/mojo/public/tools/mojom/mojom/generate/template_expander.py", line 13, in <module>
    import jinja2
  File "/opt/.cache/yay/electron9/src/src/third_party/jinja2/__init__.py", line 33, in <module>
    from jinja2.environment import Environment, Template
  File "/opt/.cache/yay/electron9/src/src/third_party/jinja2/environment.py", line 16, in <module>
    from jinja2.defaults import BLOCK_START_STRING, \
  File "/opt/.cache/yay/electron9/src/src/third_party/jinja2/defaults.py", line 32, in <module>
    from jinja2.tests import TESTS as DEFAULT_TESTS
  File "/opt/.cache/yay/electron9/src/src/third_party/jinja2/tests.py", line 13, in <module>
    from collections import Mapping
ImportError: cannot import name 'Mapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
[511/32588] CXX obj/components/download/public/task/public/task_manager_impl.o
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: electron9

Fix for this error appears to be editing line 13 in /opt/.cache/yay/electron9/src/src/third_party/jinja2/tests.py as follows:

from collections.abc import Mapping

However, the build then stops with another Python related error:

[520/32079] ACTION //components/resources:about_credits(//build/toolchain/linux/unbundle:default)
FAILED: gen/components/resources/about_credits.html 
python ../../tools/licenses.py --target-os=linux --depfile gen/components/resources/about_credits.d credits gen/components/resources/about_credits.html
Traceback (most recent call last):
  File "/opt/.cache/yay/electron9/src/src/out/Release/../../tools/licenses.py", line 809, in <module>
    sys.exit(main())
  File "/opt/.cache/yay/electron9/src/src/out/Release/../../tools/licenses.py", line 791, in main
    if not GenerateCredits(args.file_template, args.entry_template,
  File "/opt/.cache/yay/electron9/src/src/out/Release/../../tools/licenses.py", line 717, in GenerateCredits
    build_utils.WriteDepfile(depfile, output_file,
  File "/opt/.cache/yay/electron9/src/src/build/android/gyp/util/build_utils.py", line 619, in WriteDepfile
    inputs = ComputePythonDependencies() + inputs
  File "/opt/.cache/yay/electron9/src/src/build/android/gyp/util/build_utils.py", line 556, in ComputePythonDependencies
    non_system_module_paths = [
  File "/opt/.cache/yay/electron9/src/src/build/android/gyp/util/build_utils.py", line 556, in <listcomp>
    non_system_module_paths = [
  File "/usr/lib/python3.10/posixpath.py", line 378, in abspath
    path = os.fspath(path)
TypeError: expected str, bytes or os.PathLike object, not NoneType
[525/32079] CXX obj/sandbox/linux/seccomp_bpf/policy_compiler.o
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...

Unfortunately, I have no clue how to fix this one.