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

Load _pytransfrom failed in linux x86_64 by subprocess.Popen #2

Closed
jondy opened this issue Oct 5, 2017 · 1 comment
Closed

Load _pytransfrom failed in linux x86_64 by subprocess.Popen #2

jondy opened this issue Oct 5, 2017 · 1 comment

Comments

@jondy
Copy link
Contributor

jondy commented Oct 5, 2017

I am two projects that will be using the pyArmor soon. I have run tests in the past without problems. I am now building my project on an AWS server. When the app starts it reports "Cound not load library _pytransform." I assume the "Cound" should be "Could"

Traceback:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "pytransform.py", line 183, in <module>
    _pytransform = _load_library()
  File "pytransform.py", line 175, in _load_library
    raise PytransformError('Cound not load library _pytransform.')
pytransform.PytransformError: Cound not load library _pytransform.

NOTES:
pyarmor 3.1.3

AWS uname -a: Linux ip-172-31-36-76 4.4.0-1035-aws #44-Ubuntu SMP Tue Sep 12 17:27:47 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

The App:

------------------------------------------------------------------------
#! /usr/bin/env python
import time
import subprocess
import pyimcore

Arg = ['import pytransform\npytransform.exec_file("Main.pye")']
NewApplication = subprocess.Popen(['python','-c']+Arg)

try:
        while(True):
                time.sleep(1.0)
finally:
        NewApplication.terminate()
        StartTime = time.time()
        while (NewApplication.poll() is None):
                if (time.time()-StartTime>10):
                        break
-------------------------------------------------------------------------
@jondy
Copy link
Contributor Author

jondy commented Oct 5, 2017

Fixed in version 3.1.4.

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

1 participant