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

[Migrated] Nosetests are failing on Windows #50

Closed
jneves opened this issue Feb 20, 2021 · 0 comments
Closed

[Migrated] Nosetests are failing on Windows #50

jneves opened this issue Feb 20, 2021 · 0 comments

Comments

@jneves
Copy link
Contributor

jneves commented Feb 20, 2021

Originally from: Miserlou/Zappa#251 by mxplusb

Ran the nosetests on Windows, they are currently failing in a virtualenv:

.....E...E
  0%|          | 0/3 [00:00<?, ? endpoint/s]
4 endpoint [00:00, 1000.01 endpoint/s]      
....
  0%|          | 0/3 [00:00<?, ? endpoint/s]
4 endpoint [00:00, 800.02 endpoint/s]       
................E............
======================================================================
ERROR: test_cli_aws (tests.tests.TestZappa)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "F:\Programming\Repositories\Zappa\tests\utils.py", line 49, in wrapper
    return function(*args, **kwargs)
  File "F:\Programming\Repositories\Zappa\tests\tests.py", line 460, in test_cli_aws
    zappa_cli.update()
  File "F:\Programming\Repositories\Zappa\zappa\cli.py", line 319, in update
    self.create_package()
  File "F:\Programming\Repositories\Zappa\zappa\cli.py", line 933, in create_package
    django_py = ''.join(os.path.join([base, os.sep, 'ext', os.sep, 'django.py']))
  File "C:\Users\Mike\zappa-dev\lib\ntpath.py", line 65, in join
    result_drive, result_path = splitdrive(path)
  File "C:\Users\Mike\zappa-dev\lib\ntpath.py", line 116, in splitdrive
    normp = p.replace(altsep, sep)
AttributeError: 'list' object has no attribute 'replace'
-------------------- >> begin captured stdout << ---------------------
This is a prebuild script!
This application is already deployed - did you mean to call update?

This is a prebuild script!
Packaging project as zip...

