Python Forum
UNable to install plivoxml module
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
UNable to install plivoxml module
#1
Hello,
I am trying to install plivoxml but no successful.
sudo pip3 install plivoxml
The directory '/home/uma/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/uma/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting plivoxml
  Could not find a version that satisfies the requirement plivoxml (from versions: )
No matching distribution found for plivoxml


The code I am trying to run is as follows, I got it from the net.
.

cat calls.py 
import plivo, plivoxml
import plivo

auth_id = "deepak"
auth_token = "Deep"

p = plivo.RestAPI(auth_id, auth_token)

params = {
  'to': '919765032993',    # The phone numer to which the call will be placed
  'from' : '919823848822', # The phone number to be used as the caller id
  # answer_url is the URL invoked by Plivo when the outbound call is answered
  # and contains instructions telling Plivo what to do with the call
  'answer_url' : "https://s3.amazonaws.com/static.plivo.com/answer.xml",
  'answer_method' : "GET", # The method used to call the answer_url

  # Example for asynchronous request
  # callback_url is the URL to which the API response is sent.
  #'callback_url' => "http://myvoiceapp.com/callback/",
  #'callback_method' => "GET" # The method used to notify the callback_url.
}

# Make an outbound call and print the response
response = p.make_call(params)
print (response)
Also is there any teaching/ tutorial site for a beginner in Python?
Reply
#2
If it is not part of pypi.org, it cannot be installed with pip, and this module is not.
I think you are looking for plivo, which is part of pypi

first make sure the version of pip in your environment is for the version of python you want to install plivo in
pip -V
# also check
pip3 -V
Then from command line (using proper pip version):
sudo pip3 install plivo
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Unable to install matplotlib arunan 2 2,155 Jan-18-2021, 01:00 PM
Last Post: arunan

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020