8000 Error: Can't mix bytes and non-bytes in path components. · Issue #290 · wordfence/wordfence-cli · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Error: Can't mix bytes and non-bytes in path components. #290

New issue

8000 Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
akenion opened this issue Sep 3, 2024 · 0 comments · Fixed by #306
Closed

Error: Can't mix bytes and non-bytes in path components. #290

akenion opened this issue Sep 3, 2024 · 0 comments · Fixed by #306
Labels
bug Something isn't working
Milestone

Comments

@akenion
Copy link
Contributor
akenion commented Sep 3, 2024

@scottbisker encountered this when upgrading from v4.0.1 to v4.0.2

wordfence malware-scan --cache-directory /tmp --pre-compile-generic --pattern-database-path=/tmp/vectorscan-5.4.6-amd64-premium.1.db --match-engine vectorscan --license <any key> --no-check-for-update --accept-terms
Compiling 6021 pattern(s) to vectorscan database (this may take a substantial amount of time depending on system performance)...
Successfully compiled vectorscan database
Error: Can't mix bytes and non-bytes in path components.
Successfully compiled vectorscan database
Traceback (most recent call last):
  File ".local/bin/wordfence", line 8, in <module>
    sys.exit(main())
  File ".local/lib/python3.10/site-packages/wordfence/cli/cli.py", line 193, in main
    exit_code = invoke_cli()
  File ".local/lib/python3.10/site-packages/wordfence/cli/cli.py", line 187, in invoke_cli
    return exception_handler.process_exception(exception)
  File ".local/lib/python3.10/site-packages/wordfence/cli/cli.py", line 43, in process_exception
    raise exception
  File ".local/lib/python3.10/site-packages/wordfence/cli/cli.py", line 185, in invoke_cli
    return cli.invoke()
  File ".local/lib/python3.10/site-packages/wordfence/cli/cli.py", line 178, in invoke
    return subcommand.invoke()
  File ".local/lib/python3.10/site-packages/wordfence/cli/malwarescan/malwarescan.py", line 316, in invoke
    database_source = self._get_database_source(
  File ".local/lib/python3.10/site-packages/wordfence/cli/malwarescan/malwarescan.py", line 268, in _get_database_source
    with tempfile.NamedTemporaryFile(
  File "/usr/lib/python3.10/tempfile.py", line 696, in NamedTemporaryFile
    prefix, suffix, dir, output_type = _sanitize_params(prefix, suffix, dir)
  File "/usr/lib/python3.10/tempfile.py", line 255, in _sanitize_params
    output_type = _infer_return_type(prefix, suffix, dir)
  File "/usr/lib/python3.10/tempfile.py", line 236, in _infer_return_type
    raise TypeError("Can't mix bytes and non-bytes in "
TypeError: Can't mix bytes and non-bytes in path components.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant
0