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 Error in jsonrpcserver 4.1.0

See original GitHub issue

Hi there’s a permission issue with the package published on pypi

/tmp/jsonrpcserver-4.1.0$ find . -type f -exec ls -lha {} \;
-rw-r--r-- 1 pippo pippo 583 Nov 15 00:09 ./README.md
-rw-r--r-- 1 pippo pippo 4.4K Jan  6 02:07 ./CHANGELOG.md
-rw-r--r-- 1 pippo pippo 1.3K Jan  6 02:07 ./setup.py
-rw------- 1 pippo pippo 73 Sep 10 01:56 ./MANIFEST.in
-rw-r--r-- 1 pippo pippo 3.0K Jan  6 00:06 ./jsonrpcserver/methods.py
-rw-r--r-- 1 pippo pippo 151 Jan  6 00:06 ./jsonrpcserver/__init__.py
-rw-r--r-- 1 pippo pippo 3.2K Jan  6 00:06 ./jsonrpcserver/async_dispatcher.py
-rw------- 1 pippo pippo 921 Jan 30  2019 ./jsonrpcserver/server.py
-rw------- 1 pippo pippo 4.1K Apr 13  2019 ./jsonrpcserver/request.py
-rw------- 1 pippo pippo 2.2K Jan 30  2019 ./jsonrpcserver/log.py
-rw-r--r-- 1 pippo pippo 9.2K Jan  6 02:07 ./jsonrpcserver/response.py
-rw------- 1 pippo pippo 1.3K Jan 30  2019 ./jsonrpcserver/request-schema.json
-rw------- 1 pippo pippo 2.1K Jan 30  2019 ./jsonrpcserver/status.py
-rw-r--r-- 1 pippo pippo 891 Jan  6 00:06 ./jsonrpcserver/exceptions.py
-rw-r--r-- 1 pippo pippo 9.9K Jan  6 02:07 ./jsonrpcserver/dispatcher.py
-rw-r--r-- 1 pippo pippo 38 Jan  6 02:19 ./setup.cfg
-rw-r--r-- 1 pippo pippo 1 Jan  6 00:49 ./jsonrpcserver.egg-info/not-zip-safe
-rw------- 1 pippo pippo 14 Jan  6 02:19 ./jsonrpcserver.egg-info/top_level.txt
-rw------- 1 pippo pippo 566 Jan  6 02:19 ./jsonrpcserver.egg-info/SOURCES.txt
-rw------- 1 pippo pippo 127 Jan  6 02:19 ./jsonrpcserver.egg-info/requires.txt
-rw------- 1 pippo pippo 1.3K Jan  6 02:19 ./jsonrpcserver.egg-info/PKG-INFO
-rw------- 1 pippo pippo 1 Jan  6 02:19 ./jsonrpcserver.egg-info/dependency_links.txt
-rw-r--r-- 1 pippo pippo 1.3K Jan  6 02:19 ./PKG-INFO
-rw------- 1 pippo pippo 1.1K Sep 19  2017 ./LICENSE

with the old version

