Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

centos7 安装出错了 #58

Open
Ks236 opened this issue Oct 6, 2019 · 3 comments
Open

centos7 安装出错了 #58

Ks236 opened this issue Oct 6, 2019 · 3 comments

Comments

@Ks236
Copy link

Ks236 commented Oct 6, 2019

ERROR: Command errored out with exit status 1:
command: /usr/bin/python2 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-TVAtBr/onedrivesdk/setup.py'"'"'; file='"'"'/tmp/pip-install-TVAtBr/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 pip-egg-info
cwd: /tmp/pip-install-TVAtBr/onedrivesdk/
Complete output (5 lines):
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-install-TVAtBr/onedrivesdk/setup.py", line 9, in
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.

@zypy333
Copy link

zypy333 commented Dec 11, 2019

我也是,后来解决了吗

@lhotakj
Copy link

lhotakj commented Nov 1, 2020

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?

@lhotakj
Copy link

lhotakj commented Nov 1, 2020

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

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

No branches or pull requests

3 participants