ergrelet / unlicense

Dynamic unpacker and import fixer for Themida/WinLicense 2.x and 3.x.
GNU General Public License v3.0
1.06k stars 191 forks source link

pip install error #120

Open woccho opened 9 months ago

woccho commented 9 months ago

pip install git+https://github.com/ergrelet/unlicense.git . . ERROR: Could not find a version that satisfies the requirement lief<0.14,>=0.13 (from unlicense) (from versions: 0.8.0.post7, 0.8.1.post1, 0.8.2.post1, 0.8.3.post3, 0.9.0, 0.10.0, 0.10.1, 0.11.0, 0.11.1, 0.11.2, 0.11.3, 0.11.4, 0.11.5, 0.12.0, 0.12.1, 0.12.2, 0.12.3) ERROR: No matching distribution found for lief<0.14,>=0.13

imeftun commented 4 months ago

+1 Any solution?

greenozon commented 4 months ago

+1 also hit this (using Python 3.12)

INFO: pip is looking at multiple versions of unlicense to determine which version is compatible with other requirements. This could take a while.
ERROR: Could not find a version that satisfies the requirement lief<0.14,>=0.13 (from unlicense) (from versions: 0.8.0.post7, 0.8.1.post1, 0.8.2.post1, 0.8.3.post3, 0.9.0, 0.10.0, 0.10.1, 0.11.0, 0.11
.1, 0.11.2, 0.11.3, 0.11.4, 0.11.5, 0.12.0, 0.12.1, 0.12.2, 0.12.3, 0.14.0, 0.14.1)
ERROR: No matching distribution found for lief<0.14,>=0.13
greenozon commented 4 months ago

Here is a small patch (you need to local git clone and do install based on ot):

diff --git a/pyproject.toml b/pyproject.toml
index fca8c9a..e32c3ac 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -6,10 +6,10 @@ authors = ["Erwan Grelet"]
 license = "GPL-3.0-or-later"

 [tool.poetry.dependencies]
-python = ">=3.9, <3.12"
+python = ">=3.9, <3.13"
 frida = "^16.1"
 unicorn = "^1.0"
-lief = "^0.13"
+lief = "^0.14"
 fire = "^0.4"
 capstone = "^4.0"
 xxhash = "^2.0"
greenozon commented 4 months ago

hmm still can't use Python 3.12 - one dependency is not having python3.12 pre-built package:

https://pypi.org/project/pyscylla/#files

greenozon commented 4 months ago

ref https://github.com/ergrelet/Scylla/issues/5

greenozon commented 3 months ago

upd: after some fixes in upstream packages, it is possible now to install it, eg:

pip install .
...
...
...
Installing collected packages: unicorn, pyscylla, xxhash, termcolor, lief, frida, capstone, fire, unlicense
Successfully installed capstone-4.0.2 fire-0.4.0 frida-16.4.7 lief-0.14.1 pyscylla-0.11.2 termcolor-2.4.0 unicorn-1.0.3 unlicense-0.4.0 xxhash-2.0.2

C:\Dev\python\unlic\unlicense>unlicense
ERROR: The function received no value for the required argument: pe_to_dump
Usage: unlicense PE_TO_DUMP <flags>
  optional flags:        --verbose | --pause_on_oep | --no_imports |
                         --force_oep | --target_version | --timeout

For detailed information on this command, run:
  unlicense --help

C:\Dev\python\unlic\unlicense>python -V
Python 3.12.2
greenozon commented 3 months ago

most probably same issue as https://github.com/ergrelet/unlicense/issues/116

chang-joon-won commented 3 months ago

I installed succesfully in below environments^^.

(01 success) Python 3.11.5 | packaged by Anaconda

(02 success) after install 3.11.8 python 32bit in windows prompt> python -m pip install git+https://github.com/ergrelet/unlicense.git