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.

Permission Denied on PKG-INFO file of azure_cosmos package

See original GitHub issue

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Describe the bug

Get a permission denied error on /usr/local/Cellar/azure-cli/2.6.0/libexec/lib/python3.8/site-packages/azure_cosmos-3.1.0-py3.8.egg-info/PKG-INFO

I manually resolved it and then when I invoke a command I get a series of warning messages having to do with conditional statements in Python 3.8.x (installed with azure-cli)

To Reproduce

Occurs on macOS 10.15.4

su admin brew install azure-cli az login

Expected behavior

No Permission Denied error No Python 3.8 warnings

Environment summary

azure-cli 2.6.0 macOS 10.15.4 zsh

Additional context

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:15 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
fengzhou-msftcommented, Aug 16, 2020

@nrobert The azure-cosmos package is upgraded in this PR and is targeted to be released on August 25 with 2.11.0.

1reaction
PeterUpfoldcommented, Jul 21, 2020

This also occurred for me on azure-cli 2.9.1 on macOS 10.15.6 installed with Homebrew 2.4.8.

The installation was performed using a different user account (with administrator privileges) than the user who is running the az command. (Although it’s not technically about administrator rights per se, it’s about the files below being owned by the installation user and unreadable by anyone else.)

Other files in /usr/local/Cellar/azure-cli/2.9.1/libexec/lib/python3.8/site-packages/ have the permissions set to -rw-r--r-- (0644), but the following files are set to -rw------- (600):

% cd /usr/local/Cellar/azure-cli/2.9.1/libexec/lib/python3.8/site-packages    
% find . -perm 600
./azure_cosmos-3.1.0-py3.8.egg-info/PKG-INFO
./azure_cosmos-3.1.0-py3.8.egg-info/SOURCES.txt
./azure_cosmos-3.1.0-py3.8.egg-info/requires.txt
./azure_cosmos-3.1.0-py3.8.egg-info/top_level.txt
./azure_cosmos-3.1.0-py3.8.egg-info/dependency_links.txt

One or more of these files are attempted to be read upon running az, so therefore no user other than the installation user can execute az unless these permissions are manually changed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Permissions - Azure Cosmos DB REST API - Microsoft Learn
An attempt to add another permission to MarketingCollection for Janet results in an error (409 Conflict). There are only two permission modes, ...
Read more >
python - How to install requirements.txt pip error ->Could not ...
I am trying to run a pip install -r requirements.txt error but I get ... not install packages due to an OSError: [Errno...
Read more >
Package List — Spack 0.20.0.dev0 documentation
dorian3d-dlib, py-azure-cosmos, r-geneplotter. dos2unix, py-azure-datalake-store, r-generics. dosfstools, py-azure-functions-devops-build, r-genetics.
Read more >
nuget packages access is denied on update
I'm trying to update a nuget package hosted locally on a file share. I get an error each time and have to restart...
Read more >
azure.cosmos package — Azure SDK for Python 2.0.0 ... - NET
class azure.cosmos. ... retry_status (int) – Maximum number of retry attempts on error status codes. ... Delete the specified permission from the user....
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