Skip to content

Instantly share code, notes, and snippets.

@sumnerevans
Created January 18, 2023 23:41
Show Gist options
  • Save sumnerevans/e4eb46851b21507e4933fa672b0938c6 to your computer and use it in GitHub Desktop.
Save sumnerevans/e4eb46851b21507e4933fa672b0938c6 to your computer and use it in GitHub Desktop.
litecli build error
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing setuptools-build-hook
Using setuptoolsBuildPhase
Using setuptoolsShellHook
Sourcing pip-install-hook
Using pipInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing setuptools-check-hook
Using setuptoolsCheckPhase
Sourcing pytest-check-hook
Using pytestCheckPhase
Removing setuptoolsCheckPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/x67qrajn4lk05bgkarv19fj0y47hb86p-litecli-1.8.0.tar.gz
source root is litecli-1.8.0
setting SOURCE_DATE_EPOCH to timestamp 1648601362 of file litecli-1.8.0/setup.cfg
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
no configure script, doing nothing
@nix { "action": "setPhase", "phase": "buildPhase" }
building
Executing setuptoolsBuildPhase
running bdist_wheel
running build
running build_py
creating build
creating build/lib
creating build/lib/litecli
copying litecli/clistyle.py -> build/lib/litecli
copying litecli/encodingutils.py -> build/lib/litecli
copying litecli/compat.py -> build/lib/litecli
copying litecli/key_bindings.py -> build/lib/litecli
copying litecli/main.py -> build/lib/litecli
copying litecli/config.py -> build/lib/litecli
copying litecli/clibuffer.py -> build/lib/litecli
copying litecli/sqlexecute.py -> build/lib/litecli
copying litecli/lexer.py -> build/lib/litecli
copying litecli/__init__.py -> build/lib/litecli
copying litecli/clitoolbar.py -> build/lib/litecli
copying litecli/sqlcompleter.py -> build/lib/litecli
copying litecli/completion_refresher.py -> build/lib/litecli
creating build/lib/litecli/packages
copying litecli/packages/completion_engine.py -> build/lib/litecli/packages
copying litecli/packages/parseutils.py -> build/lib/litecli/packages
copying litecli/packages/filepaths.py -> build/lib/litecli/packages
copying litecli/packages/prompt_utils.py -> build/lib/litecli/packages
copying litecli/packages/__init__.py -> build/lib/litecli/packages
creating build/lib/litecli/packages/special
copying litecli/packages/special/dbcommands.py -> build/lib/litecli/packages/special
copying litecli/packages/special/main.py -> build/lib/litecli/packages/special
copying litecli/packages/special/utils.py -> build/lib/litecli/packages/special
copying litecli/packages/special/favoritequeries.py -> build/lib/litecli/packages/special
copying litecli/packages/special/iocommands.py -> build/lib/litecli/packages/special
copying litecli/packages/special/__init__.py -> build/lib/litecli/packages/special
copying litecli/liteclirc -> build/lib/litecli
copying litecli/AUTHORS -> build/lib/litecli
/nix/store/0d7f64w6zqxvn411gas3bqvpcik84x82-python3.10-setuptools-65.6.3/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
installing to build/bdist.linux-x86_64/wheel
running install
running install_lib
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/wheel
creating build/bdist.linux-x86_64/wheel/litecli
copying build/lib/litecli/liteclirc -> build/bdist.linux-x86_64/wheel/litecli
copying build/lib/litecli/clistyle.py -> build/bdist.linux-x86_64/wheel/litecli
copying build/lib/litecli/AUTHORS -> build/bdist.linux-x86_64/wheel/litecli
copying build/lib/litecli/encodingutils.py -> build/bdist.linux-x86_64/wheel/litecli
copying build/lib/litecli/compat.py -> build/bdist.linux-x86_64/wheel/litecli
creating build/bdist.linux-x86_64/wheel/litecli/packages
creating build/bdist.linux-x86_64/wheel/litecli/packages/special
copying build/lib/litecli/packages/special/dbcommands.py -> build/bdist.linux-x86_64/wheel/litecli/packages/special
copying build/lib/litecli/packages/special/main.py -> build/bdist.linux-x86_64/wheel/litecli/packages/special
copying build/lib/litecli/packages/special/utils.py -> build/bdist.linux-x86_64/wheel/litecli/packages/special
copying build/lib/litecli/packages/special/favoritequeries.py -> build/bdist.linux-x86_64/wheel/litecli/packages/special
copying build/lib/litecli/packages/special/iocommands.py -> build/bdist.linux-x86_64/wheel/litecli/packages/special
copying build/lib/litecli/packages/special/__init__.py -> build/bdist.linux-x86_64/wheel/litecli/packages/special
copying build/lib/litecli/packages/completion_engine.py -> build/bdist.linux-x86_64/wheel/litecli/packages
copying build/lib/litecli/packages/parseutils.py -> build/bdist.linux-x86_64/wheel/litecli/packages
copying build/lib/litecli/packages/filepaths.py -> build/bdist.linux-x86_64/wheel/litecli/packages
copying build/lib/litecli/packages/prompt_utils.py -> build/bdist.linux-x86_64/wheel/litecli/packages
copying build/lib/litecli/packages/__init__.py -> build/bdist.linux-x86_64/wheel/litecli/packages
copying build/lib/litecli/key_bindings.py -> build/bdist.linux-x86_64/wheel/litecli
copying build/lib/litecli/main.py -> build/bdist.linux-x86_64/wheel/litecli
copying build/lib/litecli/config.py -> build/bdist.linux-x86_64/wheel/litecli
copying build/lib/litecli/clibuffer.py -> build/bdist.linux-x86_64/wheel/litecli
copying build/lib/litecli/sqlexecute.py -> build/bdist.linux-x86_64/wheel/litecli
copying build/lib/litecli/lexer.py -> build/bdist.linux-x86_64/wheel/litecli
copying build/lib/litecli/__init__.py -> build/bdist.linux-x86_64/wheel/litecli
copying build/lib/litecli/clitoolbar.py -> build/bdist.linux-x86_64/wheel/litecli
copying build/lib/litecli/sqlcompleter.py -> build/bdist.linux-x86_64/wheel/litecli
copying build/lib/litecli/completion_refresher.py -> build/bdist.linux-x86_64/wheel/litecli
running install_egg_info
running egg_info
writing litecli.egg-info/PKG-INFO
writing dependency_links to litecli.egg-info/dependency_links.txt
writing entry points to litecli.egg-info/entry_points.txt
writing requirements to litecli.egg-info/requires.txt
writing top-level names to litecli.egg-info/top_level.txt
reading manifest file 'litecli.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'litecli.egg-info/SOURCES.txt'
Copying litecli.egg-info to build/bdist.linux-x86_64/wheel/litecli-1.8.0-py3.10.egg-info
running install_scripts
adding license file "LICENSE" (matched pattern "LICEN[CS]E*")
creating build/bdist.linux-x86_64/wheel/litecli-1.8.0.dist-info/WHEEL
creating 'dist/litecli-1.8.0-py2.py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'litecli/AUTHORS'
adding 'litecli/__init__.py'
adding 'litecli/clibuffer.py'
adding 'litecli/clistyle.py'
adding 'litecli/clitoolbar.py'
adding 'litecli/compat.py'
adding 'litecli/completion_refresher.py'
adding 'litecli/config.py'
adding 'litecli/encodingutils.py'
adding 'litecli/key_bindings.py'
adding 'litecli/lexer.py'
adding 'litecli/liteclirc'
adding 'litecli/main.py'
adding 'litecli/sqlcompleter.py'
adding 'litecli/sqlexecute.py'
adding 'litecli/packages/__init__.py'
adding 'litecli/packages/completion_engine.py'
adding 'litecli/packages/filepaths.py'
adding 'litecli/packages/parseutils.py'
adding 'litecli/packages/prompt_utils.py'
adding 'litecli/packages/special/__init__.py'
adding 'litecli/packages/special/dbcommands.py'
adding 'litecli/packages/special/favoritequeries.py'
adding 'litecli/packages/special/iocommands.py'
adding 'litecli/packages/special/main.py'
adding 'litecli/packages/special/utils.py'
adding 'litecli-1.8.0.dist-info/LICENSE'
adding 'litecli-1.8.0.dist-info/METADATA'
adding 'litecli-1.8.0.dist-info/WHEEL'
adding 'litecli-1.8.0.dist-info/entry_points.txt'
adding 'litecli-1.8.0.dist-info/top_level.txt'
adding 'litecli-1.8.0.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
Finished executing setuptoolsBuildPhase
@nix { "action": "setPhase", "phase": "installPhase" }
installing
Executing pipInstallPhase
/build/litecli-1.8.0/dist /build/litecli-1.8.0
Processing ./litecli-1.8.0-py2.py3-none-any.whl
Requirement already satisfied: sqlparse in /nix/store/m6ivga0b363klldfqxv78qdj4fkijbb7-python3.10-sqlparse-0.4.3/lib/python3.10/site-packages (from litecli==1.8.0) (0.4.3)
Requirement already satisfied: click>=4.1 in /nix/store/whih1qwwfq8a4zyzx2kdnpjvwdr9b83k-python3.10-click-8.1.3/lib/python3.10/site-packages (from litecli==1.8.0) (8.1.3)
Requirement already satisfied: Pygments>=1.6 in /nix/store/g5i0zcaj9yacy45yvz3hiqfj9g1pv98x-python3.10-pygments-2.13.0/lib/python3.10/site-packages (from litecli==1.8.0) (2.13.0)
Requirement already satisfied: cli-helpers[styles]>=2.2.1 in /nix/store/b4xbnk4pngfqxvnm6zxmkj8zak1wdag6-python3.10-cli-helpers-2.3.0/lib/python3.10/site-packages (from litecli==1.8.0) (2.3.0)
Requirement already satisfied: prompt-toolkit<4.0.0,>=3.0.3 in /nix/store/d4b88ycnzqdy0dijvdl261r8wp0b6rn4-python3.10-prompt-toolkit-3.0.36/lib/python3.10/site-packages (from litecli==1.8.0) (3.0.36)
Requirement already satisfied: configobj>=5.0.5 in /nix/store/s72xqwmj50jyz6fx3aj0g4yrlphbwj8l-python3.10-configobj-5.0.6/lib/python3.10/site-packages (from litecli==1.8.0) (5.0.6)
Requirement already satisfied: tabulate[widechars]>=0.8.2 in /nix/store/l4d4nf5sbk4n22lw80i4sj34wkvib1fi-python3.10-tabulate-0.9.0/lib/python3.10/site-packages (from cli-helpers[styles]>=2.2.1->litecli==1.8.0) (0.9.0)
Requirement already satisfied: six in /nix/store/16q13sv9mq8xdas1f7rka0nq95bp4lxy-python3.10-six-1.16.0/lib/python3.10/site-packages (from configobj>=5.0.5->litecli==1.8.0) (1.16.0)
Requirement already satisfied: wcwidth in /nix/store/vxisxfc6axylfbi2zy6ri7dbm8mqwqz5-python3.10-wcwidth-0.2.5/lib/python3.10/site-packages (from prompt-toolkit<4.0.0,>=3.0.3->litecli==1.8.0) (0.2.5)
Installing collected packages: litecli
Successfully installed litecli-1.8.0
/build/litecli-1.8.0
Finished executing pipInstallPhase
@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/zf3njmwj7v5hyjfhl9pw1szd6hba320i-litecli-1.8.0
checking for references to /build/ in /nix/store/zf3njmwj7v5hyjfhl9pw1szd6hba320i-litecli-1.8.0...
patching script interpreter paths in /nix/store/zf3njmwj7v5hyjfhl9pw1szd6hba320i-litecli-1.8.0
strip is /nix/store/iiq295j1z4q1sxmdbrl2j8ma3l5ns4wr-gcc-wrapper-11.3.0/bin/strip
stripping (with command strip and flags -S) in /nix/store/zf3njmwj7v5hyjfhl9pw1szd6hba320i-litecli-1.8.0/lib /nix/store/zf3njmwj7v5hyjfhl9pw1szd6hba320i-litecli-1.8.0/bin
shrinking RPATHs of ELF executables and libraries in /nix/store/mx27sbz3fs41a5vfdf8snq4pqfs9gj3h-litecli-1.8.0-dist
checking for references to /build/ in /nix/store/mx27sbz3fs41a5vfdf8snq4pqfs9gj3h-litecli-1.8.0-dist...
patching script interpreter paths in /nix/store/mx27sbz3fs41a5vfdf8snq4pqfs9gj3h-litecli-1.8.0-dist
strip is /nix/store/iiq295j1z4q1sxmdbrl2j8ma3l5ns4wr-gcc-wrapper-11.3.0/bin/strip
Rewriting #!/nix/store/abax98471z8fshv4b9p46bkh3lxmpy0z-python3-3.10.9/bin/python3.10 to #!/nix/store/abax98471z8fshv4b9p46bkh3lxmpy0z-python3-3.10.9
wrapping `/nix/store/zf3njmwj7v5hyjfhl9pw1szd6hba320i-litecli-1.8.0/bin/litecli'...
Executing pythonRemoveTestsDir
Finished executing pythonRemoveTestsDir
@nix { "action": "setPhase", "phase": "installCheckPhase" }
running install tests
no Makefile or custom installCheckPhase, doing nothing
@nix { "action": "setPhase", "phase": "pythonCatchConflictsPhase" }
pythonCatchConflictsPhase
@nix { "action": "setPhase", "phase": "pythonRemoveBinBytecodePhase" }
pythonRemoveBinBytecodePhase
@nix { "action": "setPhase", "phase": "pythonImportsCheckPhase" }
pythonImportsCheckPhase
Executing pythonImportsCheckPhase
Check whether the following modules can be imported: litecli
@nix { "action": "setPhase", "phase": "pytestCheckPhase" }
pytestCheckPhase
Executing pytestCheckPhase
============================= test session starts ==============================
platform linux -- Python 3.10.9, pytest-7.2.0, pluggy-1.0.0
rootdir: /build/litecli-1.8.0, configfile: setup.cfg
collecting ... 
collecting 155 items 
collected 203 items 
litecli/packages/completion_engine.py . [ 0%]
litecli/packages/special/utils.py . [ 0%]
tests/test_clistyle.py ss [ 1%]
tests/test_completion_engine.py ........................................ [ 21%]
.....................x.............................................. [ 55%]
tests/test_completion_refresher.py .... [ 57%]
tests/test_dbspecial.py ..... [ 59%]
tests/test_main.py .......... [ 64%]
tests/test_parseutils.py .............X......... [ 75%]
tests/test_prompt_utils.py . [ 76%]
tests/test_smart_completion_public_schema_only.py ................F..... [ 87%]
 [ 87%]
tests/test_sqlexecute.py ..................../build/litecli-1.8.0/tests
/build/litecli-1.8.0
...... [100%]
=================================== FAILURES ===================================
_________________________ test_auto_escaped_col_names __________________________
completer = <litecli.sqlcompleter.SQLCompleter object at 0x7ffff5074fa0>
complete_event = <Mock id='140737304290992'>
def test_auto_escaped_col_names(completer, complete_event):
text = "SELECT from `select`"
position = len("SELECT ")
result = list(
completer.get_completions(
Document(text=text, cursor_position=position), complete_event
)
)
> assert (
result
== [
Completion(text="*", start_position=0),
Completion(text="`ABC`", start_position=0),
Completion(text="`insert`", start_position=0),
Completion(text="id", start_position=0),
]
+ list(map(Completion, completer.functions))
+ [Completion(text="`select`", start_position=0)]
+ list(map(Completion, sorted(completer.keywords)))
)
E AssertionError: assert [Completion(t...AVG')])), ...] == [Completion(t...AVG')])), ...]
E At index 72 diff: Completion(text='select', start_position=0, display=FormattedText([('', 'select')])) != Completion(text='`select`', start_position=0, display=FormattedText([('', '`select`')]))
E Use -v to get more diff
complete_event = <Mock id='140737304290992'>
completer = <litecli.sqlcompleter.SQLCompleter object at 0x7ffff5074fa0>
position = 7
result = [Completion(text='*', start_position=0, display=FormattedText([('', '*')])), Completion(text='`ABC`', start_position=0...lay=FormattedText([('', 'ABS')])), Completion(text='AVG', start_position=0, display=FormattedText([('', 'AVG')])), ...]
text = 'SELECT from `select`'
tests/test_smart_completion_public_schema_only.py:370: AssertionError
=============================== warnings summary ===============================
litecli/main.py:321
/build/litecli-1.8.0/litecli/main.py:321: DeprecationWarning: invalid escape sequence '\e'
"""Editor command is any query that is prefixed or suffixed by a '\e'.
litecli/packages/special/iocommands.py:124
/build/litecli-1.8.0/litecli/packages/special/iocommands.py:124: DeprecationWarning: invalid escape sequence '\e'
pattern = re.compile("(^\\\e|\\\e$)")
litecli/packages/special/iocommands.py:248
/build/litecli-1.8.0/litecli/packages/special/iocommands.py:248: DeprecationWarning: invalid escape sequence '\d'
match = re.search("\\?|\\$\d+", query)
litecli/packages/parseutils.py:15
/build/litecli-1.8.0/litecli/packages/parseutils.py:15: DeprecationWarning: invalid escape sequence '\s'
"all_punctuations": re.compile("([^\s]+)$"),
litecli/packages/parseutils.py:20
/build/litecli-1.8.0/litecli/packages/parseutils.py:20: DeprecationWarning: invalid escape sequence '\d'
"""
litecli/sqlcompleter.py:260
/build/litecli-1.8.0/litecli/sqlcompleter.py:260: DeprecationWarning: invalid escape sequence '\$'
self.name_pattern = compile("^[_a-z][_a-z0-9\$]*$")
tests/conftest.py:9
/build/litecli-1.8.0/tests/conftest.py:9: PytestDeprecationWarning: @pytest.yield_fixture is deprecated.
Use @pytest.fixture instead; they are the same.
@pytest.yield_fixture(scope="function")
tests/test_sqlexecute.py:312
/build/litecli-1.8.0/tests/test_sqlexecute.py:312: DeprecationWarning: invalid escape sequence '\G'
results = run(executor, "\\f+ test-ae \G")
tests/test_completion_refresher.py::test_refresh_called_once
tests/test_completion_refresher.py::test_refresh_called_twice
tests/test_completion_refresher.py::test_refresh_with_callbacks
/build/litecli-1.8.0/litecli/completion_refresher.py:46: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead
self._completer_thread.setDaemon(True)
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED tests/test_smart_completion_public_schema_only.py::test_auto_escaped_col_names - AssertionError: assert [Completion(t...AVG')])), ...] == [Completion(t...AV...
= 1 failed, 198 passed, 2 skipped, 1 xfailed, 1 xpassed, 11 warnings in 5.80s ==
/nix/store/chilfhdcsnmwjl7igrw26j1lrc0zar35-stdenv-linux/setup: line 1570: pop_var_context: head of shell_variables not a function context
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment