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

tqdm not on requirements file #3

Open
marciogranzotto opened this issue Jul 10, 2023 · 0 comments · May be fixed by #4
Open

tqdm not on requirements file #3

marciogranzotto opened this issue Jul 10, 2023 · 0 comments · May be fixed by #4

Comments

@marciogranzotto
Copy link

looks like you need to add tqdm to the requirements file:

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[36], line 1
----> 1 get_ipython().run_line_magic('load_ext', 'notebook_copilot')

File /usr/local/lib/python3.9/dist-packages/IPython/core/interactiveshell.py:2417, in InteractiveShell.run_line_magic(self, magic_name, line, _stack_depth)
   2415     kwargs['local_ns'] = self.get_local_scope(stack_depth)
   2416 with self.builtin_trap:
-> 2417     result = fn(*args, **kwargs)
   2419 # The code below prevents the output from being displayed
   2420 # when using magics with decodator @output_can_be_silenced
   2421 # when the last Python token in the expression is a ';'.
   2422 if getattr(fn, magic.MAGIC_OUTPUT_CAN_BE_SILENCED, False):

File /usr/local/lib/python3.9/dist-packages/IPython/core/magics/extension.py:33, in ExtensionMagics.load_ext(self, module_str)
     31 if not module_str:
     32     raise UsageError('Missing module name.')
---> 33 res = self.shell.extension_manager.load_extension(module_str)
     35 if res == 'already loaded':
     36     print("The %s extension is already loaded. To reload it, use:" % module_str)

File /usr/local/lib/python3.9/dist-packages/IPython/core/extensions.py:76, in ExtensionManager.load_extension(self, module_str)
     69 """Load an IPython extension by its module name.
     70 
     71 Returns the string "already loaded" if the extension is already loaded,
     72 "no load function" if the module doesn't have a load_ipython_extension
     73 function, or None if it succeeded.
     74 """
     75 try:
---> 76     return self._load_extension(module_str)
     77 except ModuleNotFoundError:
     78     if module_str in BUILTINS_EXTS:

File /usr/local/lib/python3.9/dist-packages/IPython/core/extensions.py:91, in ExtensionManager._load_extension(self, module_str)
     89 with self.shell.builtin_trap:
     90     if module_str not in sys.modules:
---> 91         mod = import_module(module_str)
     92     mod = sys.modules[module_str]
     93     if self._call_load_ipython_extension(mod):

File /usr/lib/python3.9/importlib/__init__.py:127, in import_module(name, package)
    125             break
    126         level += 1
--> 127 return _bootstrap._gcd_import(name[level:], package, level)

File <frozen importlib._bootstrap>:1030, in _gcd_import(name, package, level)

File <frozen importlib._bootstrap>:1007, in _find_and_load(name, import_)

File <frozen importlib._bootstrap>:986, in _find_and_load_unlocked(name, import_)

File <frozen importlib._bootstrap>:680, in _load_unlocked(spec)

File <frozen importlib._bootstrap_external>:790, in exec_module(self, module)

File <frozen importlib._bootstrap>:228, in _call_with_frames_removed(f, *args, **kwds)

File /usr/local/lib/python3.9/dist-packages/notebook_copilot/__init__.py:1
----> 1 from .notebook_copilot import load_ipython_extension

File /usr/local/lib/python3.9/dist-packages/notebook_copilot/notebook_copilot.py:8
      5 from IPython.core.magic import Magics, magics_class, line_magic, cell_magic
      6 from langchain.document_loaders import NotebookLoader
----> 8 from notebook_copilot.agents import get_cot_notebook_agent, AgentStrategy, agent_strategy_type, \
      9     get_plan_execute_notebook_agent
     10 from notebook_copilot.chains import get_llm, get_cells_completion
     11 from notebook_copilot.context import get_ipython_run_history, compress_notebook_context

File /usr/local/lib/python3.9/dist-packages/notebook_copilot/agents.py:9
      6 from langchain.experimental import load_chat_planner, load_agent_executor, PlanAndExecute
      7 from langchain.memory import ConversationSummaryBufferMemory
----> 9 from notebook_copilot.handlers import ProgressHandler
     10 from notebook_copilot.tools import UserInputTool, AddNotebookCellsTool
     13 class AgentStrategy(Enum):

File /usr/local/lib/python3.9/dist-packages/notebook_copilot/handlers.py:5
      3 from langchain.callbacks.base import BaseCallbackHandler
      4 from langchain.schema import AgentAction, AgentFinish
----> 5 from tqdm import tqdm
      8 class ProgressHandler(BaseCallbackHandler):
      9     def __init__(self):

ModuleNotFoundError: No module named 'tqdm'
@marciogranzotto marciogranzotto linked a pull request Jul 10, 2023 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant