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

added ipython to pyproject.toml #235

Closed
wants to merge 1 commit into from
Closed

added ipython to pyproject.toml #235

wants to merge 1 commit into from

Conversation

tim-fiola
Copy link

@tim-fiola tim-fiola commented Oct 5, 2023

When attempting to run shell-plus, got this error:

timothyfiola@ipxxxxxx nautobot-plugin-device-lifecycle-mgmt % invoke shell-plus       
Running docker-compose command "ps --services --filter status=running"
Running docker-compose command "run --entrypoint 'nautobot-server shell_plus' nautobot"
[+] Running 2/0
 ⠿ Container nautobot_device_lifecycle_mgmt-redis-1  Running                                                                                                                                                                                                          0.0s
 ⠿ Container nautobot_device_lifecycle_mgmt-db-1     Running                                                                                                                                                                                                          0.0s
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/django_extensions/management/commands/shell_plus.py", line 399, in get_ipython
    from IPython import start_ipython
ModuleNotFoundError: No module named 'IPython'

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/django_extensions/management/commands/shell_plus.py", line 399, in get_ipython
    from IPython import start_ipython
ModuleNotFoundError: No module named 'IPython'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/django_extensions/management/commands/shell_plus.py", line 413, in get_ipython
    from IPython.Shell import IPShell
ModuleNotFoundError: No module named 'IPython'

CommandError: Could not load shell runner: 'IPython'.
timothyfiola@ipxxxxxx nautobot-plugin-device-lifecycle-mgmt % 

Once I added this fix to my local instance, shell-plus loaded

@bradh11 bradh11 self-assigned this Oct 17, 2023
@bradh11 bradh11 added the status: accepted This issue has been accepted by the maintainers team for implementation label Oct 17, 2023
@bradh11
Copy link
Contributor

bradh11 commented Nov 1, 2023

This has been addressed in PR #240

@bradh11 bradh11 closed this Nov 1, 2023
@bradh11 bradh11 deleted the ipython_fix branch November 1, 2023 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: accepted This issue has been accepted by the maintainers team for implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants