question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I can't import the richMenuAlias module

See original GitHub issue

request

I need you to add a RichMenuAlias to the code below.

https://github.com/line/line-bot-sdk-python/blob/c0b7488c2182c527f41a7d4cff603d0b500cde82/linebot/models/__init__.py#L165-L170

System Informations

  • Python version: 3.8
  • SDK version: 1.20.0 , 2.0.1

What I want to do

from linebot.models import RichMenuAlias

Current Behavior

Logs

[ERROR] Runtime.ImportModuleError: Unable to import module 'app': cannot import name 'RichMenuAlias' from 'linebot.models' (/var/task/linebot/models/__init__.py)
Traceback (most recent call last):

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
louis70109commented, Oct 29, 2021

@TF-Takishita Could you assist to add RichMenuAlias in line-bot-sdk-python/linebot/models/__init__.py with new Pull Request ?

Thanks for your report. 😃

2reactions
cryeocommented, Oct 29, 2021

If you want to use RichMenuAlias ASAP, please import like the following until the issue is fixed 😃

from linebot.models.rich_menu import RichMenuAlias
Read more comments on GitHub >

github_iconTop Results From Across the Web

python - Unable to import a module that is definitely installed
In my case, it is permission problem. The package was somehow installed with root rw permission only, other user just cannot rw to...
Read more >
How to Fix ImportError: Cannot Import Name in Python - Rollbar
The imported class name is misspelled. The imported class from a module is misplaced. The imported class is unavailable in the Python library....
Read more >
Resolve "Unable to import module" errors from Python ... - AWS
I receive an "Unable to import module" error when I try to run my AWS Lambda code in Python. How do I resolve...
Read more >
5. The import system — Python 3.11.1 documentation
When a module is first imported, Python searches for the module and if found, it creates a module object 1, initializing it. If...
Read more >
Cannot import a package with "type": "module" from cjs even if ...
The specifier only resolves to an ES module, which cannot be imported synchronously. Version & Regression Information. I was unable to test ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found