Skip to content

FileNotFoundError when trying to run cw-wizard.py #10

Description

@albertoursino

I followed the "Starting the Command Line Script" instructions in the README.

This is what I get after runnign python3 cw-wizard.py -b chrome -u https://www.cardmarket.com/it/YuGiOh/Wants/18973798 -w.

(.venv) albertoursino@Alberto:~/repos/cw-wizard$ python3 cw-wizard.py -b chrome -u https://www.cardmarket.com/it/YuGiOh/Wants/18973798 -w
DEBUG    - ------- Checking inputs parameters...
DEBUG    - ------- Retrieving credentials...
INFO     - To properly bypass Cloudflare your user agent is require.

Enter your browser User-Agent (search on Google "my user agent"):
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36


DEBUG    - ------- Calling the Wizard...

INFO     - Hi there... You are here to find great card deals, right? Humm... okay... Give me this wantlist url!
WARNING  - Be aware that he's very old and can be sometimes grumpy and slow to perform all these tasks.

Traceback (most recent call last):
  File "/home/albertoursino/repos/cw-wizard/cw-wizard.py", line 126, in <module>
    main(arguments.browser_name, arguments.wantlist_urls, arguments.continue_on_warning, arguments.max_sellers, arguments.articles_comment)
  File "/home/albertoursino/repos/cw-wizard/cw-wizard.py", line 105, in main
    result = cardmarket_wantlist_wizard(browser_name, user_agent, credentials, wantlist_urls, continue_on_warning=continue_on_warning, max_sellers=max_sellers, articles_comment=articles_comment)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/albertoursino/repos/cw-wizard/core.py", line 760, in cardmarket_wantlist_wizard
    session.cookies = get_cardmarket_cookies(browser_name)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/albertoursino/repos/cw-wizard/core.py", line 742, in get_cardmarket_cookies
    return funct_retrieve_cookies(domain_name=CARDMARKET_TOP_DOMAIN)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/albertoursino/repos/cw-wizard/.venv/lib/python3.11/site-packages/browser_cookie3/__init__.py", line 1160, in chrome
    return Chrome(cookie_file, domain_name, key_file).load()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/albertoursino/repos/cw-wizard/.venv/lib/python3.11/site-packages/browser_cookie3/__init__.py", line 626, in __init__
    super().__init__(browser='Chrome', cookie_file=cookie_file,
  File "/home/albertoursino/repos/cw-wizard/.venv/lib/python3.11/site-packages/browser_cookie3/__init__.py", line 416, in __init__
    self.__add_key_and_cookie_file(**kwargs)
  File "/home/albertoursino/repos/cw-wizard/.venv/lib/python3.11/site-packages/browser_cookie3/__init__.py", line 431, in __add_key_and_cookie_file
    USE_DBUS_LINUX).get_password(os_crypt_name)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/albertoursino/repos/cw-wizard/.venv/lib/python3.11/site-packages/browser_cookie3/__init__.py", line 232, in get_password
    return self.__get_secretstorage_password(os_crypt_name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/albertoursino/repos/cw-wizard/.venv/lib/python3.11/site-packages/browser_cookie3/__init__.py", line 247, in __get_secretstorage_password
    return self.__methods_map.get('secretstorage')(schema, os_crypt_name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/albertoursino/repos/cw-wizard/.venv/lib/python3.11/site-packages/browser_cookie3/__init__.py", line 303, in __get_secretstorage_item_jeepney
    with _JeepneyConnection(*args) as connection:
  File "/home/albertoursino/repos/cw-wizard/.venv/lib/python3.11/site-packages/browser_cookie3/__init__.py", line 195, in __enter__
    self.__connection = open_dbus_connection()
                        ^^^^^^^^^^^^^^^^^^^^^^
  File "/home/albertoursino/repos/cw-wizard/.venv/lib/python3.11/site-packages/jeepney/io/blocking.py", line 342, in open_dbus_connection
    sock = prep_socket(bus_addr, enable_fds, timeout=auth_timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/albertoursino/repos/cw-wizard/.venv/lib/python3.11/site-packages/jeepney/io/blocking.py", line 310, in prep_socket
    with_sock_deadline(sock.connect, addr)
  File "/home/albertoursino/repos/cw-wizard/.venv/lib/python3.11/site-packages/jeepney/io/blocking.py", line 307, in with_sock_deadline
    return meth(*args)
           ^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions