Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Error: "No module named 'packaging'" #32

Open
ericmclachlan opened this issue Nov 20, 2020 · 3 comments
Open

Error: "No module named 'packaging'" #32

ericmclachlan opened this issue Nov 20, 2020 · 3 comments

Comments

@ericmclachlan
Copy link

Hi Googlers

I noticed an error when building my solution today. We use pygtrie in our solution and it seems that the crash we experienced is related to the release of pygtrie 2.4.0.

This is corroborated by:

  • the error message;
  • the timing of the release of pygtrie 2.4.0 (yesterday), and
  • Reverting to pygtrie 2.3.3 seems to resolve the problem.

The full error description can be found below:

Collecting pygtrie
  Downloading pygtrie-2.4.0.tar.gz (35 kB)
    ERROR: Command errored out with exit status 1:
     command: /usr/local/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-p_3v3rdq/pygtrie/setup.py'"'"'; __file__='"'"'/tmp/pip-install-p_3v3rdq/pygtrie/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-yevdgn7f
         cwd: /tmp/pip-install-p_3v3rdq/pygtrie/
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-p_3v3rdq/pygtrie/setup.py", line 5, in <module>
        import packaging.version
    ModuleNotFoundError: No module named 'packaging'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
mina86 added a commit to mina86/pygtrie that referenced this issue Nov 20, 2020
This addresses the following error happening during installation
of the package:

    Collecting pygtrie
      Downloading pygtrie-2.4.0.tar.gz (35 kB)
        ERROR: Command errored out with exit status 1:
         command: /usr/local/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-p_3v3rdq/pygtrie/setup.py'"'"'; __file__='"'"'/tmp/pip-install-p_3v3rdq/pygtrie/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-yevdgn7f
             cwd: /tmp/pip-install-p_3v3rdq/pygtrie/
        Complete output (5 lines):
        Traceback (most recent call last):
          File "<string>", line 1, in <module>
          File "/tmp/pip-install-p_3v3rdq/pygtrie/setup.py", line 5, in <module>
            import packaging.version
        ModuleNotFoundError: No module named 'packaging'
        ----------------------------------------
    ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Fixes: google#32
@mina86
Copy link
Contributor

mina86 commented Nov 20, 2020

This should now be fixed.

@ericmclachlan
Copy link
Author

Awesome. It's weekend on my side of the world but I appreciate the quick turnaround. 👍

@ericmclachlan
Copy link
Author

I just confirmed that my build seems to be working again. Thanks for sorting it out.

mina86 added a commit to mina86/pygtrie that referenced this issue Nov 30, 2020
This addresses the following error happening during installation
of the package:

    Collecting pygtrie
      Downloading pygtrie-2.4.0.tar.gz (35 kB)
        ERROR: Command errored out with exit status 1:
         command: /usr/local/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-p_3v3rdq/pygtrie/setup.py'"'"'; __file__='"'"'/tmp/pip-install-p_3v3rdq/pygtrie/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-yevdgn7f
             cwd: /tmp/pip-install-p_3v3rdq/pygtrie/
        Complete output (5 lines):
        Traceback (most recent call last):
          File "<string>", line 1, in <module>
          File "/tmp/pip-install-p_3v3rdq/pygtrie/setup.py", line 5, in <module>
            import packaging.version
        ModuleNotFoundError: No module named 'packaging'
        ----------------------------------------
    ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Fixes: google#32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants