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

FileNotFoundError when LibreWolf profile dir not found #181

Closed
natehardison opened this issue Jun 17, 2023 · 1 comment
Closed

FileNotFoundError when LibreWolf profile dir not found #181

natehardison opened this issue Jun 17, 2023 · 1 comment

Comments

@natehardison
Copy link

I am on macOS Ventura 13.4. I don't have LibreWolf installed. Fresh install of browser_cookie3==0.19.0 gives me the following error:

Python 3.11.1 (main, Jan 25 2023, 12:27:45) [Clang 14.0.0 (clang-1400.0.29.102)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import browser_cookie3
>>> browser_cookie3.load("foo.com")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/nateh/testenv/lib/python3.11/site-packages/browser_cookie3/__init__.py", line 1233, in load
    for cookie in cookie_fn(domain_name=domain_name):
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nateh/testenv/lib/python3.11/site-packages/browser_cookie3/__init__.py", line 1216, in librewolf
    return LibreWolf(cookie_file, domain_name).load()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nateh/testenv/lib/python3.11/site-packages/browser_cookie3/__init__.py", line 1022, in __init__
    super().__init__('LibreWolf', cookie_file, domain_name, **args)
  File "/Users/nateh/testenv/lib/python3.11/site-packages/browser_cookie3/__init__.py", line 850, in __init__
    self.cookie_file = cookie_file or self.__find_cookie_file(**kwargs)
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nateh/testenv/lib/python3.11/site-packages/browser_cookie3/__init__.py", line 910, in __find_cookie_file
    user_data_path = self.__expand_and_check_path(osx_data_dirs)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/nateh/testenv/lib/python3.11/site-packages/browser_cookie3/__init__.py", line 903, in __expand_and_check_path
    raise FileNotFoundError(
FileNotFoundError: Could not find LibreWolf profile directory
rafiibrahim8 added a commit to rafiibrahim8/browser_cookie3 that referenced this issue Jun 17, 2023
@rafiibrahim8
Copy link
Collaborator

Fixed on version 0.19.1.
Thank you for reporting 💛

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