Comments (3)
我也是,后来解决了吗
from onedrivecmd.
Hello,
I'm having the same issue on Ubuntu 20.04 with Python 2.7 and Python 3.8
jarda@ubuntu:~$ python2.7 --version
Python 2.7.18
jarda@ubuntu:~$ pip2.7 install onedrivecmd
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Defaulting to user installation because normal site-packages is not writeable
Collecting onedrivecmd
Using cached OnedriveCMD-0.1.8.1.tar.gz (33 kB)
Collecting progress
Using cached progress-1.5.tar.gz (5.8 kB)
Collecting onedrivesdk
Using cached onedrivesdk-2.0.tar.gz (1.1 kB)
ERROR: Command errored out with exit status 1:
command: /usr/bin/python2 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-imnMuW/onedrivesdk/setup.py'"'"'; __file__='"'"'/tmp/pip-install-imnMuW/onedrivesdk/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-ehhY9h
cwd: /tmp/pip-install-imnMuW/onedrivesdk/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-imnMuW/onedrivesdk/setup.py", line 9, in <module>
with open(NOTICE, 'r', encoding='utf-8') as f:
TypeError: 'encoding' is an invalid keyword argument for this function
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
jarda@ubuntu:~$
or
jarda@ubuntu:~$ python3.8 --version
Python 3.8.5
jarda@ubuntu:~$ pip3.8 install onedrivecmd
Defaulting to user installation because normal site-packages is not writeable
Collecting onedrivecmd
Using cached OnedriveCMD-0.1.8.1.tar.gz (33 kB)
Collecting progress
Using cached progress-1.5.tar.gz (5.8 kB)
Collecting onedrivesdk
Using cached onedrivesdk-2.0.tar.gz (1.1 kB)
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3.8 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-v982un6o/onedrivesdk/setup.py'"'"'; __file__='"'"'/tmp/pip-install-v982un6o/onedrivesdk/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-0lvlhv6l
cwd: /tmp/pip-install-v982un6o/onedrivesdk/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-v982un6o/onedrivesdk/setup.py", line 9, in <module>
with open(NOTICE, 'r', encoding='utf-8') as f:
NotADirectoryError: [Errno 20] Not a directory: '/tmp/pip-install-v982un6o/onedrivesdk/setup.py/../NOTICE.rst'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
any sugeestion please?
from onedrivecmd.
Oh yes, found it just a few secs after - OneDrive/onedrive-sdk-python#167
@Ks236 the solution works.
@cnbeining I guess you can close this issue ;) thanks
from onedrivecmd.
Related Issues (20)
- requirments.txt 是不是应该改为 requirements.txt?
- 405 Not Allowed
- AADSTS90093: The directory object quota limit for the Tenant has been exceeded.
- 365教育版onedrivecmd init_business认证失败 HOT 1
- init_business error HOT 1
- init_bussiness not working, only init
- 在登陆时候报错
- 用Microsoft Azure App获取redirect url
- ubuntu18安装时报错 HOT 1
- onedrivecmd init 时报错 HOT 2
- 求助,win10系统下运行报错 HOT 1
- Business dont work HOT 3
- onedrivecmd is disabled HOT 1
- 不能登录世纪互联网呀 HOT 1
- 安装报错 HOT 1
- 非交互环境如何使用
- 这个项目已经不维护了?
- Error
- Troublesome to run on Python 3.11
- 上传覆盖原文件
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onedrivecmd.