I am not able to install onedrivesdk in linux: it is giving "Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output"

0 votes
pip install onedrivesdk

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. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting onedrivesdk
  Using cached onedrivesdk-2.0.tar.gz (1.1 kB)
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-AbkAzX/onedrivesdk/setup.py'"'"'; __file__='"'"'/tmp/pip-install-AbkAzX/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-install-AbkAzX/onedrivesdk/pip-egg-info
         cwd: /tmp/pip-install-AbkAzX/onedrivesdk/
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-AbkAzX/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
Apr 18 in Python by rose
• 120 points
3,645 views

1 answer to this question.

0 votes

Hi@rose,

You are using older version of pip and python, this may be the reason because onedrivesdk is not compatible with the older version. So try to upgrade in newer version. You can use the bellow given command.

$ pip install --upgrade pip
$ pip install python3

Hope this will help.

answered Apr 20 by MD
• 55,740 points

Related Questions In Python

0 votes
11 answers
0 votes
1 answer

Is it possible to run a function in Python using the command line?

Suppose your file name is demo.py and ...READ MORE

answered Jun 26, 2019 in Python by Neel
• 3,010 points
150 views
0 votes
1 answer

i am normalizing the data set iris in python and get the error ::TypeError: 'numpy.float64' object is not callable

TRY THIS   #Nomalisation for i in names:     print(i)   ...READ MORE

answered Aug 19, 2019 in Python by Noel Deepak Palle
2,855 views
0 votes
1 answer

What is the logic to check if a number is prime or not in python?

n = int (input ('ENTER NUMBER TO ...READ MORE

answered Jul 16 in Python by amrut
• 240 points
97 views
0 votes
1 answer

What is the best IDE for python to work in linux?

Pycharm ranks the best python ide to ...READ MORE

answered Aug 19, 2019 in Python by Mohammad
• 3,210 points
82 views
+1 vote
1 answer
0 votes
0 answers

I am trying to click the button but it is not working and it is drop list ..

<a class="quickreports btn btn3d tbbtn" href="javascript:" style="position:static" ...READ MORE

Dec 1, 2019 in Python by anonymous
• 120 points
163 views
0 votes
1 answer

Command "python setup.py egg_info" failed with error code 1 in C:\Users\Nadeem\AppData\Local\Temp\

Hi@akhtar, I think you are using previous version ...READ MORE

answered May 4 in Python by MD
• 55,740 points
9,264 views
0 votes
1 answer

I am trying to install visualize on my python 3.8 but i end up with the followinf error.

Hi@Avinash, I think the module name is visualization ...READ MORE

answered Apr 27 in Python by MD
• 55,740 points
129 views