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

PyArmor license upgrade error #982

Closed
AI-M-BOT opened this issue Mar 16, 2023 · 2 comments
Closed

PyArmor license upgrade error #982

AI-M-BOT opened this issue Mar 16, 2023 · 2 comments
Assignees
Labels

Comments

@AI-M-BOT
Copy link

AI-M-BOT commented Mar 16, 2023

Following guide here

E:\注册>pyarmor reg -u pyarmor-regcode-to-pro.txt
INFO     Python 3.10.10
INFO     Pyarmor 8.0 (trial), 000000, non-profits
INFO     prepare "pyarmor-regcode-to-pro.txt"
INFO     query key file from server
{'lictype': '', 'regname': 'HIDING HERE', 'product': 'non-profits', 'upgrade': True}
CRITICAL unknown error, please check pyarmor.error.log
ERROR    product name has been set to "non-profits"
6904 MainProcess 2023-03-16 17:42:42,298
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 178, in cmd_reg
    msg = regsvr.prepare(regfile, args.product, upgrade=args.upgrade)
  File "D:\Python310\lib\site-packages\pyarmor\cli\register.py", line 240, in prepare
    raise RuntimeError(
RuntimeError: product name has been set to "non-profits"

If modify and skip that part by force

E:\注册>pyarmor reg -u pyarmor-regcode-to-pro.txt
INFO     Python 3.10.10
INFO     Pyarmor 8.0 (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-00xxxx

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
INFO     update license token
CRITICAL unknown error, please check pyarmor.error.log
ERROR    request license token faild (1)
13896 MainProcess 2023-03-16 17:51:08,171
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 290, in upgrade
    self.update_token()
  File "D:\Python310\lib\site-packages\pyarmor\cli\register.py", line 110, in update_token
    Pytransform3._update_token(self.ctx)
  File "D:\Python310\lib\site-packages\pyarmor\cli\core\__init__.py", line 72, in _update_token
    m = Pytransform3.init(ctx)
  File "D:\Python310\lib\site-packages\pyarmor\cli\core\__init__.py", line 42, in init
    m.init_ctx(ctx)
RuntimeError: request license token faild (1)
@JohnChedder
Copy link

Duplicate of #977 :)

@AI-M-BOT
Copy link
Author

Duplicate of #977 :)

My apologizes, didn't notice that

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

No branches or pull requests

3 participants