--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
placebo.pill: DEBUG: attaching to session: Session(region_name='us-east-1')
placebo.pill: DEBUG: datapath: F:\Programming\Repositories\Zappa\tests\placebo\TestZappa.test_cli_aws
botocore.credentials: DEBUG: Skipping environment variable credential check because profile name was explicitly set.
botocore.credentials: DEBUG: Looking for credentials via: env
botocore.credentials: DEBUG: Looking for credentials via: assume-role
botocore.credentials: DEBUG: Looking for credentials via: shared-credentials-file
botocore.credentials: INFO: Found credentials in shared credentials file: ~/.aws/credentials
botocore.loaders: DEBUG: Loading JSON file: C:\Users\Mike\zappa-dev\lib\site-packages\botocore\data\endpoints.json
botocore.loaders: DEBUG: Loading JSON file: C:\Users\Mike\zappa-dev\lib\site-packages\botocore\data\s3\2006-03-01\service-2.json
botocore.loaders: DEBUG: Loading JSON file: C:\Users\Mike\zappa-dev\lib\site-packages\botocore\data\_retry.json
botocore.client: DEBUG: Registering retry handlers for service: s3
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function add_generate_presigned_post at 0x00000000040476D8>
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function _handler at 0x0000000005572DD8>
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function add_generate_presigned_url at 0x0000000004045208>
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <bound method Pill._create_client of <placebo.pill.Pill object at 0x00000000055A9630>>
placebo.pill: DEBUG: _create_client
botocore.args: DEBUG: The s3 config key is not a dictionary type, ignoring its value of: None
botocore.endpoint: DEBUG: Setting s3 timeout as (60, 60)
botocore.loaders: DEBUG: Loading JSON file: C:\Users\Mike\zappa-dev\lib\site-packages\botocore\data\lambda\2015-03-31\service-2.json
botocore.client: DEBUG: Registering retry handlers for service: lambda
botocore.hooks: DEBUG: Event creating-client-class.lambda: calling handler <function add_generate_presigned_url at 0x0000000004045208>
botocore.hooks: DEBUG: Event creating-client-class.lambda: calling handler <bound method Pill._create_client of <placebo.pill.Pill object at 0x00000000055A9630>>
placebo.pill: DEBUG: _create_client
botocore.args: DEBUG: The s3 config key is not a dictionary type, ignoring its value of: None
botocore.endpoint: DEBUG: Setting lambda timeout as (5, 300)
botocore.loaders: DEBUG: Loading JSON file: C:\Users\Mike\zappa-dev\lib\site-packages\botocore\data\events\2015-10-07\service-2.json
botocore.client: DEBUG: Registering retry handlers for service: events
botocore.hooks: DEBUG: Event creating-client-class.events: calling handler <function add_generate_presigned_url at 0x0000000004045208>
botocore.hooks: DEBUG: Event creating-client-class.events: calling handler <bound method Pill._create_client of <placebo.pill.Pill object at 0x00000000055A9630>>
placebo.pill: DEBUG: _create_client
botocore.args: DEBUG: The s3 config key is not a dictionary type, ignoring its value of: None
botocore.endpoint: DEBUG: Setting events timeout as (60, 60)
botocore.loaders: DEBUG: Loading JSON file: C:\Users\Mike\zappa-dev\lib\site-packages\botocore\data\apigateway\2015-07-09\service-2.json
botocore.client: DEBUG: Registering retry handlers for service: apigateway
botocore.hooks: DEBUG: Event creating-client-class.apigateway: calling handler <function add_generate_presigned_url at 0x0000000004045208>
botocore.hooks: DEBUG: Event creating-client-class.apigateway: calling handler <bound method Pill._create_client of <placebo.pill.Pill object at 0x00000000055A9630>>
placebo.pill: DEBUG: _create_client
botocore.args: DEBUG: The s3 config key is not a dictionary type, ignoring its value of: None
botocore.endpoint: DEBUG: Setting apigateway timeout as (60, 60)
botocore.loaders: DEBUG: Loading JSON file: C:\Users\Mike\zappa-dev\lib\site-packages\botocore\data\logs\2014-03-28\service-2.json
botocore.client: DEBUG: Registering retry handlers for service: logs
botocore.hooks: DEBUG: Event creating-client-class.logs: calling handler <function add_generate_presigned_url at 0x0000000004045208>
botocore.hooks: DEBUG: Event creating-client-class.logs: calling handler <bound method Pill._create_client of <placebo.pill.Pill object at 0x00000000055A9630>>
placebo.pill: DEBUG: _create_client
botocore.args: DEBUG: The s3 config key is not a dictionary type, ignoring its value of: None
botocore.endpoint: DEBUG: Setting logs timeout as (60, 60)
botocore.loaders: DEBUG: Loading JSON file: C:\Users\Mike\zappa-dev\lib\site-packages\botocore\data\iam\2010-05-08\service-2.json
botocore.client: DEBUG: Registering retry handlers for service: iam
botocore.hooks: DEBUG: Event creating-client-class.iam: calling handler <function add_generate_presigned_url at 0x0000000004045208>
botocore.hooks: DEBUG: Event creating-client-class.iam: calling handler <bound method Pill._create_client of <placebo.pill.Pill object at 0x00000000055A9630>>
placebo.pill: DEBUG: _create_client
botocore.regions: DEBUG: Using partition endpoint for iam, us-east-1: aws-global
botocore.args: DEBUG: The s3 config key is not a dictionary type, ignoring its value of: None
botocore.endpoint: DEBUG: Setting iam timeout as (60, 60)
botocore.loaders: DEBUG: Loading JSON file: C:\Users\Mike\zappa-dev\lib\site-packages\boto3\data\iam\2010-05-08\resources-1.json
botocore.client: DEBUG: Registering retry handlers for service: iam
botocore.hooks: DEBUG: Event creating-client-class.iam: calling handler <function add_generate_presigned_url at 0x0000000004045208>
botocore.hooks: DEBUG: Event creating-client-class.iam: calling handler <bound method Pill._create_client of <placebo.pill.Pill object at 0x00000000055A9630>>
placebo.pill: DEBUG: _create_client
botocore.regions: DEBUG: Using partition endpoint for iam, us-east-1: aws-global
botocore.args: DEBUG: The s3 config key is not a dictionary type, ignoring its value of: None
botocore.endpoint: DEBUG: Setting iam timeout as (60, 60)
boto3.resources.factory: DEBUG: Loading iam:iam
botocore.loaders: DEBUG: Loading JSON file: C:\Users\Mike\zappa-dev\lib\site-packages\boto3\data\s3\2006-03-01\resources-1.json
botocore.client: DEBUG: Registering retry handlers for service: s3
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function add_generate_presigned_post at 0x00000000040476D8>
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function _handler at 0x0000000005572DD8>
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function add_generate_presigned_url at 0x0000000004045208>
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <bound method Pill._create_client of <placebo.pill.Pill object at 0x00000000055A9630>>
placebo.pill: DEBUG: _create_client
botocore.args: DEBUG: The s3 config key is not a dictionary type, ignoring its value of: None
botocore.endpoint: DEBUG: Setting s3 timeout as (60, 60)
boto3.resources.factory: DEBUG: Loading s3:s3
botocore.loaders: DEBUG: Loading JSON file: C:\Users\Mike\zappa-dev\lib\site-packages\botocore\data\cloudwatch\2010-08-01\service-2.json
botocore.client: DEBUG: Registering retry handlers for service: cloudwatch
botocore.hooks: DEBUG: Event creating-client-class.cloudwatch: calling handler <function add_generate_presigned_url at 0x0000000004045208>
botocore.hooks: DEBUG: Event creating-client-class.cloudwatch: calling handler <bound method Pill._create_client of <placebo.pill.Pill object at 0x00000000055A9630>>
placebo.pill: DEBUG: _create_client
botocore.args: DEBUG: The s3 config key is not a dictionary type, ignoring its value of: None
botocore.endpoint: DEBUG: Setting monitoring timeout as (60, 60)
botocore.hooks: DEBUG: Event before-call.lambda.ListVersionsByFunction: calling handler <bound method Pill._mock_request of <placebo.pill.Pill object at 0x00000000055A9630>>
placebo.pill: DEBUG: _make_request: lambda.ListVersionsByFunction
placebo.pill: DEBUG: load_response: lambda.ListVersionsByFunction
placebo.pill: DEBUG: get_next_file_path: lambda.ListVersionsByFunction
placebo.pill: DEBUG: load_responses: F:\Programming\Repositories\Zappa\tests\placebo\TestZappa.test_cli_aws\lambda.ListVersionsByFunction_1.json
boto3.resources.factory: DEBUG: Loading iam:Role
boto3.resources.action: INFO: Calling iam:get_role with {u'RoleName': 'ZappaLambdaExecution'}
botocore.hooks: DEBUG: Event before-call.iam.GetRole: calling handler <bound method Pill._mock_request of <placebo.pill.Pill object at 0x00000000055A9630>>
placebo.pill: DEBUG: _make_request: iam.GetRole
placebo.pill: DEBUG: load_response: iam.GetRole
placebo.pill: DEBUG: get_next_file_path: iam.GetRole
placebo.pill: DEBUG: load_responses: F:\Programming\Repositories\Zappa\tests\placebo\TestZappa.test_cli_aws\iam.GetRole_1.json
botocore.hooks: DEBUG: Event after-call.iam.GetRole: calling handler <function json_decode_policies at 0x000000000407BC88>
boto3.resources.action: DEBUG: Response: {u'Role': {u'AssumeRolePolicyDocument': {u'Version': u'2012-10-17', u'Statement': [{u'Action': u'sts:AssumeRole', u'Principal': {u'Service': [u'events.amazonaws.com', u'lambda.amazonaws.com', u'apigateway.amazonaws.com']}, u'Effect': u'Allow', u'Sid': u''}]}, u'RoleId': u'AROAJP6JO7RI37FHZGQ6A', u'CreateDate': datetime.datetime(2016, 1, 25, 15, 33, 29), u'Path': u'/', u'RoleName': u'ZappaLambdaExecution', u'Arn': u'arn:aws:iam::724336686645:role/ZappaLambdaExecution'}, u'ResponseMetadata': {u'HTTPStatusCode': 200, u'RequestId': u'4d88be55-28f3-11e6-b455-b3e4bc23726a'}}
boto3.resources.factory: DEBUG: Loading iam:RolePolicy
boto3.resources.model: DEBUG: Renaming RolePolicy attribute role_name
boto3.resources.action: INFO: Calling iam:get_role_policy with {u'RoleName': 'ZappaLambdaExecution', u'PolicyName': 'zappa-permissions'}
botocore.hooks: DEBUG: Event before-call.iam.GetRolePolicy: calling handler <bound method Pill._mock_request of <placebo.pill.Pill object at 0x00000000055A9630>>
placebo.pill: DEBUG: _make_request: iam.GetRolePolicy
placebo.pill: DEBUG: load_response: iam.GetRolePolicy
placebo.pill: DEBUG: get_next_file_path: iam.GetRolePolicy
placebo.pill: DEBUG: load_responses: F:\Programming\Repositories\Zappa\tests\placebo\TestZappa.test_cli_aws\iam.GetRolePolicy_1.json
botocore.hooks: DEBUG: Event after-call.iam.GetRolePolicy: calling handler <function json_decode_policies at 0x000000000407BC88>
boto3.resources.action: DEBUG: Response: {u'RoleName': u'ZappaLambdaExecution', u'PolicyDocument': {u'Version': u'2012-10-17', u'Statement': [{u'Action': [u'logs:*'], u'Resource': u'arn:aws:logs:*:*:*', u'Effect': u'Allow'}, {u'Action': [u'lambda:InvokeFunction'], u'Resource': [u'*'], u'Effect': u'Allow'}, {u'Action': [u'ec2:CreateNetworkInterface'], u'Resource': u'*', u'Effect': u'Allow'}, {u'Action': [u's3:*'], u'Resource': u'arn:aws:s3:::*', u'Effect': u'Allow'}, {u'Action': [u'sns:*'], u'Resource': u'arn:aws:sns:*:*:*', u'Effect': u'Allow'}, {u'Action': [u'sqs:*'], u'Resource': u'arn:aws:sqs:*:*:*', u'Effect': u'Allow'}, {u'Action': [u'dynamodb:*'], u'Resource': u'arn:aws:dynamodb:*:*:*', u'Effect': u'Allow'}]}, u'ResponseMetadata': {u'HTTPStatusCode': 200, u'RequestId': u'81a584b4-28f7-11e6-8296-0db40e88750e'}, u'PolicyName': u'zappa-permissions'}
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: test_cli_utility (tests.tests.TestZappa)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "F:\Programming\Repositories\Zappa\tests\tests.py", line 424, in test_cli_utility
    zappa_cli.create_package()
  File "F:\Programming\Repositories\Zappa\zappa\cli.py", line 933, in create_package
    django_py = ''.join(os.path.join([base, os.sep, 'ext', os.sep, 'django.py']))
  File "C:\Users\Mike\zappa-dev\lib\ntpath.py", line 65, in join
    result_drive, result_path = splitdrive(path)
  File "C:\Users\Mike\zappa-dev\lib\ntpath.py", line 116, in splitdrive
    normp = p.replace(altsep, sep)
