pycall icon indicating copy to clipboard operation
pycall copied to clipboard

pycall error - No module named 'pycall

Open jrcmoura opened this issue 4 years ago • 3 comments

im trying to run these lines of code in PyCharm 2020.2.1 and Python 3.8.3:

call.py

Initiate an internal call to 100 and say

'hello world!' when the caller answers.

from pycall import CallFile, Call, Application

call = Call('SIP/100') action = Application('Playback', 'hello-world')

c = CallFile(call, action) c.spool()

i faced with this message error

C:\PythonProgram\pycall-master\tests>python call.py Traceback (most recent call last): File "call.py", line 4, in from pycall import CallFile, Call, Applica ModuleNotFoundError: No module named 'pycall'

Could you help me solving my problem? thank you in advance

jrcmoura avatar Oct 30 '20 13:10 jrcmoura

It sounds like you don't have Python setup properly on your computer. When you did the pip install pycall command to install the library, do you know where it installed?

rdegges avatar Oct 30 '20 17:10 rdegges

Hi rdegges, thanks alot for your answer! I have done the installation, but show me another message error.

C:\PythonProgram\CallTest>python call.py Traceback (most recent call last): File "call.py", line 1, in from pycall import CallFile, Call, Application File "C:\11-Programas\anaconda3\lib\site-packages\pycall_init_.py", line 8, in from .callfile import CallFile File "C:\11-Programas\anaconda3\lib\site-packages\pycall\callfile.py", line 7, in from pwd import getpwnam ModuleNotFoundError: No module named 'pwd'

jrcmoura avatar Nov 03 '20 11:11 jrcmoura

It sounds like you are running on your local environment. Do you have Asterisk ?

felipesanma avatar Oct 25 '21 18:10 felipesanma