cea-sec / miasm

Reverse engineering framework in Python
https://miasm.re/
GNU General Public License v2.0
3.44k stars 471 forks source link

Can't install miasm 0.1.5 on Windows #1494

Open greenozon opened 1 month ago

greenozon commented 1 month ago

Using Python 3.12

details

C:\Dev\python\in>pip install miasm
Collecting miasm
  Downloading miasm-0.1.5.tar.gz (618 kB)
     ---------------------------------------- 618.3/618.3 kB 4.9 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [57 lines of output]
      <string>:61: DeprecationWarning: Use shutil.which instead of find_executable
      <string>:122: DeprecationWarning: Use shutil.which instead of find_executable
      <string>:123: DeprecationWarning: Use shutil.which instead of find_executable
      building
      build with 'all'
      running egg_info
      writing miasm.egg-info\PKG-INFO
      Traceback (most recent call last):
...........
[skipped]

          return codecs.charmap_encode(input,self.errors,encoding_table)[0]
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      UnicodeEncodeError: 'charmap' codec can't encode character '\xe9' in position 20918: character maps to <undefined>
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

I've VS2019 on my PC installed using vcvars64.bat before installing miasm did not help as well (same error)

W0ni commented 1 month ago

Hello @greenozon

This was fixed in #1489 The version you are trying to install from PyPy is not recent enough. Can you try to install from the latest version of the git?

greenozon commented 1 month ago

yeah, bingo! you are very right, it fixes the issue I've git cloned the repo and did pip install . out of it and got success in the end!

Thanks for you fast reply and kind hint

any plans to release a new pypi package please? preferably with support of Python 3.12... thanks!