AttributeError: 'list' object has no attribute 'replace'
-------------------- >> begin captured stdout << ---------------------
Packaging project as zip...

--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
botocore.credentials: DEBUG: Skipping environment variable credential check because profile name was explicitly set.
botocore.credentials: DEBUG: Looking for credentials via: env
botocore.credentials: DEBUG: Looking for credentials via: assume-role
botocore.credentials: DEBUG: Looking for credentials via: shared-credentials-file
botocore.credentials: INFO: Found credentials in shared credentials file: ~/.aws/credentials
botocore.loaders: DEBUG: Loading JSON file: C:\Users\Mike\zappa-dev\lib\site-packages\botocore\data\endpoints.json
botocore.loaders: DEBUG: Loading JSON file: C:\Users\Mike\zappa-dev\lib\site-packages\botocore\data\s3\2006-03-01\service-2.json
botocore.loaders: DEBUG: Loading JSON file: C:\Users\Mike\zappa-dev\lib\site-packages\botocore\data\_retry.json
botocore.client: DEBUG: Registering retry handlers for service: s3
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function add_generate_presigned_post at 0x00000000040476D8>
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function _handler at 0x000000000558AB38>
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function add_generate_presigned_url at 0x0000000004045208>
botocore.args: DEBUG: The s3 config key is not a dictionary type, ignoring its value of: None
botocore.endpoint: DEBUG: Setting s3 timeout as (60, 60)
botocore.loaders: DEBUG: Loading JSON file: C:\Users\Mike\zappa-dev\lib\site-packages\botocore\data\lambda\2015-03-31\service-2.json
botocore.client: DEBUG: Registering retry handlers for service: lambda
botocore.hooks: DEBUG: Event creating-client-class.lambda: calling handler <function add_generate_presigned_url at 0x0000000004045208>
botocore.args: DEBUG: The s3 config key is not a dictionary type, ignoring its value of: None
botocore.endpoint: DEBUG: Setting lambda timeout as (5, 300)
botocore.loaders: DEBUG: Loading JSON file: C:\Users\Mike\zappa-dev\lib\site-packages\botocore\data\events\2015-10-07\service-2.json
botocore.client: DEBUG: Registering retry handlers for service: events
botocore.hooks: DEBUG: Event creating-client-class.events: calling handler <function add_generate_presigned_url at 0x0000000004045208>
botocore.args: DEBUG: The s3 config key is not a dictionary type, ignoring its value of: None
botocore.endpoint: DEBUG: Setting events timeout as (60, 60)
botocore.loaders: DEBUG: Loading JSON file: C:\Users\Mike\zappa-dev\lib\site-packages\botocore\data\apigateway\2015-07-09\service-2.json
botocore.client: DEBUG: Registering retry handlers for service: apigateway
botocore.hooks: DEBUG: Event creating-client-class.apigateway: calling handler <function add_generate_presigned_url at 0x0000000004045208>
botocore.args: DEBUG: The s3 config key is not a dictionary type, ignoring its value of: None
botocore.endpoint: DEBUG: Setting apigateway timeout as (60, 60)
botocore.loaders: DEBUG: Loading JSON file: C:\Users\Mike\zappa-dev\lib\site-packages\botocore\data\logs\2014-03-28\service-2.json
botocore.client: DEBUG: Registering retry handlers for service: logs
botocore.hooks: DEBUG: Event creating-client-class.logs: calling handler <function add_generate_presigned_url at 0x0000000004045208>
botocore.args: DEBUG: The s3 config key is not a dictionary type, ignoring its value of: None
botocore.endpoint: DEBUG: Setting logs timeout as (60, 60)
botocore.loaders: DEBUG: Loading JSON file: C:\Users\Mike\zappa-dev\lib\site-packages\botocore\data\iam\2010-05-08\service-2.json
botocore.client: DEBUG: Registering retry handlers for service: iam
botocore.hooks: DEBUG: Event creating-client-class.iam: calling handler <function add_generate_presigned_url at 0x0000000004045208>
botocore.regions: DEBUG: Using partition endpoint for iam, us-east-1: aws-global
botocore.args: DEBUG: The s3 config key is not a dictionary type, ignoring its value of: None
botocore.endpoint: DEBUG: Setting iam timeout as (60, 60)
botocore.loaders: DEBUG: Loading JSON file: C:\Users\Mike\zappa-dev\lib\site-packages\boto3\data\iam\2010-05-08\resources-1.json
botocore.client: DEBUG: Registering retry handlers for service: iam
botocore.hooks: DEBUG: Event creating-client-class.iam: calling handler <function add_generate_presigned_url at 0x0000000004045208>
botocore.regions: DEBUG: Using partition endpoint for iam, us-east-1: aws-global
botocore.args: DEBUG: The s3 config key is not a dictionary type, ignoring its value of: None
botocore.endpoint: DEBUG: Setting iam timeout as (60, 60)
boto3.resources.factory: DEBUG: Loading iam:iam
botocore.loaders: DEBUG: Loading JSON file: C:\Users\Mike\zappa-dev\lib\site-packages\boto3\data\s3\2006-03-01\resources-1.json
botocore.client: DEBUG: Registering retry handlers for service: s3
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function add_generate_presigned_post at 0x00000000040476D8>
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function _handler at 0x000000000558AB38>
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function add_generate_presigned_url at 0x0000000004045208>
botocore.args: DEBUG: The s3 config key is not a dictionary type, ignoring its value of: None
botocore.endpoint: DEBUG: Setting s3 timeout as (60, 60)
boto3.resources.factory: DEBUG: Loading s3:s3
botocore.loaders: DEBUG: Loading JSON file: C:\Users\Mike\zappa-dev\lib\site-packages\botocore\data\cloudwatch\2010-08-01\service-2.json
botocore.client: DEBUG: Registering retry handlers for service: cloudwatch
botocore.hooks: DEBUG: Event creating-client-class.cloudwatch: calling handler <function add_generate_presigned_url at 0x0000000004045208>
botocore.args: DEBUG: The s3 config key is not a dictionary type, ignoring its value of: None
botocore.endpoint: DEBUG: Setting monitoring timeout as (60, 60)
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: test_upload_remove_s3 (tests.tests.TestZappa)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "F:\Programming\Repositories\Zappa\tests\utils.py", line 49, in wrapper
    return function(*args, **kwargs)
  File "F:\Programming\Repositories\Zappa\tests\tests.py", line 82, in test_upload_remove_s3
    zip_path = z.create_lambda_zip(minify=False)
  File "F:\Programming\Repositories\Zappa\zappa\zappa.py", line 396, in create_lambda_zip
    shutil.rmtree(temp_project_path)
  File "C:\Python27\Lib\shutil.py", line 247, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "C:\Python27\Lib\shutil.py", line 247, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "C:\Python27\Lib\shutil.py", line 247, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "C:\Python27\Lib\shutil.py", line 252, in rmtree
    onerror(os.remove, fullname, sys.exc_info())
  File "C:\Python27\Lib\shutil.py", line 250, in rmtree
    os.remove(fullname)
