【问题标题】:Error Segment Fault in Flake8 running by pipenvpipenv 运行的 Flake8 中的错误段错误
【发布时间】:2019-11-05 16:30:30
【问题描述】:

在我的本地环境中 flake8 --verbose 工作,但是当我运行 pipenv run flake8 --verbose 时,我的 virtualenv 和结果是:

flake8.plugins.manager    MainProcess     92 INFO     Loading entry-points for "flake8.extension".
flake8.plugins.manager    MainProcess    126 INFO     Loading entry-points for "flake8.report".
flake8.plugins.manager    MainProcess    149 INFO     Loading plugin "F" from entry-point.
flake8.plugins.manager    MainProcess    179 INFO     Loading plugin "pycodestyle.ambiguous_identifier" from entry-point.
flake8.plugins.manager    MainProcess    189 INFO     Loading plugin "pycodestyle.bare_except" from entry-point.
flake8.plugins.manager    MainProcess    189 INFO     Loading plugin "pycodestyle.blank_lines" from entry-point.
flake8.plugins.manager    MainProcess    189 INFO     Loading plugin "pycodestyle.break_after_binary_operator" from entry-point.
flake8.plugins.manager    MainProcess    189 INFO     Loading plugin "pycodestyle.break_before_binary_operator" from entry-point.
flake8.plugins.manager    MainProcess    190 INFO     Loading plugin "pycodestyle.comparison_negative" from entry-point.
flake8.plugins.manager    MainProcess    190 INFO     Loading plugin "pycodestyle.comparison_to_singleton" from entry-point.
flake8.plugins.manager    MainProcess    190 INFO     Loading plugin "pycodestyle.comparison_type" from entry-point.
flake8.plugins.manager    MainProcess    190 INFO     Loading plugin "pycodestyle.compound_statements" from entry-point.
flake8.plugins.manager    MainProcess    190 INFO     Loading plugin "pycodestyle.continued_indentation" from entry-point.
flake8.plugins.manager    MainProcess    190 INFO     Loading plugin "pycodestyle.explicit_line_join" from entry-point.
flake8.plugins.manager    MainProcess    190 INFO     Loading plugin "pycodestyle.extraneous_whitespace" from entry-point.
flake8.plugins.manager    MainProcess    191 INFO     Loading plugin "pycodestyle.imports_on_separate_lines" from entry-point.
flake8.plugins.manager    MainProcess    191 INFO     Loading plugin "pycodestyle.indentation" from entry-point.
flake8.plugins.manager    MainProcess    191 INFO     Loading plugin "pycodestyle.maximum_doc_length" from entry-point.
flake8.plugins.manager    MainProcess    191 INFO     Loading plugin "pycodestyle.maximum_line_length" from entry-point.
flake8.plugins.manager    MainProcess    191 INFO     Loading plugin "pycodestyle.missing_whitespace" from entry-point.
flake8.plugins.manager    MainProcess    191 INFO     Loading plugin "pycodestyle.missing_whitespace_after_import_keyword" from entry-point.
flake8.plugins.manager    MainProcess    191 INFO     Loading plugin "pycodestyle.missing_whitespace_around_operator" from entry-point.
flake8.plugins.manager    MainProcess    191 INFO     Loading plugin "pycodestyle.module_imports_on_top_of_file" from entry-point.
flake8.plugins.manager    MainProcess    192 INFO     Loading plugin "pycodestyle.python_3000_async_await_keywords" from entry-point.
flake8.plugins.manager    MainProcess    192 INFO     Loading plugin "pycodestyle.python_3000_backticks" from entry-point.
flake8.plugins.manager    MainProcess    192 INFO     Loading plugin "pycodestyle.python_3000_has_key" from entry-point.
flake8.plugins.manager    MainProcess    192 INFO     Loading plugin "pycodestyle.python_3000_invalid_escape_sequence" from entry-point.
flake8.plugins.manager    MainProcess    192 INFO     Loading plugin "pycodestyle.python_3000_not_equal" from entry-point.
flake8.plugins.manager    MainProcess    192 INFO     Loading plugin "pycodestyle.python_3000_raise_comma" from entry-point.
flake8.plugins.manager    MainProcess    192 INFO     Loading plugin "pycodestyle.tabs_obsolete" from entry-point.
flake8.plugins.manager    MainProcess    193 INFO     Loading plugin "pycodestyle.tabs_or_spaces" from entry-point.
flake8.plugins.manager    MainProcess    193 INFO     Loading plugin "pycodestyle.trailing_blank_lines" from entry-point.
flake8.plugins.manager    MainProcess    193 INFO     Loading plugin "pycodestyle.trailing_whitespace" from entry-point.
flake8.plugins.manager    MainProcess    193 INFO     Loading plugin "pycodestyle.whitespace_around_comma" from entry-point.
flake8.plugins.manager    MainProcess    193 INFO     Loading plugin "pycodestyle.whitespace_around_keywords" from entry-point.
flake8.plugins.manager    MainProcess    193 INFO     Loading plugin "pycodestyle.whitespace_around_named_parameter_equals" from entry-point.
flake8.plugins.manager    MainProcess    194 INFO     Loading plugin "pycodestyle.whitespace_around_operator" from entry-point.
flake8.plugins.manager    MainProcess    194 INFO     Loading plugin "pycodestyle.whitespace_before_comment" from entry-point.
flake8.plugins.manager    MainProcess    194 INFO     Loading plugin "pycodestyle.whitespace_before_parameters" from entry-point.
flake8.plugins.manager    MainProcess    194 INFO     Loading plugin "C90" from entry-point.
flake8.plugins.manager    MainProcess    195 INFO     Loading plugin "default" from entry-point.
flake8.plugins.manager    MainProcess    196 INFO     Loading plugin "pylint" from entry-point.
flake8.plugins.manager    MainProcess    196 INFO     Loading plugin "quiet-filename" from entry-point.
flake8.plugins.manager    MainProcess    196 INFO     Loading plugin "quiet-nothing" from entry-point.
flake8.checker            MainProcess    198 INFO     Making checkers
flake8.checker            MainProcess   1023 INFO     Checking 57 files
Segmentation fault (core dumped)

我无法获取 virtualenv 的核心转储日志。

flake8 版本:

3.7.8 (mccabe: 0.6.1, pycodestyle: 2.5.0, pyflakes: 2.1.1) CPython 3.7.0 on Linux

所有代码都在 docker 容器中运行,使用 python 3.7.0。

【问题讨论】:

  • flake8 --bug-report: ``` { "dependencies": [ { "dependency": "entrypoints", "version": "0.3" } ], "platform": { "python_implementation": " CPython”,“python_version”:“3.7.0”,“system”:“Linux”},“plugins”:[{“is_local”:false,“plugin”:“mccabe”,“version”:“0.6.1 " }, { "is_local": false, "plugin": "pycodestyle", "version": "2.5.0" }, { "is_local": false, "plugin": "pyflakes", "version": "2.1 .1" } ], "版本": "3.7.8" } ```
  • 我建议在项目问题跟踪器上报告错误,而不是在 StackOverflow 上。 gitlab.com/pycqa/flake8/issues
  • 已经这样做了

标签: python-3.x virtualenv pipenv flake8


【解决方案1】:

根据flake8 repository中的问题,非官方python版本中存在一些无法解释的错误。我通过创建一个新的虚拟环境来修复它,使用 pyenv 构建的 python3.7.5。

【讨论】:

    猜你喜欢
    • 2021-04-04
    • 1970-01-01
    • 1970-01-01
    • 2018-06-12
    • 2022-01-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-11-20
    相关资源
    最近更新 更多