Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Importlib, imp, find_module, find_spec issue #972

Closed
@diraol

Description

@diraol

Hi All!

I'm creating this issue in order to concentrate all issues that we are facing inpython-mode that are caused by the import machinery.

This includesimp module deprecation (replaced byimportlib), "wrong" usage offind_spec andfind_module, different compatibilities among python versions and so on.

Currently, I'm with very restricted free time to dedicate to the project, soany help is very welcome!

We have plenty of python modules that are used inpython-mode that are not from standard python. Because of that, in the past, these modules source code were copied intopython-mode repo.
As time passed, they became old, and we started to update them as "git submodules".
This resulted in lot's of improvements, but also resulted in new problems, that we still need to fix.

Our current official branch is thedevelop from this repository, themaster branch is unmaintained.

Before going on with the attempt of solving our current problems, I would like to kindly ask everyone that want to help me, by testing new versions of the code, to do some simple steps in order to make sure your environment is "renewed":

  • Clear all python cache (__pycache__) directories and compiled files (*.pyc and*.pyo). Do it by running, in Linux-like systems and frompython-mode root dir:
    • find . -type f -name '*.pyc' -delete
    • find . -type d -name '__pycache__' -delete
  • Update all submodules with the latest version from the branch you want to test:
    • git submodule sync --recursive
    • git submodule update --init --recursive

Back to our current issue, it looks like we have several combinations that work and another bunch that does not work correctly, depending on python version and also vim version, so I'll ask you all some patience! Some times I cannot reproduce the errors that you are presenting, so your help will be fundamental for us to find the best fix.

One of the modules that were not updated is thepkg_resources, it is still a copy from some point in the past, and it may be one of the most impacted for this specific issue.

So, I'll try to update it to see if a newer version ofpkg_resources fix most of the problems. Then we can go ahead and try to work on other "modules/packages/files".

I'll try to keep the test code for this issue under the branchissue_971_import_machinery from this repo ok?

Thank you all for your patience!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp