JonathanHolvey / sharepy

Simple SharePoint authentication for Python
GNU General Public License v3.0
175 stars 52 forks source link

module 'sharepy' has no attribute 'auth' #53

Open jcastanien opened 3 years ago

jcastanien commented 3 years ago

Hi, I'm a bit of a novice, but the documentation code from the read me (Requests authentication) triggers an error "module 'sharepy' has no attribute 'auth'".

print(dir(sharepy)) which printed ['SharePointSession', 'builtins', 'cached', 'doc', 'file', 'loader', 'name', 'package', 'path', 'spec', 'connect', 'load', 'session']. I was expecting to see auth listed. Where am I going wrong?

I read the release notes from Jan 2021, is it possible the read me documentation hasn't been updated?

This package appears to be exactly what i'm looking for, I'm just having trouble getting it up and running. Thanks for any response in advance!

dkinneyBU commented 3 years ago

I am getting the same error. with sharepy 1.3.0

KatherineWeller commented 3 years ago

I am having this same issue, also on version 1.3.0.

Boulder08 commented 3 years ago

Looks like the examples are not clear on what version they are meant for. The example will work with the pre-version of 2.0 but not on the latest official release.

Use pip install sharepy==2.0.0b1.post2 to install the latest (as of now) version.