Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] licence activation error #983

Closed
hellcodes opened this issue Mar 17, 2023 · 29 comments
Closed

[BUG] licence activation error #983

hellcodes opened this issue Mar 17, 2023 · 29 comments
Assignees
Labels

Comments

@hellcodes
Copy link

hellcodes commented Mar 17, 2023

I bought a pro licence and tried to activate with the key file.
The result is shown below:

image

This is the content of 'pyarmor.error.log':

image

Any suggestions?
For reference, pyarmor was installed via pip install pyarmor.
(pyarmor version: 8.0.5, ubuntu 20.04, conda env, x86_64)

@shexty1
Copy link

shexty1 commented Mar 17, 2023

im also getting pretty much this same issue
image
ERROR request license token faild (3)

@Mich-ele
Copy link

im also getting pretty much this same issue image ERROR request license token faild (3)

I have the same problem

@aewens
Copy link

aewens commented Mar 17, 2023

There was an issue pinned yesterday about the changes made in 8.x:
#980

This looks to be related to those changes where a license from before 8.x needs to be upgraded to work with 8.0+, the steps for which are outlined here:
https://pyarmor.readthedocs.io/en/latest/licenses.html#upgrading-old-license

@Mich-ele
Copy link

to be related to those changes wh

I just bought the license

@shexty1
Copy link

shexty1 commented Mar 17, 2023

There was an issue pinned yesterday about the changes made in 8.x: #980

This looks to be related to those changes where a license from before 8.x needs to be upgraded to work with 8.0+, the steps for which are outlined here: https://pyarmor.readthedocs.io/en/latest/licenses.html#upgrading-old-license

i just bought my license about 1hr ago and have been getting this error trying to bind

@shexty1
Copy link

shexty1 commented Mar 17, 2023

if anyone could help would be greatly appreciated really need

@aewens
Copy link

aewens commented Mar 18, 2023

if anyone could help would be greatly appreciated really need

There's an email linked on the documentation website (see above), may try that if your new license still isn't working: pyarmor at 163.com

@shexty1
Copy link

shexty1 commented Mar 18, 2023

if anyone could help would be greatly appreciated really need

There's an email linked on the documentation website (see above), may try that if your new license still isn't working: pyarmor at 163.com

yeah i've emailed waiting on a response hopefully soon do you know how long usually take to reply?

@shexty1
Copy link

shexty1 commented Mar 20, 2023

anymore info on this please?

@jondy
Copy link
Contributor

jondy commented Mar 20, 2023

@shexty1 try the latest version 8.0.6, also check #980 and the content of pyarmor-regcode-xxxx.txt

@fO-000
Copy link

fO-000 commented Mar 20, 2023

My license is eligible for the upgrade, but it still reports ERROR request license token faild (16) in 8.0.6.

$ pyarmor reg --upgrade assets/pyarmor-regcode-xxxx.txt
INFO     Python 3.11.2
INFO     Pyarmor 8.0.6 (trial), 000000, non-profits
INFO     prepare "assets/pyarmor-regcode-xxxx.txt"
INFO     query key file from server

You are about to upgrade old Pyarmor license to Pyarmor Basic
License for Pyarmor 8.0+

The original license no: pyarmor-vax-00xxxx

The upgraded license information will be

License Type    : pyarmor-old
License Owner   : xxx
Bind Product    : non-profits

This license is about to be ussd for non-profits

Are you sure to continue? (yes/no) yes
INFO     process upgrading file "assets/pyarmor-regcode-xxxx.txt"
INFO     old license no: pyarmor-vax-00xxxx
INFO     send upgrade request to server
INFO     update license token
CRITICAL unknown error, please check pyarmor.error.log
ERROR    request license token faild (16)

@shexty1
Copy link

shexty1 commented Mar 20, 2023

@shexty1 try the latest version 8.0.6, also check #980 and the content of pyarmor-regcode-xxxx.txt

image
i am on 8.0.6 and still getting this error

@Mich-ele
Copy link

@shexty1 try the latest version 8.0.6, also check #980 and the content of pyarmor-regcode-xxxx.txt

image i am on 8.0.6 and still getting this error

Me too, still can't activate PRO license...

@jondy
Copy link
Contributor

jondy commented Mar 20, 2023

I have found the problem. There is a bug in pytransform3.so for updating license token, I have fixed it in MacOS (not released).

But for Linux and Windows, because I'm not in the office and the build server is in the office. I'll rebuild them when I'm back in a week.

Meanwhile new license doesn't work.

Sorry for this inconvenient.

@jondy jondy pinned this issue Mar 20, 2023
@shexty1
Copy link

shexty1 commented Mar 20, 2023

I have found the problem. There is a bug in pytransform3.so for updating license token, I have fixed it in MacOS (not released).

