trying to install pywhatkit on my windows machine. but the the installation ran into error while installing wikipedia library.
To Reproduce
just ran pip install pywhatkit
Screenshots
no screenshots but i have the logs of error.
PS C:\Users\ARMS\Desktop\Jarvis> pip install Pywhatkit
Collecting Pywhatkit
Using cached pywhatkit-5.4-py3-none-any.whl.metadata (5.5 kB)
Requirement already satisfied: Pillow in c:\users\arms\appdata\local\programs\python\python312\lib\site-packages (from Pywhatkit) (10.3.0)
Collecting pyautogui (from Pywhatkit)
Using cached PyAutoGUI-0.9.54.tar.gz (61 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: requests in c:\users\arms\appdata\local\programs\python\python312\lib\site-packages (from Pywhatkit) (2.31.0)
Collecting wikipedia (from Pywhatkit)
Using cached wikipedia-1.4.0.tar.gz (27 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [45 lines of output]
C:\Users\ARMS\AppData\Local\Temp\pip-install-1fyghxzn\wikipedia_f675c247675142dea8f2c52defc3db43\setup.py:20: SyntaxWarning: invalid esca
pe sequence '\('
"^_version_ = \((\d+), (\d+), (\d+)\)$",
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\ARMS\AppData\Local\Temp\pip-install-1fyghxzn\wikipedia_f675c247675142dea8f2c52defc3db43\setup.py", line 26, in <module>
setuptools.setup(
File "C:\Users\ARMS\AppData\Local\Programs\Python\Python312\Lib\site-packages\setuptools\_init_.py", line 104, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ARMS\AppData\Local\Programs\Python\Python312\Lib\site-packages\setuptools\_distutils\core.py", line 147, in setup
_setup_distribution = dist = klass(attrs)
^^^^^^^^^^^^
File "C:\Users\ARMS\AppData\Local\Programs\Python\Python312\Lib\site-packages\setuptools\dist.py", line 307, in _init_
Distribution.init_(self, dist_attrs)
File "C:\Users\ARMS\AppData\Local\Programs\Python\Python312\Lib\site-packages\setuptools\distutils\dist.py", line 283, in __init_
self.finalize_options()
File "C:\Users\ARMS\AppData\Local\Programs\Python\Python312\Lib\site-packages\setuptools\dist.py", line 657, in finalize_options
for ep in sorted(loaded, key=by_order):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ARMS\AppData\Local\Programs\Python\Python312\Lib\site-packages\setuptools\dist.py", line 656, in <lambda>
loaded = map(lambda e: e.load(), filtered)
^^^^^^^^
File "C:\Users\ARMS\AppData\Local\Programs\Python\Python312\Lib\importlib\metadata\_init_.py", line 205, in load
module = import_module(match.group('module'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ARMS\AppData\Local\Programs\Python\Python312\Lib\importlib\_init_.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 995, in exec_module
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "C:\Users\ARMS\AppData\Local\Programs\Python\Python312\Lib\site-packages\cx_Freeze\_init_.py", line 11, in <module>
from .command.build_exe import BuildEXE as build_exe
File "C:\Users\ARMS\AppData\Local\Programs\Python\Python312\Lib\site-packages\cx_Freeze\command\build_exe.py", line 14, in <module>
from cx_Freeze.freezer import Freezer
File "C:\Users\ARMS\AppData\Local\Programs\Python\Python312\Lib\site-packages\cx_Freeze\freezer.py", line 31, in <module>
from .finder import ModuleFinder
File "C:\Users\ARMS\AppData\Local\Programs\Python\Python312\Lib\site-packages\cx_Freeze\finder.py", line 36, in <module>
IMPORT_STAR = opcode.opmap["IMPORT_STAR"]
~~~~^^^^^^^^^^^^^^^
KeyError: 'IMPORT_STAR'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Description
trying to install pywhatkit on my windows machine. but the the installation ran into error while installing wikipedia library.
To Reproduce
just ran
pip install pywhatkit
Screenshots
no screenshots but i have the logs of error.
Version Information
You can Check the PyWhatKit Version using