Skip to content

Error when trying to install on Windows #8

Closed

Description

@pchaigno

I'm trying to install python-ssdeep on Windows 7 32bit with MinGW.
I have Python 2.7 and MinGW 4.8 installed on a new VM.

When I run python setup.py build -c mingw32 I get the following error:

Traceback (most recent call last):
  File "setup.py", line 128, in <module>
    ext_package="ssdeep",
  File "c:\Python27\lib\distutils\core.py", line 151, in setup
    dist.run_commands()
  File "c:\Python27\lib\distutils\dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "c:\Python27\lib\distutils\dist.py", line 971, in run_command
    cmd_obj.ensure_finalized()
  File "c:\Python27\lib\distutils\cmd.py", line 109, in ensure_finalized
    self.finalize_options()
  File "setup.py", line 19, in finalize_options
    self.distribution.ext_modules = get_ext_modules()
  File "setup.py", line 67, in get_ext_modules
    binding.verify()
  File "c:\python-ssdeep\ssdeep\binding.py", line 125, in verify
    libraries=self._libraries,
  File "c:\Python27\lib\site-packages\cffi\api.py", line 340, in verify
    lib = self.verifier.load_library()
  File "c:\Python27\lib\site-packages\cffi\verifier.py", line 75, in load_library
    return self._load_library()
  File "c:\Python27\lib\site-packages\cffi\verifier.py", line 151, in _load_library
    return self._vengine.load_library()
  File "c:\Python27\lib\site-packages\cffi\vengine_cpy.py", line 149, in load_library
    raise ffiplatform.VerificationError(error)
cffi.ffiplatform.VerificationError: importing 'c:\\python-ssdeep\\ssdeep\\__pycache__\\_ssdeep_cffi_b2f2ace7x627c7d55.pyd': DLL load failed: The specified module could not be found.

I made sure the installation of ssdeep worked well manually (./configure, make and make install). It generated thee files: libfuzzy.a, libfuzzy.dll.a and libfuzzy.la.

Any idea on what the problem may be?

Activity

  1. self-assigned this
    on Dec 15, 2014
  2. phibos commented on Dec 15, 2014

    @phibos
    Member

    I have never tested the Python binding on Windows. But it looks like if it is unable to find the required libfuzzy object files.

    Did you run the setup.py with or without the BUILD_LIB=1 option?

    I have to find a Windows box and run some tests to find a solution.

  3. pchaigno commented on Dec 16, 2014

    @pchaigno
    ContributorAuthor

    BUILD_LIB=1 solved it! I didn't know I had to use this option. Thanks!
    (I ran into an easy-to-fix bug after that, made a fix in #9).

  4. oasec1 commented on Mar 18, 2015

    @oasec1

    Can you elaborate more on how you used this option during the installation in windows?

    Thanks,
    Robert

  5. pchaigno commented on Mar 19, 2015

    @pchaigno
    ContributorAuthor

    @oasec1 I simply used export BUILD_LIB=1.

  6. ooker777 commented on Jun 18, 2023

    @ooker777
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions