Teams-Auto-Joiner icon indicating copy to clipboard operation
Teams-Auto-Joiner copied to clipboard

Can we run this script in Linux.

Open saurav3199 opened this issue 4 years ago • 15 comments

All seems working file until it creates Team object with the Id's that it stuck in the loop and do not return the list of Team objects. Is there any other way around for to run this in linux

saurav3199 avatar Oct 28 '20 01:10 saurav3199

PS: I am trying to run this on the cloud and then left it running. But then I found that after getting teams id, it does not recheck after the default time interval

saurav3199 avatar Oct 28 '20 02:10 saurav3199

I have not tested on linux, are you running in headless mode? What browser are you using?

TobiasPankner avatar Oct 28 '20 09:10 TobiasPankner

  "email": "REDACTED",
  "password": "REDACTED",

  "run_at_time": "",

  "meeting_mode": 2,
  "organisation_num" : 1,
  "random_delay": true,
  "check_interval": 60,

  "auto_leave_after_min": 60,
  "leave_if_last": false,

  "headless" : false,
  "mute_audio": true,
  "chrome_type": "google-chrome",

  "blacklist": [
    {
      "team_name": "Example Team 1",
      "channel_names": [
        "First Channel to blacklist in this team",
        "Second Channel to blacklist"
      ]
    },
     {
      "team_name": "Blacklist whole team",
      "channel_names": [
      ]
    }
  ],
  "blacklist_meeting_re": ""
}

config.json which I am using right now. Everything working fine until teams = get_all_teams()this line where it doesn't get all the team objects and doesn't throw any error as well.

saurav3199 avatar Oct 28 '20 10:10 saurav3199

Okay, what system are you running this on? If you are on the cloud you should switch headless to true.
Does the bot open a chrome window?

TobiasPankner avatar Oct 28 '20 10:10 TobiasPankner

I am running this on Ubuntu 18 on Cloud

saurav3199 avatar Oct 28 '20 10:10 saurav3199

Okay, have you made sure that chrome or chromium is installed on the machine?

TobiasPankner avatar Oct 28 '20 10:10 TobiasPankner

Yeah its working fine no issue detected for chrome or chromium it works fine

saurav3199 avatar Oct 28 '20 11:10 saurav3199

Have you tried chromium and headless mode?

TobiasPankner avatar Oct 28 '20 11:10 TobiasPankner

I did actually , nothing worked out

saurav3199 avatar Oct 28 '20 11:10 saurav3199

Can you also post the console log?

TobiasPankner avatar Oct 28 '20 11:10 TobiasPankner


[WDM] - Cache is valid for [28/10/2020]
[WDM] - Looking for [chromedriver 86.0.4240.22 linux64] driver in cache
[WDM] - Driver found in cache [/home/ubuntu/.wdm/drivers/chromedriver/86.0.4240.22/linux64/chromedriver]
Resized window width
Resized window height
Found page, do not click anything on the webpage from now on.
[<selenium.webdriver.remote.webelement.WebElement (session="92dea6776ec3aaaf3df9adfc6867966c", element="2590536e-a622-435d-b38b-8c65d42e27d6")>, <selenium.webdriver.remote.webelement.WebElement (session="92dea6776ec3aaaf3df9adfc6867966c", element="7652abaa-3faf-4994-9e05-fc62d0a940da")>, <selenium.webdriver.remote.webelement.WebElement (session="92dea6776ec3aaaf3df9adfc6867966c", element="ff257d21-36a5-45fb-9f72-675d55be9cf5")>, <selenium.webdriver.remote.webelement.WebElement (session="92dea6776ec3aaaf3df9adfc6867966c", element="9d00feb1-88f3-42c3-bbbf-6c85c7d43009")>, <selenium.webdriver.remote.webelement.WebElement (session="92dea6776ec3aaaf3df9adfc6867966c", element="d97870dc-f22c-4721-9a6a-a38a2ccf3ee0")>]
['BECLASS', 'Business Ethics Class', 'DMCT', 'CGM', 'CD']

saurav3199 avatar Oct 28 '20 11:10 saurav3199

Well that looks good.
Did you modify the code or are you using an old version? Because the print of the list should not be there.

TobiasPankner avatar Oct 28 '20 12:10 TobiasPankner

I used print statements to debug the code

saurav3199 avatar Oct 28 '20 13:10 saurav3199

Then a slight change with the process creation of teams will be enough to run this on Linux too

saurav3199 avatar Oct 29 '20 13:10 saurav3199

I run it on Debian with chromium installed. Everything is fine. Here is my config:

{
  "email": "CONFIDENTIAL",
  "password": "CONFIDENTIAL"
  "run_at_time": "",

  "meeting_mode": 1,
  "organisation_num" : 1,
  "random_delay": false,
  "check_interval": 10,

  "join_message": "",

  "auto_leave_after_min": -1,
  "leave_if_last": true,
  "leave_threshold_number": "15",
  "leave_threshold_percentage": "10",
  "pause_search": false,

  "headless" : false,
  "mute_audio": false,
  "chrome_type": "chromium",


  "blacklist": [],
  "blacklist_meeting_re": ""
}

ghost avatar Apr 28 '21 07:04 ghost