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.py: error: unrecognized arguments: exclude #8

Closed
KomarovAlea opened this issue Feb 28, 2018 · 2 comments
Closed

pyarmor.py: error: unrecognized arguments: exclude #8

KomarovAlea opened this issue Feb 28, 2018 · 2 comments

Comments

@KomarovAlea
Copy link

KomarovAlea commented Feb 28, 2018

I give this tutorial https://github.com/dashingsoft/pyarmor/blob/master/src/user-guide.md
part: "obfuscate odoo module"
make git clone v3.6.1
last commit a736bdc from Feb 27, 2018
command:

    ./pyarmor config --output=dist/web-login --disable-restrict-mode=1 \
                     --manifest "global-include *.py, exclude __manifest__.py"

and get this error:

pyarmor.py: error: unrecognized arguments: exclude __manifest__.py

I also try:
--manifest "global-include *.py; exclude __manifest__.py"
--manifest "global-include *.py exclude *__manifest__.py"
--manifest "global-include *.py, global-exclude __manifest__.py"

(As you can see "exclude" here https://pypi.python.org/pypi/pyarmor/1.7.1)
--manifest "global-include *.py" --exclude "__manifest__.py"
--manifest "global-include *.py" -exclude="__manifest__.py"
--manifest "global-include *.py" -exclude=__manifest__.py

@jondy
Copy link
Contributor

jondy commented Mar 1, 2018

I got it, the reason is that quote mark lost when pass arguments to shell script. I'll fix it soon.

jondy added a commit that referenced this issue Mar 1, 2018
@jondy
Copy link
Contributor

jondy commented Mar 1, 2018

Quick workaround before v3.6.2:

Edit shell script "pyarmor" in the project path, replace $* with "$@". The final script looks like this:

/home/jacon/anaconda2/envs/pyarmor3.6/bin/python /opt/pyarmor/v3.6.1/pyarmor/src/pyarmor.py "$@"

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

No branches or pull requests

2 participants