But for Linux and Windows, because I'm not in the office and the build server is in the office. I'll rebuild them when I'm back in a week.

Meanwhile new license doesn't work.

Sorry for this inconvenient.

sorry didn't really understand so windows fix hasn't been released and will be released in a week when your back in the office ?

@jondy
Copy link
Contributor

jondy commented Mar 20, 2023

In short, this week registration doesn't work.

I'll fix it when I'm back office because it need rebuild core libraries, but the build server is not on hand.

@shexty1
Copy link

shexty1 commented Mar 20, 2023

In short, this week registration doesn't work.

I'll fix it when I'm back office because it need rebuild core libraries, but the build server is not on hand.

no worries keep us updated

@jondy
Copy link
Contributor

jondy commented Mar 22, 2023

ERROR request license token faild (16)

This has been fixed in latest pyarmor 8.0.7 with pyarmor.cli.core == 1.0.2, please update pyarmor

@shexty1
Copy link

shexty1 commented Mar 22, 2023

ERROR request license token faild (16)

This has been fixed in latest pyarmor 8.0.7 with pyarmor.cli.core == 1.0.2, please update pyarmor

i've uninstalled the old one and installed new and when installing it says installing 8.0.7 but when i run pyarmor -v it still displays 8.0.6 is this normal ?

@jondy
Copy link
Contributor

jondy commented Mar 22, 2023

Sorry, it's a bug. I'll fix it in 8.0.8.

Anyway, registration is OK?

@shexty1
Copy link

shexty1 commented Mar 22, 2023

Sorry, it's a bug. I'll fix it in 8.0.8.

Anyway, registration is OK?

i'm getting request license token 3 failed now instead of 16

@AI-M-BOT
Copy link

AI-M-BOT commented Mar 23, 2023

@jondy

