Skip to content

Conversation

@kkew3
Copy link

@kkew3 kkew3 commented Apr 27, 2025

The ModuleNotFoundError: pkg_resources occurs when the underlying virtualenv does not have setuptools installed, e.g. when installed with uv tool install bibdesk2zotero. This is because pybtex<=0.24 import pkg_resources module, which is contained in the setuptools package. Note that for pybtex>0.24 (not released yet), they drop dependency on it and use instead importlib, part of the python stdlib. This means setuptools will not be needed for pybtex>0.24.

I did a bisect search and found that setuptools>=40.4.3 is required for the bibdesk2zotero script to work.

The `ModuleNotFoundError: pkg_resources` occurs when the underlying
virtualenv does not have `setuptools` installed, e.g. when installed
with `uv tool install bibdesk2zotero`. This is because `pybtex<=0.24`
import `pkg_resources` module, which is contained in the `setuptools`
package. Note that for `pybtex>0.24` (not released yet), they drop
dependency on it and use instead `importlib`, part of the python
stdlib. This means `setuptools` will not be needed for `pybtex>0.24`.

I did a bisect search and found that setuptools>=40.4.3 is required for
the bibdesk2zotero script to work.
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

Successfully merging this pull request may close these issues.

1 participant