unable to install standardebooks toolset: "metadata-generation-failed" error

290 views
Skip to first unread message

David Gross

unread,
Oct 15, 2022, 6:27:30 PM10/15/22
to Standard Ebooks
I'm on Ubuntu 20.04.5. "pipx install standardebooks" fails with "error: metadata-generation-failed". Full error traceback below:

$ pipx install standardebooks
  error: subprocess-exited-with-error
 
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [20 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-p7dc6_i6/standardebooks_4896aa92bece426fb4272d4732895313/setup.py", line 41, in <module>
          setup(
        File "/home/dgross/.local/pipx/shared/lib/python3.8/site-packages/setuptools/__init__.py", line 87, in setup
          return distutils.core.setup(**attrs)
        File "/home/dgross/.local/pipx/shared/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 147, in setup
          _setup_distribution = dist = klass(attrs)
        File "/home/dgross/.local/pipx/shared/lib/python3.8/site-packages/setuptools/dist.py", line 476, in __init__
          _Distribution.__init__(
        File "/home/dgross/.local/pipx/shared/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 282, in __init__
          self.finalize_options()
        File "/home/dgross/.local/pipx/shared/lib/python3.8/site-packages/setuptools/dist.py", line 899, in finalize_options
          for ep in sorted(loaded, key=by_order):
        File "/home/dgross/.local/pipx/shared/lib/python3.8/site-packages/setuptools/dist.py", line 898, in <lambda>
          loaded = map(lambda e: e.load(), filtered)
        File "/home/dgross/.local/pipx/shared/lib/python3.8/site-packages/setuptools/_vendor/importlib_metadata/__init__.py", line 196, in load
          return functools.reduce(getattr, attrs, module)
      AttributeError: type object 'Distribution' has no attribute '_finalize_feature_opts'
      [end of output]
 
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Error installing standardebooks.

Matt Chan

unread,
Oct 15, 2022, 6:39:50 PM10/15/22
to standar...@googlegroups.com
I think this might have to do with standardebooks tool set really set up for Ubunto 18.04LTS. You might try having pipx create a virtual environment with python 3.6 instead of 3.8 instead and see if that works (use the --python flag as noted here: https://pypa.github.io/pipx/docs/).

--
You received this message because you are subscribed to the Google Groups "Standard Ebooks" group.
To unsubscribe from this group and stop receiving emails from it, send an email to standardebook...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/standardebooks/5809bf10-fe14-4a07-ab63-60f6c1425789n%40googlegroups.com.

David Gross

unread,
Oct 15, 2022, 11:12:33 PM10/15/22
to standar...@googlegroups.com

FWIW that didn't work for me. I just got a different set of error messages.

You received this message because you are subscribed to a topic in the Google Groups "Standard Ebooks" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/standardebooks/nPHqJQHsm-g/unsubscribe.
To unsubscribe from this group and all its topics, send an email to standardebook...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/standardebooks/CAB6ohTco_LaQ7WLQzykr%3Dm-e-L02exF8SDGGB5qHkmDA5PGWLQ%40mail.gmail.com.

François Grandjean

unread,
Oct 15, 2022, 11:26:54 PM10/15/22
to Standard Ebooks
Is this the very first time you attempt to install the toolset on Ubuntu? Other people have had problems with pipx and the toolset when upgrading Ubuntu—upgrading Ubuntu usually upgrades Python and that has caused issues (see this thread).

The solution was to erase the pipx folder and then try to install the toolset again, i.e., rm -rf ~/.local/pipx

David Gross

unread,
Oct 15, 2022, 11:43:38 PM10/15/22
to standar...@googlegroups.com

After I delete ~/.local/pipx I get the same error as before when trying to pipx install standardebooks. Or did you mean I should try to reinstall pipx itself?

Reply all
Reply to author
Forward
0 new messages