Comments (3)
I have an aching suspicion that the following error stems from this reported issue:
Traceback (most recent call last):
File "sms.py", line 1, in <module>
from ringcentral import SDK
File "/usr/local/lib/python2.7/site-packages/ringcentral/__init__.py", line 4, in <module>
from .sdk import SDK
File "/usr/local/lib/python2.7/site-packages/ringcentral/sdk.py", line 4, in <module>
from .platform import Platform
File "/usr/local/lib/python2.7/site-packages/ringcentral/platform/__init__.py", line 5, in <module>
from .platform import Platform
File "/usr/local/lib/python2.7/site-packages/ringcentral/platform/platform.py", line 5, in <module>
from observable import Observable
File "/usr/local/lib/python2.7/site-packages/observable/__init__.py", line 7, in <module>
from .core import Observable, EventNotFound, HandlerNotFound
File "/usr/local/lib/python2.7/site-packages/observable/core.py", line 15
def __init__(self, event: str, handler: T.Callable) -> None:
^
SyntaxError: invalid syntax
from ringcentral-python.
https://pypi.org/project/observable/
Note: We are Python 3 only! Only Python Versions >= 3.5 are supported. Use v0.3.2 for older Python Versions.
This SDK specifies
observable>=0.3.1
in requirements. I think we need to change it toobservable==0.3.2
Function annotation syntax has been a Python feature since version 3.0. See PEP 3107
It may be another way to fix this issue by copy the source files to this SDK's source directories, then check function's type of parameter by isinstanceof
.
from ringcentral-python.
Fixed
from ringcentral-python.
Related Issues (20)
- TypeError: not a valid non-string sequence or mapping object HOT 1
- Need a simple and documented way to set auth token
- Install Failing - pip install ringcentral on Python 3.8.1 HOT 1
- Can we get a sample Credentials.ini file that could be used. HOT 1
- Using the SDK in background tasks
- pip 2.7 doesn't work HOT 1
- how set a parameter in SDK builder to not send coverpage HOT 1
- issue with fax attachments in sandbox with python SDK HOT 1
- Do not specify default "Accept" header HOT 1
- CloudQuery RingCentral Plugin?
- error sending fax HOT 4
- Receiving this error while running platform_test.py HOT 1
- move demo code to a folder
- how to get mms attachment need a demo
- WebSocket must heartbeat HOT 1
- Github release tags appear out of date
- Script Information
- 400 error trying to delete extesnion. This Delete Extension requires a body. HOT 1
- Please move pdoc to requirements-dev.txt
- ApiException: Access token is expired / 401 error in long-running scripts HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ringcentral-python.