Skip to content
New issue

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

.dist-info directory not found #6

Closed
ColmMcBarron opened this issue Feb 12, 2018 · 6 comments
Closed

.dist-info directory not found #6

ColmMcBarron opened this issue Feb 12, 2018 · 6 comments

Comments

@ColmMcBarron
Copy link

This seems to have been introduced when upgrading from 1.7.0 to 1.8.0.

Installing via pip is giving the following error:

AssertionError: webcolors .dist-info direction not found

I've locked the version on my end to 1.7.0, so it works.

Here's details about my environment if that helps:

pip: 9.0.1
python: 3.5.1

@bm371613
Copy link

It can be reproduced on docker image ubuntu:16.04 with python 3.

@ubernostrum
Copy link
Owner

Hmmm.

@ubernostrum
Copy link
Owner

Most reports of this seem to be from toolchains expecting a wheel and getting a source package. I've just bumped versions and pushed 1.8.1 onto PyPI in both source and wheel forms (previously there was only source). Try that and see if it works?

Also, most of the other instances I can find of this issue in other projects indicate the install succeeds despite the error message.

@ubernostrum
Copy link
Owner

Also also: I'm unable to reproduce using pip 9.0.1 on Python 3.5. But I'll keep poking at it.

@bm371613
Copy link

1.8.1 fixes is on ubuntu:16.04, thanks!

More details about the problem as I experienced it

# pip --version
pip 9.0.1 from /usr/local/lib/python3.5/dist-packages (python 3.5)

# pip install webcolors==1.8.0
Collecting webcolors==1.8.0
  Downloading webcolors-1.8.tar.gz
  Running setup.py (path:/tmp/pip-build-c73bx6t1/webcolors/setup.py) egg_info for package webcolors produced metadata for project name unknown. Fix your #egg=webcolors fragments.
Building wheels for collected packages: unknown, unknown
  Running setup.py bdist_wheel for unknown ... done
  Stored in directory: /root/.cache/pip/wheels/60/b2/01/9e20b456532cba685639e323ea578e519676f55dcbc0f42239
  Running setup.py bdist_wheel for unknown ... error
  Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-c73bx6t1/unknown/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpvworzdbepip-wheel- --py
thon-tag cp35:
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/usr/lib/python3.5/tokenize.py", line 454, in open
      buffer = _builtin_open(filename, 'rb')
  FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-build-c73bx6t1/unknown/setup.py'

  ----------------------------------------
  Failed building wheel for unknown
  Running setup.py clean for unknown
  Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-c73bx6t1/unknown/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" clean --all:
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/usr/lib/python3.5/tokenize.py", line 454, in open
      buffer = _builtin_open(filename, 'rb')
  FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-build-c73bx6t1/unknown/setup.py'

  ----------------------------------------
  Failed cleaning build dir for unknown
Successfully built unknown
Failed to build unknown
Installing collected packages: unknown
Successfully installed unknown-0.0.0

# my_entry_point
Traceback (most recent call last):
  File "/usr/local/bin/my_entry_point", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2927, in <module>
    @_call_aside
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2913, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2940, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 635, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 943, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 829, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'webcolors; extra == "format"' distribution was not found and is required by jsonschema

@ubernostrum
Copy link
Owner

Closing this since it now seems to be resolved.

netbsd-srcmastr referenced this issue in NetBSD/pkgsrc Nov 18, 2019
Change log:

Version 1.10, released 2019-09-08
---------------------------------

No bug fixes or new features.

Other changes
~~~~~~~~~~~~~

* Similar to the change in version 1.9 which normalized conversions to
  named colors for `gray`/`grey` to always use the `gray` variant, the
  other named grays of CSS3 now normalize to the `gray` spelling. This
  affects the following colors: `darkgray`/`darkgrey`,
  `darkslategray`/`darkslategrey`, `dimgray`/`dimgrey`,
  `lightgray`/`lightgrey`, `lightslategray`/`lightslategrey`,
  `slategray`/`slategrey`.


Version 1.9.1, released 2019-06-07
----------------------------------

Bugs fixed
~~~~~~~~~~

* The `__version__` attribute of the installed webcolors module,
  although not documented or referenced anywhere, was accidentally not
  updated in the 1.9 release. It has now been updated (and now
  indicates 1.9.1).


Version 1.9, released 2019-06-01
--------------------------------

No bug fixes.

New features
~~~~~~~~~~~~

* Added :ref:`a set of constants to use when referring to
  specifications that define color names <spec-constants>`.

Other changes
~~~~~~~~~~~~~

* When asked to provide a color name, using the CSS3/SVG set of names,
  for the hexadecimal value `#808080`, the integer triplet `rgb(128,
  128, 128)`, or the percentage triplet `rgb(50%, 50%, 50%)`,
  webcolors now always returns `u'gray'`, never `u'grey'`. Previously,
  the behavior could be inconsistent as it depended on the Python
  version in use; `u'gray'` was picked because it was the spelling
  variant used in HTML 4, CSS1, and CSS2.


Version 1.8.1, released 2018-02-12
----------------------------------

The 1.8.1 release is a repackaging of 1.8 to produce both source
(.tar.gz) and binary (.whl) package formats, following reports that
the source-package-only release of 1.8 was causing installation issues
for some users. See `issue 6 in the repository
<https://github.com/ubernostrum/webcolors/issues/6>`_ for details.


Version 1.8, released 2018-02-08
--------------------------------

No bug fixes.

New features
~~~~~~~~~~~~

* Added the :class:`~webcolors.IntegerRGB`,
  :class:`~webcolors.PercentRGB`, and
  :class:`~webcolors.HTML5SimpleColor` named tuples.

Other changes
~~~~~~~~~~~~~

* Drop support for Python 3.3 (Python core team no longer maintains
  3.3).

* Mark support for Python 3.6.

* :ref:`The full verification tests <full-verification>` now run
  correctly on Python 3.


Version 1.7, released 2016-11-25
--------------------------------

No new features or bugfixes.

Other changes
~~~~~~~~~~~~~

* Drop support for Python 2.6 (Python core team no longer maintains
  2.6).

* Mark support for Python 3.4.

* On Python 3, the use of :class:`str` for all functions which take
  string arguments is now mandatory. Attempted use of :class:`bytes`
  will raise an exception. On Python 2, use of bytestrings is still
  permitted.


Version 1.5.1, released 2015-11-23
----------------------------------

No new features.

Bug fixes
~~~~~~~~~

* Corrected multiple typos in documentation.


Version 1.5, released 2015-03-07
--------------------------------

No bug fixes.


New features
~~~~~~~~~~~~

* Python 3 support: webcolors now supports Python 3.3.

* Added :ref:`HTML5 color algorithms <html5-algorithms>`.

Other changes
~~~~~~~~~~~~~

* Packaging improvements.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants