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

Standalone tests for botocore & boto3 + fix to Urllib3Using.py #339

Merged
merged 32 commits into from Jun 3, 2019

Conversation

@tommyli3318
Copy link
Member

commented Apr 7, 2019

What does this PR do?

Created standalone test Boto3Using.py, which mocks calls to AWS services to test both boto3 and botocore.
Also changed Urllib3Using.py to address Python2 and Python3 differently using sys to check for version, fix to #373

Why was it initiated? Any relevant Issues?

PyPI top 50

PR Checklist

  • Correct base branch selected? develop for new features and bug fixes too. If it's
    part of a hotfix, it will be moved to master during it.
  • All tests still pass. Check the developer manual about Running the Tests. There
    are Travis tests that cover the most important things however, and you are
    welcome to rely on those, but they might not cover enough.
  • Ideally new features or fixed regressions ought to be covered via new tests.
  • Ideally new or changed features have documentation updates.
tommyli3318 added 16 commits Mar 28, 2019

@tommyli3318 tommyli3318 changed the title Tests for botocore & boto3 [Work in Progress] Tests for botocore & boto3 Apr 7, 2019

@tommyli3318

This comment has been minimized.

Copy link
Member Author

commented Apr 7, 2019

Testing the full functionalities of boto requires AWS (Amazon Web Services) credentials, which are sensitive information. I don't believe they have public keys for testing purposes. What should I do in this case?

tests/standalone/BotocoreUsing.py Outdated Show resolved Hide resolved
tommyli3318 added 4 commits Apr 16, 2019

@tommyli3318 tommyli3318 changed the title [Work in Progress] Tests for botocore & boto3 Standalone tests for botocore & boto3 Apr 17, 2019

@tommyli3318

This comment has been minimized.

Copy link
Member Author

commented Apr 17, 2019

@xennygrimmato
I've updated it, please review.
Since boto3 is built on botocore, do we need to test both of them or can we just skip botocore?

@tommyli3318 tommyli3318 changed the title Standalone tests for botocore & boto3 [needs review] Standalone tests for botocore & boto3 Apr 24, 2019

@tommyli3318

This comment has been minimized.

Copy link
Member Author

commented Apr 25, 2019

@xennygrimmato
Hello! Don't mean to bug you but it's been a while since I've updated this PR, can you please review it and give me suggestions? Also, please refer to my previous comment for my question. Thank you very much!

@tommyli3318 tommyli3318 changed the title [needs review] Standalone tests for botocore & boto3 [needs review] Standalone tests for botocore & boto3 + fix to Urllib3Using.py Apr 29, 2019

@tommyli3318 tommyli3318 changed the title [needs review] Standalone tests for botocore & boto3 + fix to Urllib3Using.py Standalone tests for botocore & boto3 + fix to Urllib3Using.py Apr 29, 2019

@tommyli3318

This comment has been minimized.

Copy link
Member Author

commented Apr 29, 2019

@kayhayen updated Urllib3Using.py to handle Python2 differently as a fix to #373

@jayvdb

This comment has been minimized.

Copy link

commented Apr 30, 2019

I tried to build this on openSUSE at https://build.opensuse.org/package/show/home:jayvdb:py-bridge/python-Nuitka-patch , initially getting 'Skipped, Boto3Using.py (moto not installed for this Python version, but test needs it).'

When moto is added, it takes forever before the build server kills it.
It looks like the real boto3 is failing with botocore.exceptions.NoCredentialsError: Unable to locate credentials , maybe because certifi was not added, but that should be a quick failure in Nuitka also.

(again we see future, which reallllly needs to be near top of the list of pypi packages to be tested thoroughly, as almost everything uses either six or future, the latter for anything serious use of python 2)

[  840s] Run '/usr/bin/python2 ./tests/standalone/run_all.py search' in '/home/abuild/rpmbuild/BUILD/Nuitka-0.6.3.1556276620.c8806b36'.
[  840s] Using concrete python 2.7.16 on x86_64
[  844s] Consider output of recursively compiled program: Boto3Using.py
[  844s] Comparing output of 'Boto3Using.py' using '/usr/bin/python2' with flags silent, expect_success, standalone, remove_output ...
[ 4514s] [ 4479.243624] Out of memory: Kill process 14843 (cc1) score 614 or sacrifice child
[ 4514s] [ 4479.246287] Killed process 14843 (cc1) total-vm:3167576kB, anon-rss:2547528kB, file-rss:0kB, shmem-rss:0kB
[ 5012s] --- /usr/bin/python2 (stderr)
[ 5012s] +++ nuitka (stderr)
[ 5012s] 
[ 5012s] @@ -1,39 +1,42 @@
[ 5012s] 
[ 5012s] -Traceback (most recent call last):
[ 5012s] -  File "/home/abuild/rpmbuild/BUILD/Nuitka-0.6.3.1556276620.c8806b36/tests/standalone/Boto3Using.py", line 100, in <module>
[ 5012s] -    testListS3Buckets()
[ 5012s] -  File "/usr/lib/python2.7/site-packages/moto/core/models.py", line 74, in wrapper
[ 5012s] -    result = func(*args, **kwargs)
[ 5012s] -  File "/home/abuild/rpmbuild/BUILD/Nuitka-0.6.3.1556276620.c8806b36/tests/standalone/Boto3Using.py", line 74, in testListS3Buckets
[ 5012s] -    __motoSetup()
[ 5012s] -  File "/usr/lib/python2.7/site-packages/moto/core/models.py", line 74, in wrapper
[ 5012s] -    result = func(*args, **kwargs)
[ 5012s] -  File "/home/abuild/rpmbuild/BUILD/Nuitka-0.6.3.1556276620.c8806b36/tests/standalone/Boto3Using.py", line 58, in __motoSetup
[ 5012s] -    s3.create_bucket(Bucket=bucket)
[ 5012s] -  File "/usr/lib/python2.7/site-packages/botocore/client.py", line 357, in _api_call
[ 5012s] -    return self._make_api_call(operation_name, kwargs)
[ 5012s] -  File "/usr/lib/python2.7/site-packages/botocore/client.py", line 648, in _make_api_call
[ 5012s] -    operation_model, request_dict, request_context)
[ 5012s] -  File "/usr/lib/python2.7/site-packages/botocore/client.py", line 667, in _make_request
[ 5012s] -    return self._endpoint.make_request(operation_model, request_dict)
[ 5012s] -  File "/usr/lib/python2.7/site-packages/botocore/endpoint.py", line 102, in make_request
[ 5012s] -    return self._send_request(request_dict, operation_model)
[ 5012s] -  File "/usr/lib/python2.7/site-packages/botocore/endpoint.py", line 132, in _send_request
[ 5012s] -    request = self.create_request(request_dict, operation_model)
[ 5012s] -  File "/usr/lib/python2.7/site-packages/botocore/endpoint.py", line 116, in create_request
[ 5012s] -    operation_name=operation_model.name)
[ 5012s] -  File "/usr/lib/python2.7/site-packages/botocore/hooks.py", line 356, in emit
[ 5012s] -    return self._emitter.emit(aliased_event_name, **kwargs)
[ 5012s] -  File "/usr/lib/python2.7/site-packages/botocore/hooks.py", line 228, in emit
[ 5012s] -    return self._emit(event_name, kwargs)
[ 5012s] -  File "/usr/lib/python2.7/site-packages/botocore/hooks.py", line 211, in _emit
[ 5012s] -    response = handler(**kwargs)
[ 5012s] -  File "/usr/lib/python2.7/site-packages/botocore/signers.py", line 90, in handler
[ 5012s] -    return self.sign(operation_name, request)
[ 5013s] -  File "/usr/lib/python2.7/site-packages/botocore/signers.py", line 157, in sign
[ 5013s] -    auth.add_auth(request)
[ 5013s] -  File "/usr/lib/python2.7/site-packages/botocore/auth.py", line 425, in add_auth
[ 5013s] -    super(S3SigV4Auth, self).add_auth(request)
[ 5013s] -  File "/usr/lib/python2.7/site-packages/botocore/auth.py", line 357, in add_auth
[ 5013s] -    raise NoCredentialsError
[ 5013s] -botocore.exceptions.NoCredentialsError: Unable to locate credentials
[ 5013s] +Nuitka:WARNING:Use '--plugin-enable=enum-compat' for: Enum workarounds for compiled code.
[ 5013s] +Nuitka:WARNING:Use '--plugin-enable=numpy' for: numpy support.
[ 5013s] +Nuitka:WARNING:Unresolved '__import__' call at '/usr/lib/python2.7/site-packages/boto/utils.py:495' may require use of '--include-plugin-directory' or '--include-plugin-files'.
[ 5013s] +Nuitka:WARNING:Unresolved '__import__' call at '/usr/lib/python2.7/site-packages/boto3/utils.py:52' may require use of '--include-plugin-directory' or '--include-plugin-files'.
[ 5013s] +Nuitka:WARNING:Unresolved '__import__' call at '/usr/lib/python2.7/site-packages/future/standard_library/__init__.py:453' may require use of '--include-plugin-directory' or '--include-plugin-files'.
[ 5013s] +Nuitka:WARNING:Unresolved '__import__' call at '/usr/lib/python2.7/site-packages/future/standard_library/__init__.py:459' may require use of '--include-plugin-directory' or '--include-plugin-files'.
[ 5013s] +Nuitka:WARNING:Unresolved '__import__' call at '/usr/lib/python2.7/site-packages/future/standard_library/__init__.py:677' may require use of '--include-plugin-directory' or '--include-plugin-files'.
[ 5013s] +Nuitka:WARNING:Unresolved '__import__' call at '/usr/lib/python2.7/site-packages/future/standard_library/__init__.py:724' may require use of '--include-plugin-directory' or '--include-plugin-files'.
[ 5013s] +Nuitka:WARNING:Unresolved '__import__' call at '/usr/lib/python2.7/site-packages/future/standard_library/__init__.py:781' may require use of '--include-plugin-directory' or '--include-plugin-files'.
[ 5013s] +Nuitka:WARNING:Unresolved '__import__' call at '/usr/lib/python2.7/site-packages/future/standard_library/__init__.py:813' may require use of '--include-plugin-directory' or '--include-plugin-files'.
[ 5013s] +Nuitka:WARNING:Unresolved '__import__' call at '/usr/lib/python2.7/site-packages/jinja2/loaders.py:472' may require use of '--include-plugin-directory' or '--include-plugin-files'.
[ 5013s] +Nuitka:WARNING:Unresolved '__import__' call at '/usr/lib/python2.7/site-packages/jinja2/utils.py:142' may require use of '--include-plugin-directory' or '--include-plugin-files'.
[ 5013s] +Nuitka:WARNING:Unresolved '__import__' call at '/usr/lib/python2.7/site-packages/jinja2/utils.py:143' may require use of '--include-plugin-directory' or '--include-plugin-files'.
[ 5013s] +Nuitka:WARNING:Unresolved '__import__' call at '/usr/lib/python2.7/site-packages/jsonpickle/backend.py:101' may require use of '--include-plugin-directory' or '--include-plugin-files'.
[ 5013s] +Nuitka:WARNING:Unresolved '__import__' call at '/usr/lib/python2.7/site-packages/jsonpickle/unpickler.py:615' may require use of '--include-plugin-directory' or '--include-plugin-files'.
[ 5013s] +Nuitka:WARNING:Unresolved '__import__' call at '/usr/lib/python2.7/site-packages/jsonpickle/unpickler.py:682' may require use of '--include-plugin-directory' or '--include-plugin-files'.
[ 5013s] +Nuitka:WARNING:Unresolved '__import__' call at '/usr/lib/python2.7/site-packages/jsonpickle/util.py:317' may require use of '--include-plugin-directory' or '--include-plugin-files'.
[ 5013s] +Nuitka:WARNING:Unresolved '__import__' call at '/usr/lib/python2.7/site-packages/mock/mock.py:1199' may require use of '--include-plugin-directory' or '--include-plugin-files'.
[ 5013s] +Nuitka:WARNING:Unresolved '__import__' call at '/usr/lib/python2.7/site-packages/mock/mock.py:1206' may require use of '--include-plugin-directory' or '--include-plugin-files'.
[ 5013s] +Nuitka:WARNING:Unresolved '__import__' call at '/usr/lib/python2.7/site-packages/moto/core/models.py:473' may require use of '--include-plugin-directory' or '--include-plugin-files'.
[ 5013s] +Nuitka:WARNING:Unresolved '__import__' call at '/usr/lib64/python2.7/site-packages/numpy/core/function_base.py:453' may require use of '--include-plugin-directory' or '--include-plugin-files'.
[ 5013s] +Nuitka:WARNING:Unresolved '__import__' call at '/usr/lib64/python2.7/site-packages/numpy/lib/utils.py:366' may require use of '--include-plugin-directory' or '--include-plugin-files'.
[ 5013s] +Nuitka:WARNING:Unresolved '__import__' call at '/usr/lib64/python2.7/site-packages/numpy/lib/utils.py:865' may require use of '--include-plugin-directory' or '--include-plugin-files'.
[ 5013s] +Nuitka:WARNING:Unresolved '__import__' call at '/usr/lib64/python2.7/site-packages/numpy/lib/utils.py:923' may require use of '--include-plugin-directory' or '--include-plugin-files'.
[ 5013s] +Nuitka:WARNING:Unresolved '__import__' call at '/usr/lib/python2.7/site-packages/pbr/util.py:174' may require use of '--include-plugin-directory' or '--include-plugin-files'.
[ 5013s] +Nuitka:WARNING:Unresolved '__import__' call at '/usr/lib/python2.7/site-packages/requests/packages.py:7' may require use of '--include-plugin-directory' or '--include-plugin-files'.
[ 5013s] +Nuitka:WARNING:Unresolved '__import__' call at '/usr/lib/python2.7/site-packages/werkzeug/__init__.py:116' may require use of '--include-plugin-directory' or '--include-plugin-files'.
[ 5013s] +Nuitka:WARNING:Unresolved '__import__' call at '/usr/lib/python2.7/site-packages/werkzeug/__init__.py:121' may require use of '--include-plugin-directory' or '--include-plugin-files'.
[ 5013s] +Nuitka:WARNING:Unresolved '__import__' call at '/usr/lib/python2.7/site-packages/werkzeug/utils.py:418' may require use of '--include-plugin-directory' or '--include-plugin-files'.
[ 5013s] +Nuitka:WARNING:Unresolved '__import__' call at '/usr/lib/python2.7/site-packages/werkzeug/utils.py:427' may require use of '--include-plugin-directory' or '--include-plugin-files'.
[ 5013s] +Nuitka:WARNING:Unresolved '__import__' call at '/usr/lib64/python2.7/site-packages/wrapt/importer.py:41' may require use of '--include-plugin-directory' or '--include-plugin-files'.
[ 5013s] +Nuitka:WARNING:Unresolved '__import__' call at '/usr/lib64/python2.7/site-packages/wrapt/importer.py:105' may require use of '--include-plugin-directory' or '--include-plugin-files'.
[ 5013s] +Nuitka:WARNING:Unresolved '__import__' call at '/usr/lib64/python2.7/site-packages/wrapt/importer.py:216' may require use of '--include-plugin-directory' or '--include-plugin-files'.
[ 5013s] +Nuitka:WARNING:Unresolved '__import__' call at '/usr/lib64/python2.7/site-packages/wrapt/wrappers.py:731' may require use of '--include-plugin-directory' or '--include-plugin-files'.
[ 5013s] +Nuitka:INFO:Missing optimization, used fallback: ('Add', <class 'nuitka.nodes.shapes.BuiltinTypeShapes.ShapeTypeList'>, <class 'nuitka.nodes.shapes.BuiltinTypeShapes.ShapeTypeStr'>)
[ 5013s] +Nuitka:INFO:Missing optimization, used fallback: ('Add', <class 'nuitka.nodes.shapes.BuiltinTypeShapes.ShapeTypeUnicode'>, <class 'nuitka.nodes.shapes.BuiltinTypeShapes.ShapeTypeStrDerived'>)
[ 5013s] +{standard input}: Assembler messages:
[ 5013s] +{standard input}:157774: Warning: end of file in string; '"' inserted
[ 5013s] +gcc: fatal error: Killed signal terminated program cc1
[ 5013s] +compilation terminated.
[ 5013s] +scons: *** [Boto3Using.build/__constants.o] Error 1
[ 5013s]  
[ 5013s] Error, outputs differed.
[ 5013s] Error exit! 1
[ 5016s] error: Bad exit status from /var/tmp/rpm-tmp.JIQ2Zp (%check)
[ 5016s] 
[ 5016s] 
[ 5016s] RPM build errors:
[ 5016s]     Macro expanded in comment on line 92: %{python_module pmw}
[ 5016s] 
[ 5016s]     Macro expanded in comment on line 92: %{python_module pmw}
[ 5016s] 
[ 5016s]     Macro expanded in comment on line 155: %{_mandir}/man1/*
[ 5016s] 
[ 5016s]     Bad exit status from /var/tmp/rpm-tmp.JIQ2Zp (%check)
[ 5017s] 
[ 5017s] cloud127 failed "build python-Nuitka.spec" at Tue Apr 30 00:10:37 UTC 2019.
@kayhayen

This comment has been minimized.

Copy link
Member

commented on tests/standalone/Urllib3Using.py in 2afe41f May 1, 2019

The cheapest test form to test Python2 in terms of amount of code str is bytes, but checking sys.version_info is OK.

@kayhayen

This comment has been minimized.

Copy link
Member

commented on tests/standalone/Urllib3Using.py in 2afe41f May 1, 2019

It seems you duplicated an awful amount of code, is that really needed, is anything but the base classes really all that different?

@tommyli3318

This comment has been minimized.

Copy link
Member Author

commented May 2, 2019

@kayhayen

It seems you duplicated an awful amount of code

Yes, a foolish mistake by me 😅. I've shortened it now.

tommyli3318 added 2 commits May 2, 2019
@kayhayen

This comment has been minimized.

Copy link
Member

commented May 7, 2019

@tommyli3318 @xennygrimmato There is this here:

http://nuitka.net/doc/developer-manual.html#coding-rules-python

The formatting rules are now basically out of our hands. However, tests are excluding in the git commit hook for now. Obviously identifiers are not done by black though.

Generally, I like using different styles for different things, therefore methods are camel case, which is a difference to some other projects. There are a few exceptions in Nuitka, but generally this should be held to. In tests however, I am generally not that strict. However for reading, it helps to more immediately discern if not the type, but the kind of thing you are looking at from the casing and wording. Therefore also verbs, nouns, etc.

@kayhayen

This comment has been minimized.

Copy link
Member

commented May 7, 2019

@tommyli3318 yes, functions and methods are the same, the reason being that they are very easy to distinguish.

Function:

from module import getSomething # must be a function
from module import python_version # not a function (one of the few cases where Nuitka does that)
...
getSomething() # must be a function without even seeing where it comes from
some_value.getSomething() # must be a method, without seeing where it comes from
@kayhayen

This comment has been minimized.

Copy link
Member

commented May 27, 2019

@tommyli3318 first, one point about screenshots of terminal output. Don't do it. There is a couple of reasons to not do it:

a) It is not part of the emails I get. Therefore I am unlikely to understand your message without actively looking for it. That prevents you from reaching as many people as possible.
b) Images are not good for blind people.
c) Images are not searchable.
d) Images are not quotable.

Therefore, to talk about the stack trace, I need to manually copy it. Or screen shot and draw on it. And that is not going to happen.

As far as that not finding a file relative to a package inside of the .dist folder, this is a very clear sign of a data file that needs to be added, and a finding of yours. It should be as easy as adding an entry here:

@kayhayen

This comment has been minimized.

Copy link
Member

commented May 27, 2019

@jayvdb @tommyli3318 what your stack trace is suggesting, is that it's failing in that environment, which is probably about mocking or not. I didn't follow that. Is this something you are already doing or not, because it seems credentials were sought, which we are unlikely to have.

@tommyli3318

This comment has been minimized.

Copy link
Member Author

commented May 27, 2019

@jayvdb @tommyli3318 what your stack trace is suggesting, is that it's failing in that environment, which is probably about mocking or not. I didn't follow that. Is this something you are already doing or not, because it seems credentials were sought, which we are unlikely to have.

I might be misunderstanding your question but I will try to answer it. Testing Boto3 requires Amazon Web Service credentials which are confidential information. Mocking should take away the need for credentials (it works without credentials if I just run the .py script normally).
If this is not your question please elaborate

@tommyli3318

This comment has been minimized.

Copy link
Member Author

commented May 29, 2019

@tommyli3318 first, one point about screenshots of terminal output. Don't do it. There is a couple of reasons to not do it:

a) It is not part of the emails I get. Therefore I am unlikely to understand your message without actively looking for it. That prevents you from reaching as many people as possible.
b) Images are not good for blind people.
c) Images are not searchable.
d) Images are not quotable.

Therefore, to talk about the stack trace, I need to manually copy it. Or screen shot and draw on it. And that is not going to happen.

As far as that not finding a file relative to a package inside of the .dist folder, this is a very clear sign of a data file that needs to be added, and a finding of yours. It should be as easy as adding an entry here:

I can't seem to find anything inside boto3/botocore that is relating to the endpoints.json error, I've tried adding botocore/cacert.pem but that wasn't it. And it doesn't help that the tests take forever to run each time..

@kayhayen

This comment has been minimized.

Copy link
Member

commented May 29, 2019

I did a more global search on dist-packages or site-packages and the file was in another package actually, but it was there for both Python2 and Python3. Just do a file search. The explanation why this is the case is probably very interesting (this is bizarre and unusual, but we probably only care about having it) but is worth ignoring.

Just try and fight the way the file copy is specifying in that dictionary. Feel free to cheat by looking in standalone code where it is used.

@tommyli3318

This comment has been minimized.

Copy link
Member Author

commented May 30, 2019

I did a more global search on dist-packages or site-packages and the file was in another package actually, but it was there for both Python2 and Python3. Just do a file search. The explanation why this is the case is probably very interesting (this is bizarre and unusual, but we probably only care about having it) but is worth ignoring.

Just try and fight the way the file copy is specifying in that dictionary. Feel free to cheat by looking in standalone code where it is used.

Got it, added plugins and now getting botocore.exceptions.DataNotFoundError.
Googled this but couldn't find much for the case of endpoints, my guess is it has to do with the mocking? Probably worth ignoring at this point correct?

Full traceback:


Using concrete python 3.7.3 on x86
Consider output of recursively compiled program: Boto3Using.py
Comparing output of 'Boto3Using.py' using 'C:\Users\Tommy\AppData\Local\Programs\Python\Python37-32\python.exe' with flags silent, expect_success, standalone, remove_output ...
--- C:\Users\Tommy\AppData\Local\Programs\Python\Python37-32\python.exe (stdout)
+++ nuitka (stdout)

@@ -1,2 +1 @@

-OK.

--- C:\Users\Tommy\AppData\Local\Programs\Python\Python37-32\python.exe (stderr)
+++ nuitka (stderr)

@@ -1 +1,54 @@

+Nuitka:INFO:Injecting plug-in based pre load code for module 'pbr.packaging':
+Nuitka:INFO:    Monkey patching "pbr" version number.
+Nuitka:WARNING:Unresolved '__import__' call at 'C:\Users\Tommy\AppData\Local\Programs\Python\Python37-32\lib\site-packages\boto\utils.py:495' may require use of '--include-plugin-directory' or '--include-plugin-files'.
+Nuitka:WARNING:Unresolved '__import__' call at 'C:\Users\Tommy\AppData\Local\Programs\Python\Python37-32\lib\site-packages\boto3\utils.py:52' may require use of '--include-plugin-directory' or '--include-plugin-files'.
+Nuitka:WARNING:Unresolved '__import__' call at 'C:\Users\Tommy\AppData\Local\Programs\Python\Python37-32\lib\site-packages\cffi\verifier.py:151' may require use of '--include-plugin-directory' or '--include-plugin-files'.
+Nuitka:WARNING:Unresolved '__import__' call at 'C:\Users\Tommy\AppData\Local\Programs\Python\Python37-32\lib\site-packages\flask\cli.py:235' may require use of '--include-plugin-directory' or '--include-plugin-files'.
+Nuitka:WARNING:Unresolved '__import__' call at 'C:\Users\Tommy\AppData\Local\Programs\Python\Python37-32\lib\site-packages\flask\helpers.py:742' may require use of '--include-plugin-directory' or '--include-plugin-files'.
+Nuitka:WARNING:Unresolved '__import__' call at 'C:\Users\Tommy\AppData\Local\Programs\Python\Python37-32\lib\site-packages\flask\helpers.py:811' may require use of '--include-plugin-directory' or '--include-plugin-files'.
+Nuitka:WARNING:Unresolved '__import__' call at 'C:\Users\Tommy\AppData\Local\Programs\Python\Python37-32\lib\site-packages\jinja2\loaders.py:472' may require use of '--include-plugin-directory' or '--include-plugin-files'.
+Nuitka:WARNING:Unresolved '__import__' call at 'C:\Users\Tommy\AppData\Local\Programs\Python\Python37-32\lib\site-packages\jinja2\utils.py:142' may require use of '--include-plugin-directory' or '--include-plugin-files'.
+Nuitka:WARNING:Unresolved '__import__' call at 'C:\Users\Tommy\AppData\Local\Programs\Python\Python37-32\lib\site-packages\jinja2\utils.py:143' may require use of '--include-plugin-directory' or '--include-plugin-files'.
+Nuitka:WARNING:Unresolved '__import__' call at 'C:\Users\Tommy\AppData\Local\Programs\Python\Python37-32\lib\site-packages\jsonpickle\backend.py:101' may require use of '--include-plugin-directory' or '--include-plugin-files'.
+Nuitka:WARNING:Unresolved '__import__' call at 'C:\Users\Tommy\AppData\Local\Programs\Python\Python37-32\lib\site-packages\jsonpickle\unpickler.py:611' may require use of '--include-plugin-directory' or '--include-plugin-files'.
+Nuitka:WARNING:Unresolved '__import__' call at 'C:\Users\Tommy\AppData\Local\Programs\Python\Python37-32\lib\site-packages\jsonpickle\unpickler.py:678' may require use of '--include-plugin-directory' or '--include-plugin-files'.
+Nuitka:WARNING:Unresolved '__import__' call at 'C:\Users\Tommy\AppData\Local\Programs\Python\Python37-32\lib\site-packages\jsonpickle\util.py:317' may require use of '--include-plugin-directory' or '--include-plugin-files'.
+Nuitka:WARNING:Unresolved '__import__' call at 'C:\Users\Tommy\AppData\Local\Programs\Python\Python37-32\lib\site-packages\mock\mock.py:1199' may require use of '--include-plugin-directory' or '--include-plugin-files'.
+Nuitka:WARNING:Unresolved '__import__' call at 'C:\Users\Tommy\AppData\Local\Programs\Python\Python37-32\lib\site-packages\mock\mock.py:1206' may require use of '--include-plugin-directory' or '--include-plugin-files'.
+Nuitka:WARNING:Unresolved '__import__' call at 'C:\Users\Tommy\AppData\Local\Programs\Python\Python37-32\lib\site-packages\moto\core\models.py:473' may require use of '--include-plugin-directory' or '--include-plugin-files'.
+Nuitka:WARNING:Unresolved '__import__' call at 'C:\Users\Tommy\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pbr\util.py:174' may require use of '--include-plugin-directory' or '--include-plugin-files'.
+Nuitka:WARNING:Unresolved '__import__' call at 'C:\Users\Tommy\AppData\Local\Programs\Python\Python37-32\lib\site-packages\requests\packages.py:7' may require use of '--include-plugin-directory' or '--include-plugin-files'.
+Nuitka:WARNING:Unresolved '__import__' call at 'C:\Users\Tommy\AppData\Local\Programs\Python\Python37-32\lib\site-packages\werkzeug\__init__.py:116' may require use of '--include-plugin-directory' or '--include-plugin-files'.
+Nuitka:WARNING:Unresolved '__import__' call at 'C:\Users\Tommy\AppData\Local\Programs\Python\Python37-32\lib\site-packages\werkzeug\__init__.py:121' may require use of '--include-plugin-directory' or '--include-plugin-files'.
+Nuitka:WARNING:Unresolved '__import__' call at 'C:\Users\Tommy\AppData\Local\Programs\Python\Python37-32\lib\site-packages\werkzeug\utils.py:418' may require use of '--include-plugin-directory' or '--include-plugin-files'.
+Nuitka:WARNING:Unresolved '__import__' call at 'C:\Users\Tommy\AppData\Local\Programs\Python\Python37-32\lib\site-packages\werkzeug\utils.py:427' may require use of '--include-plugin-directory' or '--include-plugin-files'.
+Nuitka:WARNING:Unresolved '__import__' call at 'C:\Users\Tommy\AppData\Local\Programs\Python\Python37-32\lib\site-packages\wrapt\importer.py:41' may require use of '--include-plugin-directory' or '--include-plugin-files'.
+Nuitka:WARNING:Unresolved '__import__' call at 'C:\Users\Tommy\AppData\Local\Programs\Python\Python37-32\lib\site-packages\wrapt\importer.py:105' may require use of '--include-plugin-directory' or '--include-plugin-files'.
+Nuitka:WARNING:Unresolved '__import__' call at 'C:\Users\Tommy\AppData\Local\Programs\Python\Python37-32\lib\site-packages\wrapt\importer.py:216' may require use of '--include-plugin-directory' or '--include-plugin-files'.
+Nuitka:WARNING:Unresolved '__import__' call at 'C:\Users\Tommy\AppData\Local\Programs\Python\Python37-32\lib\site-packages\wrapt\wrappers.py:731' may require use of '--include-plugin-directory' or '--include-plugin-files'.
+Traceback (most recent call last):
+  File "C:\Users\Tommy\nuitka\tests\standalone\Boto3Using.dist\Boto3Using.py", line 2, in <module>
+  File "C:\Users\Tommy\nuitka\tests\standalone\<frozen importlib._bootstrap>", line 983, in _find_and_load
+  File "C:\Users\Tommy\nuitka\tests\standalone\<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
+  File "C:\Users\Tommy\nuitka\tests\standalone\<frozen importlib._bootstrap>", line 668, in _load_unlocked
+  File "C:\Users\Tommy\nuitka\tests\standalone\<frozen importlib._bootstrap>", line 638, in _load_backward_compatible
+  File "C:\Users\Tommy\nuitka\tests\standalone\Boto3Using.dist\moto\__init__.py", line 9, in <module>
+  File "C:\Users\Tommy\nuitka\tests\standalone\<frozen importlib._bootstrap>", line 983, in _find_and_load
+  File "C:\Users\Tommy\nuitka\tests\standalone\<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
+  File "C:\Users\Tommy\nuitka\tests\standalone\<frozen importlib._bootstrap>", line 668, in _load_unlocked
+  File "C:\Users\Tommy\nuitka\tests\standalone\<frozen importlib._bootstrap>", line 638, in _load_backward_compatible
+  File "C:\Users\Tommy\nuitka\tests\standalone\Boto3Using.dist\moto\apigateway\__init__.py", line 2, in <module>
+  File "C:\Users\Tommy\nuitka\tests\standalone\<frozen importlib._bootstrap>", line 983, in _find_and_load
+  File "C:\Users\Tommy\nuitka\tests\standalone\<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
+  File "C:\Users\Tommy\nuitka\tests\standalone\<frozen importlib._bootstrap>", line 668, in _load_unlocked
+  File "C:\Users\Tommy\nuitka\tests\standalone\<frozen importlib._bootstrap>", line 638, in _load_backward_compatible
+  File "C:\Users\Tommy\nuitka\tests\standalone\Boto3Using.dist\moto\apigateway\models.py", line 657, in <module>
+  File "C:\Users\Tommy\nuitka\tests\standalone\Boto3Using.dist\boto3\session.py", line 173, in get_available_regions
+  File "C:\Users\Tommy\nuitka\tests\standalone\Boto3Using.dist\botocore\session.py", line 880, in get_available_regions
+  File "C:\Users\Tommy\nuitka\tests\standalone\Boto3Using.dist\botocore\session.py", line 694, in _get_internal_component
+  File "C:\Users\Tommy\nuitka\tests\standalone\Boto3Using.dist\botocore\session.py", line 902, in get_component
+  File "C:\Users\Tommy\nuitka\tests\standalone\Boto3Using.dist\botocore\session.py", line 155, in create_default_resolver
+  File "C:\Users\Tommy\nuitka\tests\standalone\Boto3Using.dist\botocore\loaders.py", line 132, in _wrapper
+  File "C:\Users\Tommy\nuitka\tests\standalone\Boto3Using.dist\botocore\loaders.py", line 424, in load_data
+botocore.exceptions.DataNotFoundError: Unable to load data for: endpoints

Exit codes 0 (CPython) != 1 (Nuitka)
Error, outputs differed.


@kayhayen

This comment has been minimized.

Copy link
Member

commented May 31, 2019

I would say so, @tommyli3318, just catch that, and move on.

tommyli3318 added 2 commits May 31, 2019

@kayhayen kayhayen merged commit e6e50d2 into Nuitka:develop Jun 3, 2019

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.