Git Product home page Git Product logo

Comments (3)

zypy333 avatar zypy333 commented on September 13, 2024

我也是,后来解决了吗

from onedrivecmd.

lhotakj avatar lhotakj commented on September 13, 2024

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.

lhotakj avatar lhotakj commented on September 13, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.