1

Importing winshell (version 0.6) causes the following error:

>>> import winshell
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python39\lib\site-packages\winshell.py", line 32, in <module>
    from win32com.shell import shell, shellcon
ImportError: DLL load failed while importing shell: The specified procedure could not be found.
egeres
  • 41
  • 1
  • 7
  • 1
    winshell doesn't claim to be supported on any version of Python newer than 3.2, according to the GitHub page you link to, nor on any version of Windows newer than Windows 7 [(link)](https://winshell.readthedocs.io/en/latest/). The project seems abandoned, as the GitHub repository hasn't been updated for over 7 years, so errors are perhaps to be expected. – Luke Woodward Mar 25 '22 at 11:06
  • Oh, you're right... – egeres Mar 25 '22 at 11:14

2 Answers2

0

Version 300 of pywin32 solved this issue for me! Check this other question for more info

egeres
  • 41
  • 1
  • 7
  • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - [From Review](/review/late-answers/31889468) – Emi OB Jun 01 '22 at 07:59
0

Had the same issue with Conda and librosa in Python 3.9.

Librosa references from win32com.shell import shellcon,shell, which was causing the same error you received.

Installing pywin32 via conda fixed the error for me:

conda install -c conda-forge librosa
jbnunn
  • 6,033
  • 4
  • 40
  • 64