question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

windows support redux

See original GitHub issue

Hello

Can anyone provide some advice on the below error when trying to package a simple policy for lambda.

PS C:\Users\USER\Custodian> custodian run --region=eu-west-1 --output-dir=. --config=custod
2017-01-04 10:58:51,770: custodian.policy:INFO Provisioning policy lambda ec2-tag-complianc
2017-01-04 10:58:52,921: custodian.output:ERROR Error while executing policy
Traceback (most recent call last):
  File "c:\python27\lib\site-packages\c7n\policy.py", line 300, in provision
    role=self.policy.options.assume_role)
  File "c:\python27\lib\site-packages\c7n\mu.py", line 221, in publish
    func, role, s3_uri, qualifier=alias)
  File "c:\python27\lib\site-packages\c7n\mu.py", line 319, in _create_or_update
    code_ref = {'ZipFile': archive.get_bytes()}
  File "c:\python27\lib\site-packages\c7n\mu.py", line 165, in get_bytes
    return open(self._temp_archive_file.name, 'rb').read()
IOError: [Errno 13] Permission denied: 'c:\\users\\USER\\appdata\\local\\temp\\tmpvah3za'
2017-01-04 10:58:52,934: custodian.commands:ERROR Error while executing policy ec2-tag-comp
Traceback (most recent call last):
  File "c:\python27\lib\site-packages\c7n\commands.py", line 114, in run
    policy()
  File "c:\python27\lib\site-packages\c7n\policy.py", line 461, in __call__
    return mode.provision()
  File "c:\python27\lib\site-packages\c7n\policy.py", line 300, in provision
    role=self.policy.options.assume_role)
  File "c:\python27\lib\site-packages\c7n\mu.py", line 221, in publish
    func, role, s3_uri, qualifier=alias)
  File "c:\python27\lib\site-packages\c7n\mu.py", line 319, in _create_or_update
    code_ref = {'ZipFile': archive.get_bytes()}
  File "c:\python27\lib\site-packages\c7n\mu.py", line 165, in get_bytes
    return open(self._temp_archive_file.name, 'rb').read()
IOError: [Errno 13] Permission denied: 'c:\\users\\USER\\appdata\\local\\temp\\tmpvah3za'

I have checked permissions/ UAC etc

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
stefangordoncommented, Jan 22, 2019

This is still an open issue for running some tests on Windows, most of us developing on Windows are using Windows Subsystem for Linux currently so it hasn’t been a blocker - but we should get to it at some point for sure. It is basically functionality that does not exist in Windows so it will require refactoring a bit.

0reactions
stefangordoncommented, Apr 23, 2019

This was resolved with #3842 and you should be able to do all your tests on Windows now if you’d like. Please open a new issue if you run into any problems.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Support Hub - Build Redux
Search our knowledge base for answers to common questions. Guides. Need help? We have you covered. FAQ. Questions? We have answers. Submit a...
Read more >
PC Upgrade Redux: Can Windows 10 Help? - ZDNET
PC Upgrade Redux: Can Windows 10 Help?
Read more >
Windows 10 Redux – Practical Help for Your Digital Life®
Windows 10 Redux: a reader asks… I'm an avid reader of your column, and find absolute gems on your blog, thank you! I've...
Read more >
Critical Error: Your Start menu isn't working. Redux.
I have a new computer with Windows 10 preinstalled. It happened a week after I bought it. After trying several fixes, I created...
Read more >
How to install windows 11 on your build redux PC. - YouTube
... PCs off of build redux and want to get the windows 11 update early. ... on any computer aslong as the CPU...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found