riverrun / genxword

Crossword generator written in Python.
GNU General Public License v3.0
162 stars 40 forks source link

ImportError: DLL load failed: The specified procedure could not be found. #21

Open grylls opened 4 years ago

grylls commented 4 years ago

Getting this error when using python 3.7.4.

riverrun commented 4 years ago

First of all, sorry for the delay in getting back to you.

Is this using Windows? Does the error output give you any other information (for example, where the ImportError is)?

grylls commented 4 years ago

Np, Yeah in windows.

(base) C:\Users\dubey>genxword word_list.txt n Traceback (most recent call last): File "c:\users\dubey\anaconda3\lib\runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "c:\users\dubey\anaconda3\lib\runpy.py", line 85, in _run_code exec(code, runglobals) File "C:\Users\dubey\Anaconda3\Scripts\genxword.exe__main__.py", line 5, in File "c:\users\dubey\anaconda3\lib\site-packages\genxword\cli.py", line 21, in from .control import , Genxword File "c:\users\dubey\anaconda3\lib\site-packages\genxword\control.py", line 24, in from .calculate import Crossword, Exportfiles File "c:\users\dubey\anaconda3\lib\site-packages\genxword\calculate.py", line 22, in import gi File "c:\users\dubey\anaconda3\lib\site-packages\gi__init__.py", line 42, in from . import _gi ImportError: DLL load failed: The specified procedure could not be found.

grylls commented 4 years ago

Trying to install gi/pgi , getting error

dubey\AppData\Local\Temp\pip-install-omgeg1nw\pgi\setup.py'"'"'; file='"'"'C:\Users\dubey\AppData\Local\Temp\pip-install-omgeg1nw\pgi\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info cwd: C:\Users\dubey\AppData\Local\Temp\pip-install-omgeg1nw\pgi\ Complete output (21 lines): Traceback (most recent call last): File "", line 1, in File "C:\Users\dubey\AppData\Local\Temp\pip-install-omgeg1nw\pgi\setup.py", line 18, in import pgi File "C:\Users\dubey\AppData\Local\Temp\pip-install-omgeg1nw\pgi\pgi__init.py", line 10, in from .importer import require_version, get_required_version File "C:\Users\dubey\AppData\Local\Temp\pip-install-omgeg1nw\pgi\pgi\importer.py", line 15, in from .clib.gir import GIRepository File "C:\Users\dubey\AppData\Local\Temp\pip-install-omgeg1nw\pgi\pgi\clib\gir__init.py", line 8, in from .giargument import GIArgument File "C:\Users\dubey\AppData\Local\Temp\pip-install-omgeg1nw\pgi\pgi\clib\gir\giargument.py", line 9, in from ..glib import gboolean, gint8, guint8, gint16, guint16, gint32, guint32 File "C:\Users\dubey\AppData\Local\Temp\pip-install-omgeg1nw\pgi\pgi\clib\glib.py", line 16, in _glib = find_library("glib-2.0") File "C:\Users\dubey\AppData\Local\Temp\pip-install-omgeg1nw\pgi\pgi\clib_utils.py", line 99, in find_library _internal[name] = cdll.LoadLibrary(_so_mapping[name]) File "C:\Users\dubey\Anaconda3\lib\ctypes\init__.py", line 442, in LoadLibrary return self._dlltype(name) File "C:\Users\dubey\Anaconda3\lib\ctypes\init.py", line 364, in init__ self._handle = _dlopen(self._name, mode) OSError: [WinError 126] The specified module could not be found

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

riverrun commented 4 years ago

Could you try running pip install PyGObject and see if that works?

grylls commented 4 years ago

nope its already there Requirement already satisfied: PyGObject in c:\users\dubey\anaconda3\lib\site-packages (3.30.5)

riverrun commented 4 years ago

Do have Gtk installed? If it is installed, is it a recent version?

I think you will need to install a fairly recent version of Gtk. There seem to be quite a few guides online for installing Gtk on Windows - I cannot recommend any of them in particular because I do not use Windows.

grylls commented 4 years ago

Installed it today. But same error

riverrun commented 4 years ago

I don't know what to suggest next. I will add a note to the README explaining that it is clearly 'difficult' to get this working on Windows at the moment.

There is an issue (#22) about allowing users to install just the command-line interface, and if and when I have the time to do that, then you will be able to install that on Windows.

grylls commented 4 years ago

Thanks for reverting back.

sumedhsingh commented 2 weeks ago

Yep, stuck on the same error. I installed msys to install most of the dependencies but now I am stuck on this import gi error.