E:\license>pip install pyarmor -U
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Requirement already satisfied: pyarmor in d:\python310\lib\site-packages (7.7.4)
Collecting pyarmor
  Downloading pyarmor-8.0.7-py2.py3-none-any.whl (212 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 212.1/212.1 kB 1.9 MB/s eta 0:00:00
Requirement already satisfied: pyarmor.cli.core~=1.0 in d:\python310\lib\site-packages (from pyarmor) (1.0.1)
Installing collected packages: pyarmor
  Attempting uninstall: pyarmor
    Found existing installation: pyarmor 7.7.4
    Uninstalling pyarmor-7.7.4:
      Successfully uninstalled pyarmor-7.7.4
Successfully installed pyarmor-8.0.7

E:\license>pip install pyarmor.cli.core -U
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Requirement already satisfied: pyarmor.cli.core in d:\python310\lib\site-packages (1.0.1)
Collecting pyarmor.cli.core
  Downloading pyarmor.cli.core-1.0.2-cp310-none-win_amd64.whl (590 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 590.3/590.3 kB 9.4 MB/s eta 0:00:00
Installing collected packages: pyarmor.cli.core
  Attempting uninstall: pyarmor.cli.core
    Found existing installation: pyarmor.cli.core 1.0.1
    Uninstalling pyarmor.cli.core-1.0.1:
      Successfully uninstalled pyarmor.cli.core-1.0.1
Successfully installed pyarmor.cli.core-1.0.2
E:\license>pyarmor reg -u pyarmor-regcode-to-pro.txt
INFO     Python 3.10.10
INFO     Pyarmor 8.0.6 (trial), 000000, non-profits
INFO     prepare "pyarmor-regcode-to-pro.txt"
INFO     query key file from server

You are about to upgrade old Pyarmor license to Pyarmor Pro
License for Pyarmor 8.0+

The original license no: pyarmor-vax-00xxxxx

The upgraded license information will be

License Type    : pyarmor-
License Owner   : HIDING HERE
Bind Product    : non-profits

This license is about to be ussd for non-profits

Are you sure to continue? (yes/no) yes
INFO     process upgrading file "pyarmor-regcode-to-pro.txt"
INFO     old license no: pyarmor-vax-00xxxx
INFO     send upgrade request to server
CRITICAL unknown error, please check pyarmor.error.log
ERROR    HTTP Error 400: Bad Request
7568 MainProcess 2023-03-22 21:02:26,028
Traceback (most recent call last):
  File "D:\Python310\lib\site-packages\pyarmor\cli\__main__.py", line 559, in main
    main_entry(sys.argv[1:])
  File "D:\Python310\lib\site-packages\pyarmor\cli\__main__.py", line 547, in main_entry
    args.func(ctx, args)
  File "D:\Python310\lib\site-packages\pyarmor\cli\__main__.py", line 184, in cmd_reg
    getattr(regsvr, meth)(regfile, args.product)
  File "D:\Python310\lib\site-packages\pyarmor\cli\register.py", line 282, in upgrade
    res = self._send_request(url)
  File "D:\Python310\lib\site-packages\pyarmor\cli\register.py", line 216, in _send_request
    return urlopen(url, None, timeout, context=context)
  File "D:\Python310\lib\urllib\request.py", line 216, in urlopen
    return opener.open(url, data, timeout)
  File "D:\Python310\lib\urllib\request.py", line 525, in open
    response = meth(req, response)
  File "D:\Python310\lib\urllib\request.py", line 634, in http_response
    response = self.parent.error(
  File "D:\Python310\lib\urllib\request.py", line 563, in error
    return self._call_chain(*args)
  File "D:\Python310\lib\urllib\request.py", line 496, in _call_chain
    result = func(*args)
  File "D:\Python310\lib\urllib\request.py", line 643, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 400: Bad Request

Used to be #982

@AI-M-BOT
Copy link

AI-M-BOT commented Mar 23, 2023

@jondy
pyarmor-vax-002450
If I just copy and paste the url for upgrading, it will show me this

This code has been used

However:

$ pyarmor -v
Pyarmor 8.0.6 (trial), 000000, non-profits

License Type    : pyarmor-trial
License No.     : pyarmor-vax-000000
License To      :

BCC Mode        : No
RFT Mode        : No

Notes
* Internet connection is required to verify Pyarmor license
* Trial license can't obfuscate big script and mix str

I am using Windows10 x64 with Python 3.10.10 installed, and this is THE ONLY machine i used to register and upgrade pyarmor, also I haven't reinstalled or upgraded the operating system since last year

@jondy
Copy link
Contributor

jondy commented Mar 23, 2023

@AI-M-BOT
I disable this limitation, please try it again.

@AI-M-BOT
Copy link

AI-M-BOT commented Mar 23, 2023

@jondy
Browser shows:

this code is invalid

Also errors:

CRITICAL unknown error, please check pyarmor.error.log
ERROR    HTTP Error 400: Bad Request
11988 MainProcess 2023-03-22 22:47:51,592
Traceback (most recent call last):
  File "D:\Python310\lib\site-packages\pyarmor\cli\__main__.py", line 559, in main
    main_entry(sys.argv[1:])
  File "D:\Python310\lib\site-packages\pyarmor\cli\__main__.py", line 547, in main_entry
    args.func(ctx, args)
  File "D:\Python310\lib\site-packages\pyarmor\cli\__main__.py", line 184, in cmd_reg
    getattr(regsvr, meth)(regfile, args.product)
  File "D:\Python310\lib\site-packages\pyarmor\cli\register.py", line 283, in upgrade
    res = self._send_request(url)
  File "D:\Python310\lib\site-packages\pyarmor\cli\register.py", line 217, in _send_request
    return urlopen(url, None, timeout, context=context)
  File "D:\Python310\lib\urllib\request.py", line 216, in urlopen
    return opener.open(url, data, timeout)
  File "D:\Python310\lib\urllib\request.py", line 525, in open
    response = meth(req, response)
  File "D:\Python310\lib\urllib\request.py", line 634, in http_response
    response = self.parent.error(
  File "D:\Python310\lib\urllib\request.py", line 563, in error
    return self._call_chain(*args)
  File "D:\Python310\lib\urllib\request.py", line 496, in _call_chain
    result = func(*args)
  File "D:\Python310\lib\urllib\request.py", line 643, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 400: Bad Request

Also, with &prepare=1 at the end of url, browser shows me:
image

@hellcodes
Copy link
Author

hellcodes commented Mar 23, 2023

After upgrading Pyarmor, the registration works. Thanks!
Since my issue is resolved, I close this issue.

If there are more things to discuss, reopen this please.

@xunonxyz
Copy link

xunonxyz commented Apr 3, 2023

python 3.9
windows10 x64
刚买的专家版
request license token faild (1)
切换Pyarmor多个版本仍然同样问题

@dashingsoft dashingsoft locked as resolved and limited conversation to collaborators Apr 3, 2023
@jondy
Copy link
Contributor

jondy commented Apr 3, 2023

@xunonxyz 首先确认使用的是 8.0.26 版本,然后使用 .zip 文件进行尝试,我看一下服务器日志的错误信息。

不要在使用 .txt 文件,已经使用超过十次了

@jondy
Copy link
Contributor

jondy commented Apr 3, 2023

@xunonxyz

太早的注册码(不是以 pyarmor-vax- 开头的)是不支持升级的,请参考许可证文档中关于升级的说明

不能升级的订单如果是微信和支付宝支付的 email to [email protected] 退款,如果是 MyCommerce 上购买的,

Email to [email protected] with order information and ask for refund.
Or click FindMyOrder page to submit refund request

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

8 participants