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

recipe-scrapers is really mandatory ? #78

Closed
marillat opened this issue Dec 6, 2021 · 6 comments
Closed

recipe-scrapers is really mandatory ? #78

marillat opened this issue Dec 6, 2021 · 6 comments

Comments

@marillat
Copy link
Contributor

marillat commented Dec 6, 2021

gourmand 1.1.0rc2
Debian unstable amd64

Gourmand doesn't start with
pkg_resources.DistributionNotFound: The 'recipe-scrapers' distribution was not found and is required by gourmand

 gourmand                                         
args = Namespace(db_url='', threads=False, gourmanddir='', thread_debug_interval=5.0, thread_debug=False, debug_file='', time=False, debug=None)
Traceback (most recent call last):
  File "/usr/bin/gourmand", line 33, in <module>
    sys.exit(load_entry_point('gourmand==1.0.0', 'gui_scripts', 'gourmand')())
  File "/usr/bin/gourmand", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.9/importlib/metadata.py", line 77, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/usr/lib/python3/dist-packages/gourmand/main.py", line 9, in <module>
    from gourmand import (__version__, batchEditor, convert, plugin, plugin_gui,
  File "/usr/lib/python3/dist-packages/gourmand/plugin.py", line 36, in <module>
    from . import plugin_loader
  File "/usr/lib/python3/dist-packages/gourmand/plugin_loader.py", line 8, in <module>
    import pkg_resources
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3266, in <module>
    def _initialize_master_working_set():
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3240, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3278, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 573, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 891, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 777, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'recipe-scrapers' distribution was not found and is required by gourmand
@cydanil
Copy link
Contributor

cydanil commented Dec 7, 2021

Could you clarify how you went about installing the application? recipe-scrapers is specified in setup.py and is available on pypi.

@marillat
Copy link
Contributor Author

marillat commented Dec 8, 2021

Well I did noticed this dependency.
Why the setup doesn't fail if recipe-scrapers isn't installed ?

@cydanil
Copy link
Contributor

cydanil commented Dec 8, 2021

I'm not sure, could you elaborate on how gourmand was installed?

@marillat
Copy link
Contributor Author

marillat commented Dec 8, 2021

I'm the Debian maintainer for gourmand.
So, I did a package myself.

@marillat marillat changed the title pkg_resources.DistributionNotFound recipe-scrapers is really mandatory ? Dec 9, 2021
@marillat
Copy link
Contributor Author

marillat commented Dec 9, 2021

See #80

@marillat
Copy link
Contributor Author

I'm closing this bug report.

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

2 participants