Skip to content

Instantly share code, notes, and snippets.

@gallexme
Created November 2, 2023 19:16
Show Gist options
  • Save gallexme/717cf2fac4c30bae8514a8953bf41ad4 to your computer and use it in GitHub Desktop.
Save gallexme/717cf2fac4c30bae8514a8953bf41ad4 to your computer and use it in GitHub Desktop.
pgadmin4 build failure
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing pypa-build-hook
Using pypaBuildPhase
Sourcing pypa-install-hook
Using pypaInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
Sourcing python-catch-conflicts-hook.sh
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/7qsmcxymamqm3v71s9gnhgh7x0h6c75c-source
source root is source
setting SOURCE_DATE_EPOCH to timestamp 315619200 of file source/tox.ini
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
no configure script, doing nothing
@nix { "action": "setPhase", "phase": "buildPhase" }
building
Executing pypaBuildPhase
Creating a wheel...
* Getting build dependencies for wheel...
running egg_info
creating flask_mongoengine.egg-info
writing flask_mongoengine.egg-info/PKG-INFO
writing dependency_links to flask_mongoengine.egg-info/dependency_links.txt
writing requirements to flask_mongoengine.egg-info/requires.txt
writing top-level names to flask_mongoengine.egg-info/top_level.txt
writing manifest file 'flask_mongoengine.egg-info/SOURCES.txt'
reading manifest file 'flask_mongoengine.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*.pyc' found under directory 'docs'
warning: no previously-included files matching '*.pyo' found under directory 'docs'
no previously-included directories found matching 'docs/_build'
no previously-included directories found matching 'docs/_themes/.git'
adding license file 'LICENSE'
adding license file 'AUTHORS'
writing manifest file 'flask_mongoengine.egg-info/SOURCES.txt'
* Building wheel...
running bdist_wheel
running build
running build_py
creating build
creating build/lib
creating build/lib/flask_mongoengine
copying flask_mongoengine/panels.py -> build/lib/flask_mongoengine
copying flask_mongoengine/json.py -> build/lib/flask_mongoengine
copying flask_mongoengine/operation_tracker.py -> build/lib/flask_mongoengine
copying flask_mongoengine/connection.py -> build/lib/flask_mongoengine
copying flask_mongoengine/pagination.py -> build/lib/flask_mongoengine
copying flask_mongoengine/sessions.py -> build/lib/flask_mongoengine
copying flask_mongoengine/__init__.py -> build/lib/flask_mongoengine
creating build/lib/flask_mongoengine/wtf
copying flask_mongoengine/wtf/base.py -> build/lib/flask_mongoengine/wtf
copying flask_mongoengine/wtf/fields.py -> build/lib/flask_mongoengine/wtf
copying flask_mongoengine/wtf/__init__.py -> build/lib/flask_mongoengine/wtf
copying flask_mongoengine/wtf/orm.py -> build/lib/flask_mongoengine/wtf
copying flask_mongoengine/wtf/models.py -> build/lib/flask_mongoengine/wtf
running egg_info
writing flask_mongoengine.egg-info/PKG-INFO
writing dependency_links to flask_mongoengine.egg-info/dependency_links.txt
writing requirements to flask_mongoengine.egg-info/requires.txt
writing top-level names to flask_mongoengine.egg-info/top_level.txt
reading manifest file 'flask_mongoengine.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*.pyc' found under directory 'docs'
warning: no previously-included files matching '*.pyo' found under directory 'docs'
no previously-included directories found matching 'docs/_build'
no previously-included directories found matching 'docs/_themes/.git'
adding license file 'LICENSE'
adding license file 'AUTHORS'
writing manifest file 'flask_mongoengine.egg-info/SOURCES.txt'
/nix/store/2d12djgkcij9pgdzsm5214cj70j7f9wq-python3.11-setuptools-68.2.2/lib/python3.11/site-packages/setuptools/command/build_py.py:204: _Warning: Package 'flask_mongoengine.templates.panels' is absent from the `packages` configuration.
!!
********************************************************************************
############################
# Package would be ignored #
############################
Python recognizes 'flask_mongoengine.templates.panels' as an importable package[^1],
but it is absent from setuptools' `packages` configuration.
This leads to an ambiguous overall configuration. If you want to distribute this
package, please make sure that 'flask_mongoengine.templates.panels' is explicitly added
to the `packages` configuration field.
Alternatively, you can also rely on setuptools' discovery methods
(for example by using `find_namespace_packages(...)`/`find_namespace:`
instead of `find_packages(...)`/`find:`).
You can read more about "package discovery" on setuptools documentation page:
- https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
If you don't want 'flask_mongoengine.templates.panels' to be distributed and are
already explicitly excluding 'flask_mongoengine.templates.panels' via
`find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
you can try to use `exclude_package_data`, or `include-package-data=False` in
combination with a more fine grained `package-data` configuration.
You can read more about "package data files" on setuptools documentation page:
- https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[^1]: For Python, any directory (with suitable naming) can be imported,
even if it does not contain any `.py` files.
On the other hand, currently there is no concept of package data
directory, all directories are treated like packages.
********************************************************************************
!!
check.warn(importable)
creating build/lib/flask_mongoengine/templates
creating build/lib/flask_mongoengine/templates/panels
copying flask_mongoengine/templates/panels/mongo-panel.html -> build/lib/flask_mongoengine/templates/panels
installing to build/bdist.linux-aarch64/wheel
running install
running install_lib
creating build/bdist.linux-aarch64
creating build/bdist.linux-aarch64/wheel
creating build/bdist.linux-aarch64/wheel/flask_mongoengine
copying build/lib/flask_mongoengine/json.py -> build/bdist.linux-aarch64/wheel/flask_mongoengine
creating build/bdist.linux-aarch64/wheel/flask_mongoengine/wtf
copying build/lib/flask_mongoengine/wtf/models.py -> build/bdist.linux-aarch64/wheel/flask_mongoengine/wtf
copying build/lib/flask_mongoengine/wtf/base.py -> build/bdist.linux-aarch64/wheel/flask_mongoengine/wtf
copying build/lib/flask_mongoengine/wtf/orm.py -> build/bdist.linux-aarch64/wheel/flask_mongoengine/wtf
copying build/lib/flask_mongoengine/wtf/__init__.py -> build/bdist.linux-aarch64/wheel/flask_mongoengine/wtf
copying build/lib/flask_mongoengine/wtf/fields.py -> build/bdist.linux-aarch64/wheel/flask_mongoengine/wtf
copying build/lib/flask_mongoengine/panels.py -> build/bdist.linux-aarch64/wheel/flask_mongoengine
copying build/lib/flask_mongoengine/pagination.py -> build/bdist.linux-aarch64/wheel/flask_mongoengine
creating build/bdist.linux-aarch64/wheel/flask_mongoengine/templates
creating build/bdist.linux-aarch64/wheel/flask_mongoengine/templates/panels
copying build/lib/flask_mongoengine/templates/panels/mongo-panel.html -> build/bdist.linux-aarch64/wheel/flask_mongoengine/templates/panels
copying build/lib/flask_mongoengine/sessions.py -> build/bdist.linux-aarch64/wheel/flask_mongoengine
copying build/lib/flask_mongoengine/__init__.py -> build/bdist.linux-aarch64/wheel/flask_mongoengine
copying build/lib/flask_mongoengine/operation_tracker.py -> build/bdist.linux-aarch64/wheel/flask_mongoengine
copying build/lib/flask_mongoengine/connection.py -> build/bdist.linux-aarch64/wheel/flask_mongoengine
running install_egg_info
Copying flask_mongoengine.egg-info to build/bdist.linux-aarch64/wheel/flask_mongoengine-1.0.0-py3.11.egg-info
running install_scripts
creating build/bdist.linux-aarch64/wheel/flask_mongoengine-1.0.0.dist-info/WHEEL
creating '/build/source/dist/.tmp-n3e4mt9v/flask_mongoengine-1.0.0-py3-none-any.whl' and adding 'build/bdist.linux-aarch64/wheel' to it
adding 'flask_mongoengine/__init__.py'
adding 'flask_mongoengine/connection.py'
adding 'flask_mongoengine/json.py'
adding 'flask_mongoengine/operation_tracker.py'
adding 'flask_mongoengine/pagination.py'
adding 'flask_mongoengine/panels.py'
adding 'flask_mongoengine/sessions.py'
adding 'flask_mongoengine/templates/panels/mongo-panel.html'
adding 'flask_mongoengine/wtf/__init__.py'
adding 'flask_mongoengine/wtf/base.py'
adding 'flask_mongoengine/wtf/fields.py'
adding 'flask_mongoengine/wtf/models.py'
adding 'flask_mongoengine/wtf/orm.py'
adding 'flask_mongoengine-1.0.0.dist-info/AUTHORS'
adding 'flask_mongoengine-1.0.0.dist-info/LICENSE'
adding 'flask_mongoengine-1.0.0.dist-info/METADATA'
adding 'flask_mongoengine-1.0.0.dist-info/WHEEL'
adding 'flask_mongoengine-1.0.0.dist-info/top_level.txt'
adding 'flask_mongoengine-1.0.0.dist-info/RECORD'
removing build/bdist.linux-aarch64/wheel
Successfully built flask_mongoengine-1.0.0-py3-none-any.whl
Finished creating a wheel...
Finished executing pypaBuildPhase
@nix { "action": "setPhase", "phase": "installPhase" }
installing
Executing pypaInstallPhase
Successfully installed flask_mongoengine-1.0.0-py3-none-any.whl
Finished executing pypaInstallPhase
@nix { "action": "setPhase", "phase": "pythonOutputDistPhase" }
pythonOutputDistPhase
Executing pythonOutputDistPhase
Finished executing pythonOutputDistPhase
@nix { "action": "setPhase", "phase": "fixupPhase" }
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/xqqz6l9bqnag7ifhff9h38yk0mczillf-python3.11-flask-mongoengine-1.0.0
checking for references to /build/ in /nix/store/xqqz6l9bqnag7ifhff9h38yk0mczillf-python3.11-flask-mongoengine-1.0.0...
patching script interpreter paths in /nix/store/xqqz6l9bqnag7ifhff9h38yk0mczillf-python3.11-flask-mongoengine-1.0.0
stripping (with command strip and flags -S -p) in /nix/store/xqqz6l9bqnag7ifhff9h38yk0mczillf-python3.11-flask-mongoengine-1.0.0/lib
shrinking RPATHs of ELF executables and libraries in /nix/store/30xlppvd1sm09yzd080cmcqwh3vgnjfb-python3.11-flask-mongoengine-1.0.0-dist
checking for references to /build/ in /nix/store/30xlppvd1sm09yzd080cmcqwh3vgnjfb-python3.11-flask-mongoengine-1.0.0-dist...
patching script interpreter paths in /nix/store/30xlppvd1sm09yzd080cmcqwh3vgnjfb-python3.11-flask-mongoengine-1.0.0-dist
Executing pythonRemoveTestsDir
Finished executing pythonRemoveTestsDir
@nix { "action": "setPhase", "phase": "pythonCatchConflictsPhase" }
pythonCatchConflictsPhase
/nix/store/q2zpnf017gccs9w9mb0ikdqhkf0k5v82-catch_conflicts.py:1: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
import pkg_resources
@nix { "action": "setPhase", "phase": "pythonRemoveBinBytecodePhase" }
pythonRemoveBinBytecodePhase
@nix { "action": "setPhase", "phase": "pythonImportsCheckPhase" }
pythonImportsCheckPhase
Executing pythonImportsCheckPhase
Check whether the following modules can be imported: flask_mongoengine
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "<string>", line 1, in <lambda>
File "/nix/store/nxxghhhia9x1skpqfak4z407yy0mbnnd-python3-3.11.5/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/nix/store/xqqz6l9bqnag7ifhff9h38yk0mczillf-python3.11-flask-mongoengine-1.0.0/lib/python3.11/site-packages/flask_mongoengine/__init__.py", line 10, in <module>
from .json import override_json_encoder
File "/nix/store/xqqz6l9bqnag7ifhff9h38yk0mczillf-python3.11-flask-mongoengine-1.0.0/lib/python3.11/site-packages/flask_mongoengine/json.py", line 2, in <module>
from flask.json import JSONEncoder
ImportError: cannot import name 'JSONEncoder' from 'flask.json' (/nix/store/i9j9lhv3dbn5jy7b6h60qg0n4ajh8j8z-python3.11-flask-2.3.3/lib/python3.11/site-packages/flask/json/__init__.py)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment