Falldog / pyconcrete

Protect your python script, encrypt it as .pye and decrypt when import it
Apache License 2.0
694 stars 149 forks source link

--egg option will be removed in pip-10.0.0b2 #32

Closed santiavenda2 closed 2 years ago

santiavenda2 commented 6 years ago

when you install pyconcrete using pip==9.0.3: $ pip install pyconcrete --egg --install-option="--passphrase=<your passphrase>"

this warning is showed on the console

DEPRECATION: --egg has been deprecated and will be removed in the future. This flag is mutually exclusive with large parts of pip, and actually using it invalidates pip's ability to manage the installation process.

I can't install pyconcrete using pip-10.0.0b2. I get this error:

pip 10.0.0b2 from /var/lib/jenkins/workspace/neo-assets-api-encrypted-ubuntu1604/.venv/local/lib/python2.7/site-packages/pip (python 2.7)

Usage:   
  pip install [options] <requirement specifier> [package-index-options] ...
  pip install [options] -r <requirements file> [package-index-options] ...
  pip install [options] [-e] <vcs project url> ...
  pip install [options] [-e] <local project path> ...
  pip install [options] <archive url/path> ...

no such option: --egg
erm3nda commented 6 years ago

Same problem here with pip 10.0.1.

Actually you can install it by downloading source and python setup.py install.

deepsh4h commented 5 years ago

Getting this error while trying to install it by downloading source

src/pyconcrete_ext/openaes/src/oaes_lib.c:475:3: note: include the header
      <stdio.h> or explicitly provide a declaration for 'sprintf'
src/pyconcrete_ext/openaes/src/oaes_lib.c:515:43: warning: implicit declaration
      of function 'getpid' is invalid in C99 [-Wimplicit-function-declaration]
                        (uint32_t) ( _test + timer.millitm ) + getpid();
                                                               ^
src/pyconcrete_ext/openaes/src/oaes_lib.c:515:43: warning: this function
      declaration is not a prototype [-Wstrict-prototypes]
src/pyconcrete_ext/openaes/src/oaes_lib.c:784:15: warning: comparison of
      integers of different signs: 'size_t' (aka 'unsigned long') and 'int'
      [-Wsign-compare]
        if( data_len != _key_length + OAES_BLOCK_SIZE )
            ~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/pyconcrete_ext/openaes/src/oaes_lib.c:30:19: warning: unused variable '_NR'
      [-Wunused-const-variable]
static const char _NR[] = {
                  ^
src/pyconcrete_ext/openaes/src/oaes_lib.c:291:17: warning: unused function
      'oaes_word_rot_right' [-Wunused-function]
static OAES_RET oaes_word_rot_right( uint8_t word[OAES_COL_LEN] )
                ^
135 warnings generated.
gcc -arch x86_64 build/temp.macosx-10.7-x86_64-3.6/src/pyconcrete_exe/pyconcrete_exe.o build/temp.macosx-10.7-x86_64-3.6/src/pyconcrete_ext/pyconcrete.o build/temp.macosx-10.7-x86_64-3.6/src/pyconcrete_ext/openaes/src/oaes_base64.o build/temp.macosx-10.7-x86_64-3.6/src/pyconcrete_ext/openaes/src/oaes_lib.o -lpython3.6m -o build/scripts-3.6/pyconcrete
ld: library not found for -lpython3.6m
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'gcc' failed with exit status 1

Command : python3 setup.py install

lukik commented 5 years ago

Getting this error while trying to install it by downloading source

src/pyconcrete_ext/openaes/src/oaes_lib.c:475:3: note: include the header
      <stdio.h> or explicitly provide a declaration for 'sprintf'
src/pyconcrete_ext/openaes/src/oaes_lib.c:515:43: warning: implicit declaration
      of function 'getpid' is invalid in C99 [-Wimplicit-function-declaration]
                        (uint32_t) ( _test + timer.millitm ) + getpid();
                                                               ^
src/pyconcrete_ext/openaes/src/oaes_lib.c:515:43: warning: this function
      declaration is not a prototype [-Wstrict-prototypes]
src/pyconcrete_ext/openaes/src/oaes_lib.c:784:15: warning: comparison of
      integers of different signs: 'size_t' (aka 'unsigned long') and 'int'
      [-Wsign-compare]
        if( data_len != _key_length + OAES_BLOCK_SIZE )
            ~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/pyconcrete_ext/openaes/src/oaes_lib.c:30:19: warning: unused variable '_NR'
      [-Wunused-const-variable]
static const char _NR[] = {
                  ^
src/pyconcrete_ext/openaes/src/oaes_lib.c:291:17: warning: unused function
      'oaes_word_rot_right' [-Wunused-function]
static OAES_RET oaes_word_rot_right( uint8_t word[OAES_COL_LEN] )
                ^
135 warnings generated.
gcc -arch x86_64 build/temp.macosx-10.7-x86_64-3.6/src/pyconcrete_exe/pyconcrete_exe.o build/temp.macosx-10.7-x86_64-3.6/src/pyconcrete_ext/pyconcrete.o build/temp.macosx-10.7-x86_64-3.6/src/pyconcrete_ext/openaes/src/oaes_base64.o build/temp.macosx-10.7-x86_64-3.6/src/pyconcrete_ext/openaes/src/oaes_lib.o -lpython3.6m -o build/scripts-3.6/pyconcrete
ld: library not found for -lpython3.6m
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'gcc' failed with exit status 1

Command : python3 setup.py install

Getting same error. Did you ever succeed installing?

Shooskay commented 4 years ago

I try next command

# passphrase=my_passphrase111
# yes $passphrase |pip install pyconcrete
Collecting pyconcrete
Installing collected packages: pyconcrete
Successfully installed pyconcrete-0.12.1
Shooskay commented 4 years ago

write to Dockerfile

RUN sh -c "yes my_passphrase111 |pip install pyconcrete"