Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when running example #1

Open
git-commit opened this issue Jun 17, 2019 · 1 comment
Open

Crash when running example #1

git-commit opened this issue Jun 17, 2019 · 1 comment

Comments

@git-commit
Copy link

git-commit commented Jun 17, 2019

  • webexteamsbot version: 0.1.2.1
  • Python version: 3.7
  • Operating System: Windows

Description

  1. Make a new Virtualenv
  2. Install the library
  3. Try to run the example

What I Did

Running the provided sample results in the following stacktrace:

Traceback (most recent call last):
  File "bot.py", line 15, in <module>
    teams_bot_email=bot_email,
  File "C:\Users\Max\Envs\w\lib\site-packages\webexteamsbot\webexteamsbot.py", line 43, in __init__
    super(TeamsBot, self).__init__(teams_bot_name)
  File "C:\Users\Max\Envs\w\lib\site-packages\flask\app.py", line 371, in __init__
    root_path=root_path
  File "C:\Users\Max\Envs\w\lib\site-packages\flask\helpers.py", line 891, in __init__
    root_path = get_root_path(self.import_name)
  File "C:\Users\Max\Envs\w\lib\site-packages\flask\helpers.py", line 735, in get_root_path
    loader = pkgutil.get_loader(import_name)
  File "c:\python37\Lib\pkgutil.py", line 479, in get_loader
    return find_loader(fullname)
  File "c:\python37\Lib\pkgutil.py", line 489, in find_loader
    if fullname.startswith('.'):
AttributeError: 'NoneType' object has no attribute 'startswith'
@DockCZ
Copy link

DockCZ commented Jul 1, 2019

Hi have entered environment variables?

export TEAMS_BOT_URL=https://mypublicsite.io
export TEAMS_BOT_TOKEN=
export TEAMS_BOT_EMAIL=
export TEAMS_BOT_APP_NAME=

or for me also works editing the code:
bot = TeamsBot( "<your bots name>", teams_bot_token="<your bots token>", teams_bot_url="https://mypublicsite.io", teams_bot_email="<your bots email>",)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants