roramirez / qpanel

Dashboard for Queues in Asterisk and FreeSWITCH. app_queue panel for Asterisk and mod_callcenter in FreeSWITCH. Get news -> http://eepurl.com/dxKt7X
https://boxtub.com/qpanel/
MIT License
175 stars 112 forks source link

NameError: name 'Freeswitch' is not defined #270

Open GarneshMike opened 2 years ago

GarneshMike commented 2 years ago

Hi @roramirez ,

First of all thanks for this awesome project.

After the installation as per the guide, I am unable to bring up the app.py Please refer to below for the error details.

python3 app.py Traceback (most recent call last): File "app.py", line 1, in from qpanel import app File "/home/sysadmin/PROJECTS/qpanel/qpanel/app.py", line 33, in backend = Backend() File "/home/sysadmin/PROJECTS/qpanel/qpanel/backend.py", line 39, in init self.connection = self._connect() File "/home/sysadmin/PROJECTS/qpanel/qpanel/backend.py", line 49, in _connect return self._connect_esl() File "/home/sysadmin/PROJECTS/qpanel/qpanel/backend.py", line 57, in _connect_esl esl = Freeswitch(self.host, self.port, self.password) NameError: name 'Freeswitch' is not defined

Rashid-Cal4care commented 1 year ago

Hi,

can you try installing the Python-Esl with this command 'pip install FreeSWITCH-ESL-Python' and change the code in freeswitch.py like below

try: import ESL except ImportError: from freeswitchESL import ESL

roramirez commented 1 year ago

Hi!, there is a requirements file for Freeswitch

You could install this dependency using.

pip install -r requirements/fs.txt

The ESL needs to haved it installed swig. So it is interesting to use FreeSWITCH-ESL-Python. I let this issue open until I can test this requirement