:/tmp/jsonrpcserver-4.1.0$ find ../jsonrpcserver-4.0.5/ -type f -exec ls -lha {} \;
-rw-r--r-- 1 pippo pippo 940 Jan 30  2019 ../jsonrpcserver-4.0.5/README.md
-rw-r--r-- 1 pippo pippo 3.5K Sep 10 01:56 ../jsonrpcserver-4.0.5/CHANGELOG.md
-rw-r--r-- 1 pippo pippo 1.1K Sep 10 01:56 ../jsonrpcserver-4.0.5/setup.py
-rw-r--r-- 1 pippo pippo 73 Sep 10 01:56 ../jsonrpcserver-4.0.5/MANIFEST.in
-rw-r--r-- 1 pippo pippo 2.3K Jun 21  2019 ../jsonrpcserver-4.0.5/jsonrpcserver/methods.py
-rw-r--r-- 1 pippo pippo 151 Jan 30  2019 ../jsonrpcserver-4.0.5/jsonrpcserver/__init__.py
-rw-r--r-- 1 pippo pippo 3.2K Apr 13  2019 ../jsonrpcserver-4.0.5/jsonrpcserver/async_dispatcher.py
-rw-r--r-- 1 pippo pippo 921 Jan 30  2019 ../jsonrpcserver-4.0.5/jsonrpcserver/server.py
-rw-r--r-- 1 pippo pippo 4.1K Apr 13  2019 ../jsonrpcserver-4.0.5/jsonrpcserver/request.py
-rw-r--r-- 1 pippo pippo 2.2K Jan 30  2019 ../jsonrpcserver-4.0.5/jsonrpcserver/log.py
-rw-r--r-- 1 pippo pippo 8.9K Jan 30  2019 ../jsonrpcserver-4.0.5/jsonrpcserver/response.py
-rw-r--r-- 1 pippo pippo 1.3K Jan 30  2019 ../jsonrpcserver-4.0.5/jsonrpcserver/request-schema.json
-rw-r--r-- 1 pippo pippo 2.1K Jan 30  2019 ../jsonrpcserver-4.0.5/jsonrpcserver/status.py
-rw-r--r-- 1 pippo pippo 9.5K Jun 22  2019 ../jsonrpcserver-4.0.5/jsonrpcserver/dispatcher.py
-rw-r--r-- 1 pippo pippo 38 Sep 10 01:57 ../jsonrpcserver-4.0.5/setup.cfg
-rw-r--r-- 1 pippo pippo 14 Sep 10 01:57 ../jsonrpcserver-4.0.5/jsonrpcserver.egg-info/top_level.txt
-rw-r--r-- 1 pippo pippo 502 Sep 10 01:57 ../jsonrpcserver-4.0.5/jsonrpcserver.egg-info/SOURCES.txt
-rw-r--r-- 1 pippo pippo 127 Sep 10 01:57 ../jsonrpcserver-4.0.5/jsonrpcserver.egg-info/requires.txt
-rw-r--r-- 1 pippo pippo 1.7K Sep 10 01:57 ../jsonrpcserver-4.0.5/jsonrpcserver.egg-info/PKG-INFO
-rw-r--r-- 1 pippo pippo 1 Sep 10 01:57 ../jsonrpcserver-4.0.5/jsonrpcserver.egg-info/dependency_links.txt
-rw-r--r-- 1 pippo pippo 1.7K Sep 10 01:57 ../jsonrpcserver-4.0.5/PKG-INFO
-rw-r--r-- 1 pippo pippo 1.1K Sep 19  2017 ../jsonrpcserver-4.0.5/LICENSE

This causes import error in particular for

-rw------- 1 pippo pippo 127 Jan  6 02:19 ./jsonrpcserver.egg-info/requires.txt
-rw------- 1 pippo pippo 1.3K Jan  6 02:19 ./jsonrpcserver.egg-info/PKG-INFO

vs

-rw-r--r-- 1 pippo pippo 127 Sep 10 01:57 ../jsonrpcserver-4.0.5/jsonrpcserver.egg-info/requires.txt
-rw-r--r-- 1 pippo pippo 1.7K Sep 10 01:57 ../jsonrpcserver-4.0.5/jsonrpcserver.egg-info/PKG-INFO

can you fix it? thanks Nick

-> chmod 0644

_Originally posted by @nicola-lunghi in https://github.com/bcb/jsonrpcserver/issues/106#issuecomment-571632418_

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
nicola-lunghicommented, Jan 8, 2020

Hi!

$ python3 setup.py build install Here you are running this with the same user

(test-jsonrpcserver) /tmp/jsonrpcserver-4.1.0

the problem appear to be in the .egg directory

if you look up is

/usr/local/lib/python3.7/dist-packages/jsonrpcserver-4.1.0-py3.7**.egg** ├── [drwxr-sr-x root ] EGG-INFO │ ├── [-rw------- root ] dependency_links.txt │ ├── [-rw-r–r-- root ] not-zip-safe │ ├── [-rw------- root ] PKG-INFO │ ├── [-rw------- root ] requires.txt │ ├── [-rw------- root ] SOURCES.txt │ └── [-rw------- root ] top_level.txt

That has the permission problem, the normal directory is fine (why you are asking? I think that the egg is created by root and is copying the files as they are -> only readable by root

Your files are owned by the user beau that can access them so -> no error

Thank you!!!

0reactions
bcbcommented, Jan 10, 2020

Closing as I believe it’s resolved.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Incorrect permissions on *.egg-info directory #1328 - GitHub
It seems that the setup.py install command doesn't set the permissions of the .egg-info/* files when they already exist, relying on what is ......
Read more >
jsonrpcserver Changelog - pyup.io
- Fix file permission on all files. 4.1.0. - Add InvalidParamsError exception, for input validation. Previously the advice was to `assert` on ...
Read more >
Methods — jsonrpcserver 5.0.0 documentation
Methods return either Success or Error . These are the JSON-RPC response objects (excluding the jsonrpc and id parts). Error takes a code,...
Read more >
Trouble installing turbodbc - python - Stack Overflow
I am getting this error message (base) sean@sean-pc:~$ pip3 install turbodbc Collecting turbodbc Using cached turbodbc-4.1.1.tar.gz (77 kB) ...
Read more >
JSON-RPC 2.0 Specification
As such, the Client would not be aware of any errors (like e.g. "Invalid params","Internal error"). 4.2 Parameter Structures. If present, parameters for...
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