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] Can't upgrade my old pyarmor license with the upgrade function even tho I follow all instructions and have tried on different systems #988

Closed
JFuqX opened this issue Mar 18, 2023 · 1 comment
Assignees
Labels

Comments

@JFuqX
Copy link

JFuqX commented Mar 18, 2023

I get the following errors:

First I use this to get to the new PyarmorBasic:

pyarmor reg -u pyarmor-regcode-xxxx.txt

MAC:

INFO     process upgrading file "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    No module named 'pyarmor.cli.core'
5100 MainProcess 2023-03-18 18:48:58,158
Traceback (most recent call last):
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\pyarmor\cli\__main__.py", line 559, in main
    main_entry(sys.argv[1:])
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\pyarmor\cli\__main__.py", line 547, in main_entry
    args.func(ctx, args)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\pyarmor\cli\__main__.py", line 184, in cmd_reg
    getattr(regsvr, meth)(regfile, args.product)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\pyarmor\cli\register.py", line 290, in upgrade
    self.update_token()
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\pyarmor\cli\register.py", line 110, in update_token
    Pytransform3._update_token(self.ctx)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\pyarmor\cli\core\__init__.py", line 72, in _update_token
    m = Pytransform3.init(ctx)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\pyarmor\cli\core\__init__.py", line 42, in init
    m.init_ctx(ctx)
RuntimeError: request license token faild (16)

WINDOWS:

INFO     process upgrading file "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)
4332 MainProcess 2023-03-17 21:21:06,485
Traceback (most recent call last):
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\pyarmor\cli\__main__.py", line 559, in main
    main_entry(sys.argv[1:])
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\pyarmor\cli\__main__.py", line 547, in main_entry
    args.func(ctx, args)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\pyarmor\cli\__main__.py", line 178, in cmd_reg
    msg = regsvr.prepare(regfile, args.product, upgrade=args.upgrade)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\pyarmor\cli\register.py", line 241, in prepare
    raise RuntimeError(
RuntimeError: product name has been set to "non-profits"

Then I wanted to upgrade with:

pyarmor reg -u -p XXX pyarmor-regcode-to-pro.txt

INFO     Python 3.9.8
INFO     Pyarmor 8.0 (trial), 000000, non-profits
INFO     prepare "pyarmor-regcode-to-pro.txt"
INFO     query key file from server
CRITICAL unknown error, please check pyarmor.error.log
ERROR    product name has been set to "non-profits"

This is the pyarmor.error.log

12217 MainProcess 2023-03-18 18:38:43,268
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyarmor/cli/__main__.py", line 559, in main
    main_entry(sys.argv[1:])
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyarmor/cli/__main__.py", line 547, in main_entry
    args.func(ctx, args)
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyarmor/cli/__main__.py", line 178, in cmd_reg
    msg = regsvr.prepare(regfile, args.product, upgrade=args.upgrade)
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyarmor/cli/register.py", line 241, in prepare
    raise RuntimeError(
RuntimeError: product name has been set to "non-profits"
@JFuqX JFuqX added the bug label Mar 18, 2023
@jondy
Copy link
Contributor

jondy commented Mar 21, 2023

Refer to pin issue #983

@jondy jondy closed this as completed Mar 21, 2023
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

2 participants