WindowsError: [Error 5] Access is denied: 'c:\\users\\mike\\appdata\\local\\temp\\1471312385\\.git\\objects\\pack\\pack-3a5b3fea6a2c21f734c9883e691e78a442bb0d2c.idx'
-------------------- >> begin captured stdout << ---------------------
Packaging project as zip...

--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
placebo.pill: DEBUG: attaching to session: Session(region_name='us-east-1')
placebo.pill: DEBUG: datapath: F:\Programming\Repositories\Zappa\tests\placebo\TestZappa.test_upload_remove_s3
botocore.credentials: DEBUG: Skipping environment variable credential check because profile name was explicitly set.
botocore.credentials: DEBUG: Looking for credentials via: env
botocore.credentials: DEBUG: Looking for credentials via: assume-role
botocore.credentials: DEBUG: Looking for credentials via: shared-credentials-file
botocore.credentials: INFO: Found credentials in shared credentials file: ~/.aws/credentials
botocore.loaders: DEBUG: Loading JSON file: C:\Users\Mike\zappa-dev\lib\site-packages\botocore\data\endpoints.json
botocore.loaders: DEBUG: Loading JSON file: C:\Users\Mike\zappa-dev\lib\site-packages\botocore\data\s3\2006-03-01\service-2.json
botocore.loaders: DEBUG: Loading JSON file: C:\Users\Mike\zappa-dev\lib\site-packages\botocore\data\_retry.json
botocore.client: DEBUG: Registering retry handlers for service: s3
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function add_generate_presigned_post at 0x00000000040476D8>
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function _handler at 0x0000000006734908>
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function add_generate_presigned_url at 0x0000000004045208>
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <bound method Pill._create_client of <placebo.pill.Pill object at 0x0000000006125FD0>>
placebo.pill: DEBUG: _create_client
botocore.args: DEBUG: The s3 config key is not a dictionary type, ignoring its value of: None
botocore.endpoint: DEBUG: Setting s3 timeout as (60, 60)
botocore.loaders: DEBUG: Loading JSON file: C:\Users\Mike\zappa-dev\lib\site-packages\botocore\data\lambda\2015-03-31\service-2.json
botocore.client: DEBUG: Registering retry handlers for service: lambda
botocore.hooks: DEBUG: Event creating-client-class.lambda: calling handler <function add_generate_presigned_url at 0x0000000004045208>
botocore.hooks: DEBUG: Event creating-client-class.lambda: calling handler <bound method Pill._create_client of <placebo.pill.Pill object at 0x0000000006125FD0>>
placebo.pill: DEBUG: _create_client
botocore.args: DEBUG: The s3 config key is not a dictionary type, ignoring its value of: None
botocore.endpoint: DEBUG: Setting lambda timeout as (5, 300)
botocore.loaders: DEBUG: Loading JSON file: C:\Users\Mike\zappa-dev\lib\site-packages\botocore\data\events\2015-10-07\service-2.json
botocore.client: DEBUG: Registering retry handlers for service: events
botocore.hooks: DEBUG: Event creating-client-class.events: calling handler <function add_generate_presigned_url at 0x0000000004045208>
botocore.hooks: DEBUG: Event creating-client-class.events: calling handler <bound method Pill._create_client of <placebo.pill.Pill object at 0x0000000006125FD0>>
placebo.pill: DEBUG: _create_client
botocore.args: DEBUG: The s3 config key is not a dictionary type, ignoring its value of: None
botocore.endpoint: DEBUG: Setting events timeout as (60, 60)
botocore.loaders: DEBUG: Loading JSON file: C:\Users\Mike\zappa-dev\lib\site-packages\botocore\data\apigateway\2015-07-09\service-2.json
botocore.client: DEBUG: Registering retry handlers for service: apigateway
botocore.hooks: DEBUG: Event creating-client-class.apigateway: calling handler <function add_generate_presigned_url at 0x0000000004045208>
botocore.hooks: DEBUG: Event creating-client-class.apigateway: calling handler <bound method Pill._create_client of <placebo.pill.Pill object at 0x0000000006125FD0>>
placebo.pill: DEBUG: _create_client
botocore.args: DEBUG: The s3 config key is not a dictionary type, ignoring its value of: None
botocore.endpoint: DEBUG: Setting apigateway timeout as (60, 60)
botocore.loaders: DEBUG: Loading JSON file: C:\Users\Mike\zappa-dev\lib\site-packages\botocore\data\logs\2014-03-28\service-2.json
botocore.client: DEBUG: Registering retry handlers for service: logs
botocore.hooks: DEBUG: Event creating-client-class.logs: calling handler <function add_generate_presigned_url at 0x0000000004045208>
botocore.hooks: DEBUG: Event creating-client-class.logs: calling handler <bound method Pill._create_client of <placebo.pill.Pill object at 0x0000000006125FD0>>
placebo.pill: DEBUG: _create_client
botocore.args: DEBUG: The s3 config key is not a dictionary type, ignoring its value of: None
botocore.endpoint: DEBUG: Setting logs timeout as (60, 60)
botocore.loaders: DEBUG: Loading JSON file: C:\Users\Mike\zappa-dev\lib\site-packages\botocore\data\iam\2010-05-08\service-2.json
botocore.client: DEBUG: Registering retry handlers for service: iam
botocore.hooks: DEBUG: Event creating-client-class.iam: calling handler <function add_generate_presigned_url at 0x0000000004045208>
botocore.hooks: DEBUG: Event creating-client-class.iam: calling handler <bound method Pill._create_client of <placebo.pill.Pill object at 0x0000000006125FD0>>
placebo.pill: DEBUG: _create_client
botocore.regions: DEBUG: Using partition endpoint for iam, us-east-1: aws-global
botocore.args: DEBUG: The s3 config key is not a dictionary type, ignoring its value of: None
botocore.endpoint: DEBUG: Setting iam timeout as (60, 60)
botocore.loaders: DEBUG: Loading JSON file: C:\Users\Mike\zappa-dev\lib\site-packages\boto3\data\iam\2010-05-08\resources-1.json
botocore.client: DEBUG: Registering retry handlers for service: iam
botocore.hooks: DEBUG: Event creating-client-class.iam: calling handler <function add_generate_presigned_url at 0x0000000004045208>
botocore.hooks: DEBUG: Event creating-client-class.iam: calling handler <bound method Pill._create_client of <placebo.pill.Pill object at 0x0000000006125FD0>>
placebo.pill: DEBUG: _create_client
botocore.regions: DEBUG: Using partition endpoint for iam, us-east-1: aws-global
botocore.args: DEBUG: The s3 config key is not a dictionary type, ignoring its value of: None
botocore.endpoint: DEBUG: Setting iam timeout as (60, 60)
boto3.resources.factory: DEBUG: Loading iam:iam
botocore.loaders: DEBUG: Loading JSON file: C:\Users\Mike\zappa-dev\lib\site-packages\boto3\data\s3\2006-03-01\resources-1.json
botocore.client: DEBUG: Registering retry handlers for service: s3
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function add_generate_presigned_post at 0x00000000040476D8>
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function _handler at 0x0000000006734908>
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function add_generate_presigned_url at 0x0000000004045208>
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <bound method Pill._create_client of <placebo.pill.Pill object at 0x0000000006125FD0>>
placebo.pill: DEBUG: _create_client
botocore.args: DEBUG: The s3 config key is not a dictionary type, ignoring its value of: None
botocore.endpoint: DEBUG: Setting s3 timeout as (60, 60)
boto3.resources.factory: DEBUG: Loading s3:s3
botocore.loaders: DEBUG: Loading JSON file: C:\Users\Mike\zappa-dev\lib\site-packages\botocore\data\cloudwatch\2010-08-01\service-2.json
botocore.client: DEBUG: Registering retry handlers for service: cloudwatch
botocore.hooks: DEBUG: Event creating-client-class.cloudwatch: calling handler <function add_generate_presigned_url at 0x0000000004045208>
botocore.hooks: DEBUG: Event creating-client-class.cloudwatch: calling handler <bound method Pill._create_client of <placebo.pill.Pill object at 0x0000000006125FD0>>
placebo.pill: DEBUG: _create_client
botocore.args: DEBUG: The s3 config key is not a dictionary type, ignoring its value of: None
botocore.endpoint: DEBUG: Setting monitoring timeout as (60, 60)
--------------------- >> end captured logging << ---------------------

