python-crfsuite icon indicating copy to clipboard operation
python-crfsuite copied to clipboard

Windows 7 import issue

Open oezgan opened this issue 6 years ago • 8 comments

Hey Guys, working on windows 7 with a Python35-32 I have the following problem:

Python 3.5.3 (v3.5.3:1880cb95a742, Jan 16 2017, 15:51:26) [MSC v.1900 32 bit (In
tel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pycrfsuite
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Daten\Python35-32\lib\site-packages\pycrfsuite\__init__.py", line 2,
in <module>
    from ._pycrfsuite import *
ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden.
>>>

The error sates: "Could not find the module. " Can this be the case because of the "absolute import" in __init__.py ? Since I am using a non-standard python path? Thank you very much

oezgan avatar Nov 09 '17 09:11 oezgan

Hi oezgan, Did you find a fix for this yet?

Smareddy309 avatar Apr 18 '18 20:04 Smareddy309

Hi, unfortunately i did not find the resolution to this problem. As far as i remember the issue araised because of another module using the crfsuite. I think i have abandoned that module and used another one.

oezgan avatar Apr 19 '18 06:04 oezgan

Thanks for the response. I am trying to use the 'usaddress' package and this seems to be the dependency issue that I am running into.

Smareddy309 avatar Apr 19 '18 14:04 Smareddy309

I have this error as well. When I type : import pycrfsuite
I got the following error: File "C:\Users\...\AppData\Local\Programs\Python\Python35\lib\site-packages\pycrfsuite\__init__.py", line 2, in <module> from ._pycrfsuite import * ImportError: DLL load failed: The specified module could not be found.

What should I do?

aslesani avatar Jul 11 '18 19:07 aslesani

Hi guys, I have checked this again, and magically it is working now:

C:\Users\user>python Python 3.5.3 (v3.5.3:1880cb95a742, Jan 16 2017, 15:51:26) [MSC v.1900 32 bit (In tel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import pycrfsuite >>>

I have even reinstalled it: C:\Users\user>pip install -I python-crfsuite Collecting python-crfsuite Downloading https://files.pythonhosted.org/packages/fa/61/d7195693e44b64be473d 677fb6291b867fef9bbac2a275cbe76a13419672/python_crfsuite-0.9.5-cp35-cp35m-win32. whl (124kB) 100% |################################| 133kB 123kB/s Installing collected packages: python-crfsuite Successfully installed python-crfsuite-0.9.5

I have no use for crfsuite anymore, so I don't have any further details or insights.

oezgan avatar Jul 12 '18 10:07 oezgan

Dear @oezgan Did you import it successfully? On one of my systems, it works without any problem but on another one, I have the following error: ImportError: DLL load failed: The specified module could not be found.

aslesani avatar Jul 12 '18 12:07 aslesani

yes the import was successful. No error messages, but i cannot tell why.

oezgan avatar Jul 12 '18 13:07 oezgan

I was having this issue with 32 bit python 3.7 on Windows. When I installed 64 bit python 3.7 it magically worked.

lbercken avatar Jul 03 '19 08:07 lbercken