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

EXCEPTION: ModuleNotFoundError #150

Open
btmgt23 opened this issue Jul 5, 2024 · 0 comments
Open

EXCEPTION: ModuleNotFoundError #150

btmgt23 opened this issue Jul 5, 2024 · 0 comments

Comments

@btmgt23
Copy link

btmgt23 commented Jul 5, 2024

I am having an issue while testing botasaurus latest version. I have setup a venv on my PC, have installed botasaurus pip install botasaurus and running following code but keep getting the exception on the first line:

CODE

from botasaurus.browser import browser, Driver
@browser()
def scrape_heading_task(driver: Driver, data):
    driver.google_get("http://nowsecure.nl#relax")
    driver.prompt()
    return True

scrape_heading_task()

EXCEPTION

Exception has occurred: ModuleNotFoundError       (note: full exception trace is shown but execution is paused at: _run_module_as_main)
No module named 'botasaurus.browser'; 'botasaurus' is not a package
AttributeError: partially initialized module 'botasaurus' has no attribute '__path__' (most likely due to a circular import)

During handling of the above exception, another exception occurred:

  File "D:\botasaurus\botasaurus.py", line 1, in <module>
    from botasaurus.browser import browser, Driver
  File "D:\botasaurus\botasaurus.py", line 1, in <module>
    from botasaurus.browser import browser, Driver
  File "C:\Program Files\Python311\Lib\runpy.py", line 88, in _run_code
    exec(code, run_globals)
  File "C:\Program Files\Python311\Lib\runpy.py", line 198, in _run_module_as_main (Current frame)
    return _run_code(code, main_globals, None,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'botasaurus.browser'; 'botasaurus' is not a package
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

1 participant