Name                  Stmts   Miss  Cover
-----------------------------------------
zappa.py                  0      0   100%
zappa\cli.py            400    149    63%
zappa\ext.py              0      0   100%
zappa\handler.py        149     20    87%
zappa\middleware.py      66      0   100%
zappa\util.py           110     10    91%
zappa\wsgi.py            53      0   100%
zappa\zappa.py          436    139    68%
-----------------------------------------
TOTAL                  1214    318    74%
----------------------------------------------------------------------
Ran 43 tests in 82.027s

FAILED (errors=3)

Here is my %PATH%:

Zappa>echo %PATH%
C:\Users\Mike\zappa-dev\Scripts;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Docker\Docker\Resources\bin;C:\Program Files (x86)\Razer Chroma SDK\bin;C:\Program Files\Razer Chroma SDK\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows
\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Fi
les (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Skype\Phone\;C:\Program Files\PostgreSQL\pg95\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOW
S\System32\WindowsPowerShell\v1.0\;C:\Users\Mike\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files (x86)\Windows Kits\10\Windows Performance
 Toolkit\;C:\Program Files (x86)\Microsoft Emulator Manager\1.0\;C:\Program Files (x86)\nodejs\;C:\Program Files\Git\cmd;C:\Program Files\CMake\bin;C:\Go\bin;C:\Program Files\Mercurial\;C:\Program Files (x86)\PuTTY\;C:\Program Files (x86)\WinSCP\;C:\Users\Mike\
Anaconda2;C:\Users\Mike\Anaconda2\Scripts;C:\Users\Mike\Anaconda2\Library\bin;C:\Users\Mike\AppData\Roaming\npm;C:\Users\Mike\bin;C:\Users\Mike\AppData\Local\.meteor\;F:\Programming\Go\bin;C:\Users\Mike\AppData\Local\Microsoft\WindowsApps

Here is my env:

Zappa>SET
PROMPT=(zappa-dev) $P$G
USERDOMAIN_ROAMINGPROFILE=BOULDER
LOCALAPPDATA=C:\Users\Mike\AppData\Local
PROCESSOR_LEVEL=6
VIRTUAL_ENV=C:\Users\Mike\zappa-dev
VS140COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\
USERDOMAIN=BOULDER
FPS_BROWSER_APP_PROFILE_STRING=Internet Explorer
LOGONSERVER=\\BOULDER
SESSIONNAME=Console
ALLUSERSPROFILE=C:\ProgramData
PROCESSOR_ARCHITECTURE=AMD64
VS120COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\
PSModulePath=C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\;C:\Program Files\Intel\
SystemDrive=C:
APPDATA=C:\Users\Mike\AppData\Roaming
USERNAME=Mike
ProgramFiles(x86)=C:\Program Files (x86)
CommonProgramFiles=C:\Program Files\Common Files
Path=C:\Users\Mike\zappa-dev\Scripts;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Docker\Docker\Resources\bin;C:\Program Files (x86)\Razer Chroma SDK\bin;C:\Program Files\Razer Chroma SDK\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Wi
ndows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Progr
am Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Skype\Phone\;C:\Program Files\PostgreSQL\pg95\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\W
INDOWS\System32\WindowsPowerShell\v1.0\;C:\Users\Mike\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files (x86)\Windows Kits\10\Windows Perfor
mance Toolkit\;C:\Program Files (x86)\Microsoft Emulator Manager\1.0\;C:\Program Files (x86)\nodejs\;C:\Program Files\Git\cmd;C:\Program Files\CMake\bin;C:\Go\bin;C:\Program Files\Mercurial\;C:\Program Files (x86)\PuTTY\;C:\Program Files (x86)\WinSCP\;C:\Users\
Mike\Anaconda2;C:\Users\Mike\Anaconda2\Scripts;C:\Users\Mike\Anaconda2\Library\bin;C:\Users\Mike\AppData\Roaming\npm;C:\Users\Mike\bin;C:\Users\Mike\AppData\Local\.meteor\;F:\Programming\Go\bin;C:\Users\Mike\AppData\Local\Microsoft\WindowsApps
FPS_BROWSER_USER_PROFILE_STRING=Default
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
OS=Windows_NT
COMPUTERNAME=BOULDER
GOPATH=F:\Programming\Go
PROCESSOR_REVISION=5e03
CommonProgramW6432=C:\Program Files\Common Files
GOROOT=C:\Go\
ComSpec=C:\WINDOWS\system32\cmd.exe
ProgramData=C:\ProgramData
ProgramW6432=C:\Program Files
GOBIN=F:\Programming\Go\bin
HOMEPATH=\Users\Mike
SystemRoot=C:\WINDOWS
TEMP=C:\Users\Mike\AppData\Local\Temp
HOMEDRIVE=C:
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 94 Stepping 3, GenuineIntel
USERPROFILE=C:\Users\Mike
TMP=C:\Users\Mike\AppData\Local\Temp
VS110COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\
VSSDK140Install=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VSSDK\
WAREHOUSE_API_KEY=d32gftp67yr957zce2w3y4kzyvk2hp5c
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
ProgramFiles=C:\Program Files
PUBLIC=C:\Users\Public
NUMBER_OF_PROCESSORS=8
windir=C:\WINDOWS
_OLD_VIRTUAL_PATH=C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Docker\Docker\Resources\bin;C:\Program Files (x86)\Razer Chroma SDK\bin;C:\Program Files\Razer Chroma SDK\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\Wind
owsPowerShell\v1.0\;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Inte
l\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Skype\Phone\;C:\Program Files\PostgreSQL\pg95\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\Win
dowsPowerShell\v1.0\;C:\Users\Mike\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\P
rogram Files (x86)\Microsoft Emulator Manager\1.0\;C:\Program Files (x86)\nodejs\;C:\Program Files\Git\cmd;C:\Program Files\CMake\bin;C:\Go\bin;C:\Program Files\Mercurial\;C:\Program Files (x86)\PuTTY\;C:\Program Files (x86)\WinSCP\;C:\Users\Mike\Anaconda2;C:\U
sers\Mike\Anaconda2\Scripts;C:\Users\Mike\Anaconda2\Library\bin;C:\Users\Mike\AppData\Roaming\npm;C:\Users\Mike\bin;C:\Users\Mike\AppData\Local\.meteor\;F:\Programming\Go\bin;C:\Users\Mike\AppData\Local\Microsoft\WindowsApps
_OLD_VIRTUAL_PROMPT=$P$G

Here is the version of zappa I'm working with:

Zappa>git log --oneline -n1
0202416 fix test

I'll arbitrarily work on it for a bit, see if I make some progress.

@jneves jneves closed this as completed Feb 20, 2021
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