OneDrive / onedrive-sdk-python

OneDrive SDK for Python! https://dev.onedrive.com
MIT License
1.08k stars 189 forks source link

pip install --user onedrivesdk : NotADirectoryError: [Errno 20] Not a directory NOTICE.rst #167

Open QGB opened 4 years ago

QGB commented 4 years ago

In [63]: pip install --user onedrivesdk Collecting onedrivesdk Using cached https://files.pythonhosted.org/packages/b3/76/9a3fe5b36079f5c40b33c89ad6f7737e3b8609010a80c9ed24d762ddb93e/onedrivesdk-2.0.tar.gz ERROR: Complete output from command python setup.py egg_info: ERROR: Traceback (most recent call last): File "", line 1, in File "/tmp/pip-install-kwl8twtt/onedrivesdk/setup.py", line 9, in with open(NOTICE, 'r', encoding='utf-8') as f: NotADirectoryError: [Errno 20] Not a directory: '/tmp/pip-install-kwl8twtt/onedrivesdk/setup.py/../NOTICE.rst'

ERROR: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-kwl8twtt/onedrivesdk/ Note: you may need to restart the kernel to use updated packages.

TheSeriousProgrammer commented 4 years ago

yeah I am also having the same issue? you got a fix?

earonesty commented 4 years ago

You can try pip install onedrivesdk-fork ... a fork we built to deal with some of the issues we were having. Also, we merged in some of the bugfixes people have posted.

HasibulKabir commented 4 years ago

If you want to install this repo try: pip install https://github.com/OneDrive/onedrive-sdk-python/archive/master.zip This may work.

rvernica commented 4 years ago

@QGB I would update the title to pip install NotADirectoryError: [Errno 20] Not a directory NOTICE.rst I got the exact same error except for the kernel warning. I think that is particular to your environment.

Here is my output:

> pip3 install --user onedrivesdk
Collecting onedrivesdk
  Downloading https://files.pythonhosted.org/packages/b3/76/9a3fe5b36079f5c40b33c89ad6f7737e3b8609010a80c9ed24d762ddb93e/onedrivesdk-2.0.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-z7qf9zc1/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-z7qf9zc1/onedrivesdk/setup.py/../NOTICE.rst'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-z7qf9zc1/onedrivesdk/
AlexisLessard commented 4 years ago

Same error than @rvernica here. I tried installing onedrivesdk-fork, but I haven't managed to make it work with onedrived thus far (which is what I'm trying to install). I'd really like to get a fix :/

songhanpoo commented 4 years ago

If you want to install this repo try: pip install https://github.com/OneDrive/onedrive-sdk-python/archive/master.zip This may work.

this worked for me ! many thanks !

KTibow commented 4 years ago

@QGB Is this fixed enough? There are many installation problems.

rolandolindberg commented 4 years ago

If you want to install this repo try: pip install https://github.com/OneDrive/onedrive-sdk-python/archive/master.zip This may work.

this worked for me ! many thanks !

This work for me too

KTibow commented 4 years ago

@rolandolindberg I think it's better to use pip3 install git+https://github.com/OneDrive/onedrive-sdk-python.git instead, Github is made for Git.

utkarshdalal commented 4 years ago

I have this issue too. I'm surprised this bug still exists over 6 months after it was first reported.

KTibow commented 4 years ago

@utkarshdalal this repo isn't maintained anymore, as you can see. As for proof:

Top 4 contributors by commits:

I've made a PR and @mimisasouvanh did say she'd poke around to see if anybody could own it, but so far she hasn't gotten back.

As for the future of onedrivesdk-python, I'd recommend everyone move to onedrivesdk-fork. As for the future of this issue, it's under @QGB's control since they opened it, and as far as I'm concerned as long as the bug still happens it's a valid issue.

Please, help tidy this repository. Don't lose hope.