Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

error: [Errno 20] Not a directory: '/tmp/easy_install-pvs43xha/onedrivesdk-2.0/setup.py/../NOTICE.rst' #128

Open
elliott10 opened this issue Sep 28, 2019 · 8 comments

Comments

@elliott10
Copy link

When I followed the README.md and run command: python3 ./setup.py test
on CentOS Linux 7, I encountered the following error:

running test
Searching for onedrivesdk
Reading https://pypi.org/simple/onedrivesdk/
Downloading https://files.pythonhosted.org/packages/b3/76/9a3fe5b36079f5c40b33c89ad6f7737e3b8609010a80c9ed24d762ddb93e/onedrivesdk-2.0.tar.gz#sha256=4a1b3cf22570c21f083bea0a0e07b7d3aeab7a72b91abd09372a93b5fca2fba7
Best match: onedrivesdk 2.0
Processing onedrivesdk-2.0.tar.gz
Writing /tmp/easy_install-pvs43xha/onedrivesdk-2.0/setup.cfg
Running onedrivesdk-2.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-pvs43xha/onedrivesdk-2.0/egg-dist-tmp-zbstvb4m
error: [Errno 20] Not a directory: '/tmp/easy_install-pvs43xha/onedrivesdk-2.0/setup.py/../NOTICE.rst'
@elliott10
Copy link
Author

I figured it out.
The dependency package onedrivesdk (2.0) is deprecated, so we shoud install onedrivesdk<2.

diff --git a/requirements.txt b/requirements.txt
index 1488adc..2568ad2 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,7 +1,7 @@
 setuptools>=30.0.0
 colorama>=0.3.7
 click>=6.6
-onedrivesdk
+onedrivesdk<2
 keyring>=10.1
 send2trash
 zgitignore

@sssomeone
Copy link

i have the same problem as you.and i cant fix it.could you tell me how to fix it

@elliott10
Copy link
Author

elliott10 commented Oct 23, 2019 via email

@marinegundoctor
Copy link

marinegundoctor commented Oct 25, 2019

pip install 'onedrivesdk<2'
be sure to include the '

@robinhood2014
Copy link

You will most likely need to attach "sudo" to the beginning of that command as otherwise it will probably error out with a "Permission denied" failure.

@DAC324
Copy link

DAC324 commented Dec 9, 2019

sudo pip install 'onedrivesdk<2'

does the trick. I'd recommend including this in the install instructions as well as the fix for the following error:

OSError: [Errno 88] Socket operation on non-socket

that occurs when using Python 3.8.

@DAC324
Copy link

DAC324 commented Mar 16, 2020

Looks like this is still not fixed. Is there anybody still maintaining this package?

@derrix060
Copy link

@DAC324 I don't think so... feel free to create a PR

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants