jfialkoff / pyphaxio Goto Github PK
View Code? Open in Web Editor NEWPython client for Phaxio fax service.
License: MIT License
Python client for Phaxio fax service.
License: MIT License
When I attempt to run the example code in a clean virtualenv in Python 3.5 I receive the error:
ImportError: No module named 'swagger_client'
Is there something I am missing here? I have installed pyphaxio as indicate and even manually install requests and I see that it was required.
The pyphaxio-0.8 egg distributed right now on PyPi still has a capitalized "PyPhaxio.egg-info" directory in it, even though a7d8f84 renamed everything to (lowercased) "pyphaxio".
It seems to install alright with pip on OSX, and with pip or easy_install on linux, but easy_install on OSX gets confused.
Not sure if it's because of requests lib, phaxio api, pyphaxio, or my own data/environment. Tried under both py2 and py3 and here are the trace backs.
In Python 3 env:
Traceback (most recent call last):
File "", line 1, in
File "c:\Program Files\Python35\lib\site-packages\phaxio\utils.py", line 3, in _curried
return curried_func((args+moreargs), *_dict(kwargs, *_morekwargs))
File "c:\Program Files\Python35\lib\site-packages\phaxio\api.py", line 98, in get
return self.parse_response(r)
File "c:\Program Files\Python35\lib\site-packages\phaxio\api.py", line 48, in parse_response
payload = response.json()
File "c:\Program Files\Python35\lib\site-packages\requests\models.py", line 808, in json
return complexjson.loads(self.text, *kwargs)
File "c:\Program Files\Python35\lib\json__init.py", line 319, in loads
return _default_decoder.decode(s)
File "c:\Program Files\Python35\lib\json\decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "c:\Program Files\Python35\lib\json\decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
In Python2.7 env:
Traceback (most recent call last):
File "phaxio\utils.pyc", line 3, in curried
File "phaxio\api.pyc", line 98, in get
File "phaxio\api.pyc", line 48, in parse_response
File "requests\models.pyc", line 819, in json
File "json__init.pyc", line 338, in loads
File "json\decoder.pyc", line 365, in decode
File "json\decoder.pyc", line 383, in raw_decode
ValueError: No JSON object could be decoded
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.