Getting Error even after installing Pyppeteer in Windows

Viewed 16

Even after installing pyppeteer in windows using the following commands

pip install pyppeteer
pip install pipenv 
pipenv shell
pipenv install pyppeteer

I am still getting this error while executing this command

Traceback (most recent call last):
  File "<pyshell#13>", line 1, in <module>
    from pyppeteer import launch
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\pyppeteer\__init__.py", line 30, in <module>
    from pyppeteer.launcher import connect, executablePath, launch, defaultArgs  # noqa: E402; noqa: E402
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\pyppeteer\launcher.py", line 26, in <module>
    from pyppeteer.browser import Browser
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\pyppeteer\browser.py", line 11, in <module>
    from pyee import EventEmitter
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\pyee\__init__.py", line 73, in <module>
    from pyee._trio import TrioEventEmitter  # noqa
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\pyee\_trio.py", line 4, in <module>
    import trio
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\trio\__init__.py", line 18, in <module>
    from ._core import (
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\trio\_core\__init__.py", line 9, in <module>
    from ._exceptions import (
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\trio\_core\_exceptions.py", line 3, in <module>
    from trio._util import NoPublicConstructor
ValueError: source code string cannot contain null bytes

Python version used: Python 3.10.6 pyppeteer version installed 1.0.2

0 Answers
Related