GithubHelp home page GithubHelp logo

Comments (13)

kyleconroy avatar kyleconroy commented on June 16, 2024

twilio-python is both Python 2 and Python 3 compatible. You can see from this Travis CI job that library passes all its tests when running on Python 3.2

from twilio-python.

santosh avatar santosh commented on June 16, 2024

There should be instructions for Python 3 in README file.

from twilio-python.

kevinburke avatar kevinburke commented on June 16, 2024

I guess I am a little curious - what would you like to see in the readme?
Did you run into an issue using the library with python3?


Kevin Burke | 415-723-4116 | www.twilio.com

On Fri, Jan 25, 2013 at 5:29 PM, Santosh Kumar [email protected]:

There should be instruction for Python 3 in READMEhttps://github.com/twilio/twilio-python/blob/master/README.mdfile.


Reply to this email directly or view it on GitHubhttps://github.com//issues/107#issuecomment-12728754.

from twilio-python.

santosh avatar santosh commented on June 16, 2024

@kevinburke Yes. Even I can't install it by replicating that Travis CI job, and I don't want to go back to Python 2.x.

from twilio-python.

kevinburke avatar kevinburke commented on June 16, 2024

Ok. What happens when you run pip install twilio and then "python
send_sms.py"?

On Saturday, January 26, 2013, Santosh Kumar wrote:

@kevinburke https://github.com/kevinburke Yes. Even I can't install it
by replicating that Travis CI jobhttps://travis-ci.org/twilio/twilio-python/jobs/4317231,
and I don't want to go back to Python 2.x.


Reply to this email directly or view it on GitHubhttps://github.com//issues/107#issuecomment-12740055.


Kevin Burke | 415-723-4116 | www.twilio.com

from twilio-python.

santosh avatar santosh commented on June 16, 2024

For me, the nosetests fail for 25 of 25 tests.

It would be easy if a separate library for Python 3 is made; without
the need of virtualenv and pip.

Python 3 is future!

On 1/27/13, Kevin Burke [email protected] wrote:

Ok. What happens when you run pip install twilio and then "python
send_sms.py"?

On Saturday, January 26, 2013, Santosh Kumar wrote:

@kevinburke https://github.com/kevinburke Yes. Even I can't install it
by replicating that Travis CI
jobhttps://travis-ci.org/twilio/twilio-python/jobs/4317231,
and I don't want to go back to Python 2.x.


Reply to this email directly or view it on
GitHubhttps://github.com//issues/107#issuecomment-12740055.


Kevin Burke | 415-723-4116 | www.twilio.com


Reply to this email directly or view it on GitHub:
#107 (comment)

from twilio-python.

kevinburke avatar kevinburke commented on June 16, 2024

Ok. What is the console output of nose?

On Saturday, January 26, 2013, Santosh Kumar wrote:

For me, the nosetests fail for 25 of 25 test fails.

It would be easy if a separate library for Python 3 is made; without
the need of virtualenv and pip.

Python 3 is future!

On 1/27/13, Kevin Burke <[email protected] <javascript:_e({},
'cvml', '[email protected]');>> wrote:

Ok. What happens when you run pip install twilio and then "python
send_sms.py"?

On Saturday, January 26, 2013, Santosh Kumar wrote:

@kevinburke https://github.com/kevinburke Yes. Even I can't install
it
by replicating that Travis CI
jobhttps://travis-ci.org/twilio/twilio-python/jobs/4317231,
and I don't want to go back to Python 2.x.


Reply to this email directly or view it on
GitHub<
https://github.com/twilio/twilio-python/issues/107#issuecomment-12740055>.


Kevin Burke | 415-723-4116 | www.twilio.com


Reply to this email directly or view it on GitHub:
#107 (comment)


Reply to this email directly or view it on GitHubhttps://github.com//issues/107#issuecomment-12746865.


Kevin Burke | 415-723-4116 | www.twilio.com

from twilio-python.

gbin avatar gbin commented on June 16, 2024

@santosh Hi, the setup.py is python 2 and 3 compliant so if your system is running under python 3, the only thing you need to do is the standard:

% python setup.py install 

Basically there is nothing much to document, if you are under python 3 it will install and run under it.

from twilio-python.

santosh avatar santosh commented on June 16, 2024

@kevinburke Here it is.

@gbin That was the first thing after I cloned this repository. But the trackback says my system (python3) has no modules named setuptools and I can't install it through pip because pip will install it for python2.x.
And there is nothing like pip3.

from twilio-python.

kevinburke avatar kevinburke commented on June 16, 2024

Hi Santosh,
Thank you for adding the helper log - it looks like there is a bug on our side.

You can fix the problem you have right now by also running:

pip install twilio six

This will install the six library and fix all of the ImportError messages.

from twilio-python.

kevinburke avatar kevinburke commented on June 16, 2024

alternately you can now run:

pip install --upgrade twilio

which should download version 3.4.3 and fix your problem.

from twilio-python.

santosh avatar santosh commented on June 16, 2024

@kevinburke Once again, pip will install six for python2.x on my system; not for python3.

from twilio-python.

kevinburke avatar kevinburke commented on June 16, 2024

Hi Santosh,
Can you be more clear about what you mean when you say pip will fail to install six with python3? What command did you run to try and install six, and what was the output?

You may need to use a different executable command to run pip and virtualenv for python2 and python3. The pip command is tied to a specific Python version, so pip may be tied to Python 2.7 and not install the library for any other Python versions. I'm not sure exactly, but you may need to type something like pip-3.2 install six. Some machines have instructions built in for switching between Python versions, although I'm only familiar with the macintosh ones. Which type of machine are you using?

from twilio-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.