mljar / automl-app

AutoML Web App - build Machine Learning pipeline in automatic way with Graphical User Interface (GUI). You can run app locally!
https://automl.runmercury.com/
MIT License
141 stars 13 forks source link

Error running mercury portal on Mac OS #1

Closed mark-zs closed 5 months ago

mark-zs commented 7 months ago

Hi I managed to install but then I keep getting the below error whey doing mercury run Could maybe somehow be related to having both Python 3.11 and 3.12 on my Mac OS M1. Thanks!

Version: 2.3.7
Initialize train-automl-advanced.ipynb
Error during notebook initialization. No template sub-directory with name 'lab' found in the following paths:
    /Users/zvi/Library/Jupyter
    /Users/zvi/Library/Python/3.11/share/jupyter
    /opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/share/jupyter
    /usr/local/share/jupyter
    /usr/share/jupyter
Traceback (most recent call last):
  File "/opt/homebrew/lib/python3.11/site-packages/traitlets/traitlets.py", line 632, in get
    value = obj._trait_values[self.name]
            ~~~~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'template_paths'
pplonski commented 7 months ago

Hi @mark-zs,

Mercury will work with 3.11. From your logs, looks like you are missing template from Jupyter. Please try to install Jupyter with:

pip install jupyter

Good luck!

mark-zs commented 7 months ago

Thanks but that didn't help. When I check

pip show jupyter I find Location: /opt/homebrew/lib/python3.11/site-packages

On Mon, 29 Jan 2024 at 10:15, Piotr @.***> wrote:

Hi @mark-zs https://github.com/mark-zs,

Mercury will work with 3.11. From your logs, looks like you are missing template from Jupyter. Please try to install Jupyter with:

pip install jupyter

Good luck!

— Reply to this email directly, view it on GitHub https://github.com/mljar/automl-app/issues/1#issuecomment-1914269893, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO5ED65NR7BZXZDQ3JG3RZTYQ5SEHAVCNFSM6AAAAABCNQR4AKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJUGI3DSOBZGM . You are receiving this because you were mentioned.Message ID: @.***>

pplonski commented 7 months ago

What about nbconvert package?

mark-zs commented 7 months ago

Hi again. I have nbconvert installed if that is your question.

On Mon, 29 Jan 2024 at 12:21, Piotr @.***> wrote:

What about nbconvert package?

— Reply to this email directly, view it on GitHub https://github.com/mljar/automl-app/issues/1#issuecomment-1914487160, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO5ED64HUGUO64BLPO3NUJLYQ6A35AVCNFSM6AAAAABCNQR4AKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJUGQ4DOMJWGA . You are receiving this because you were mentioned.Message ID: @.***>

pplonski commented 7 months ago

The error log No template sub-directory with name 'lab' means that you are missing lab directory with template that is used y Jupyter. Maybe try to update Jupyter?

pip install -U jupyter
mark-zs commented 7 months ago

Thanks actually I think that helped, I don't see errors on the console anymore but still at http://127.0.0.1:8000/ I just see Site does not exist

We can't find site you are looking for. Please make sure that URL address is correct.

On Mon, 29 Jan 2024 at 16:24, Piotr @.***> wrote:

The error log No template sub-directory with name 'lab' means that you are missing lab directory with template that is used y Jupyter. Maybe try to update Jupyter?

pip install -U jupyter

— Reply to this email directly, view it on GitHub https://github.com/mljar/automl-app/issues/1#issuecomment-1914924728, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO5ED64BQUYVCAPAHTZXOH3YQ65KDAVCNFSM6AAAAABCNQR4AKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJUHEZDINZSHA . You are receiving this because you were mentioned.Message ID: @.***>

pplonski commented 7 months ago

Please try to run Mercury with logs on:

mercury run --verbose

Please attach logs to this issue.

mark-zs commented 7 months ago

Here are the logs mercury-logs.txt

pplonski commented 7 months ago

Thank you. Do you have any notebook files in the directory where you start mercury?

mark-zs commented 7 months ago

No, I tried running it from different directories but same problem

On Wed, 31 Jan 2024 at 08:59, Piotr @.***> wrote:

Thank you. Do you have any notebook files in the directory where you start mercury?

— Reply to this email directly, view it on GitHub https://github.com/mljar/automl-app/issues/1#issuecomment-1918576011, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO5ED6YL55K6PVOFKMFNLQDYRH2WBAVCNFSM6AAAAABCNQR4AKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJYGU3TMMBRGE . You are receiving this because you were mentioned.Message ID: @.***>

mark-zs commented 6 months ago

Any tips please?

On Wed, Jan 31, 2024, 20:04 Zvi Schreiber @.***> wrote:

No, I tried running it from different directories but same problem

On Wed, 31 Jan 2024 at 08:59, Piotr @.***> wrote:

Thank you. Do you have any notebook files in the directory where you start mercury?

— Reply to this email directly, view it on GitHub https://github.com/mljar/automl-app/issues/1#issuecomment-1918576011, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO5ED6YL55K6PVOFKMFNLQDYRH2WBAVCNFSM6AAAAABCNQR4AKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJYGU3TMMBRGE . You are receiving this because you were mentioned.Message ID: @.***>

pplonski commented 6 months ago

Hi @mark-zs,

based on your logs it looks like you are starting mercury in the directory without *.ipynb files, please try to create any notebook in the directory and restart mercury.

mark-zs commented 6 months ago

I am trying now running in the directory where mercury is located /opt/homebrew/bin/mercury but same issue. Not sure what you mean about creating any notebook, I don't have expertise in Jupyter. I tried placing a random .ipynb in the directory but that probably isn't what you meant and it didn't work.

On Mon, 5 Feb 2024 at 10:10, Piotr @.***> wrote:

Hi @mark-zs https://github.com/mark-zs,

based on your logs it looks like you are starting mercury in the directory without *.ipynb files, please try to create any notebook in the directory and restart mercury.

— Reply to this email directly, view it on GitHub https://github.com/mljar/automl-app/issues/1#issuecomment-1926426049, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO5ED63GELYOQYCFGPIIKC3YSCHXDAVCNFSM6AAAAABCNQR4AKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRWGQZDMMBUHE . You are receiving this because you were mentioned.Message ID: @.***>

pplonski commented 6 months ago

Please try to run mercury run demo command, it will create example notebooks for you. Please run ls command in your directory before and after this command. Let's check what we have in there. This command should also automatically start mercury server for you.

Don't worry about expertise in Jupyter ... we are working on something totally new for writing code in notebooks (and it is not AI based).

mark-zs commented 6 months ago

Here you go

On Tue, 6 Feb 2024 at 14:29, Piotr @.***> wrote:

Please try to run mercury run demo command, it will create example notebooks for you. Please run ls command in your directory before and after this command. Let's check what we have in there. This command should also automatically start mercury server for you.

Don't worry about expertise in Jupyter ... we are working on something totally new for writing code in notebooks (and it is not AI based).

— Reply to this email directly, view it on GitHub https://github.com/mljar/automl-app/issues/1#issuecomment-1929426252, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO5ED62SSFNK6YRLU5NTQS3YSIO2PAVCNFSM6AAAAABCNQR4AKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRZGQZDMMRVGI . You are receiving this because you were mentioned.Message ID: @.***>

2to3 2to3-3.11 pycache alembic automat-visualize autopoint brew c_rehash celery celery.sqlite celerybeat-schedule.db cftp ckeygen conch daphne django-admin django-errors.log dotenv envsubst exec_nb f2py fonttools gettext gettext.sh gettextize idle3 idle3.11 idn2 ipython ipython3 jlpm jp.py jsonpointer jsonschema jupyter jupyter-console jupyter-dejavu jupyter-events jupyter-execute jupyter-kernel jupyter-kernelspec jupyter-lab jupyter-labextension jupyter-labhub jupyter-migrate jupyter-nbconvert jupyter-notebook jupyter-qtconsole jupyter-run jupyter-server jupyter-troubleshoot jupyter-trust ls.before.txt lzcat lzcmp lzdiff lzegrep lzfgrep lzgrep lzless lzma lzmadec lzmainfo lzmore mailmail mako-render markdown_py md5sum mercury msgattrib msgcat msgcmp msgcomm msgconv msgen msgexec msgfilter msgfmt msggrep msginit msgmerge msgunfmt msguniq ngettext normalizer notebooks.ipynb numba openssl optuna pip pip3 pip3.11 py.test pybabel pydoc3 pydoc3.11 pyftmerge pyftsubset pygmentize pyhtmlizer pyjson5 pyppeteer-install pytest python3 python3-config python3.11 python3.11-config qtpy recode-sr-latin ripemd160sum send2trash sha1sum shortuuid sqlformat tabulate tkconch tqdm trial ttx twist twistd unlzma unxz wamp wget wheel3 wheel3.11 wordcloud_cli wsdump xbrnetwork xbrnetwork-ui xgettext xz xzcat xzcmp xzdec xzdiff xzegrep xzfgrep xzgrep xzless xzmore

2to3 2to3-3.11 pycache alembic automat-visualize autopoint brew c_rehash celery celery.sqlite celerybeat-schedule.db cftp ckeygen conch daphne demo-dataframe-and-plots.ipynb demo-slides.ipynb demo.ipynb django-admin django-errors.log dotenv envsubst exec_nb f2py fonttools gettext gettext.sh gettextize idle3 idle3.11 idn2 ipython ipython3 jlpm jp.py jsonpointer jsonschema jupyter jupyter-console jupyter-dejavu jupyter-events jupyter-execute jupyter-kernel jupyter-kernelspec jupyter-lab jupyter-labextension jupyter-labhub jupyter-migrate jupyter-nbconvert jupyter-notebook jupyter-qtconsole jupyter-run jupyter-server jupyter-troubleshoot jupyter-trust ls.after.txt ls.before.txt lzcat lzcmp lzdiff lzegrep lzfgrep lzgrep lzless lzma lzmadec lzmainfo lzmore mailmail mako-render markdown_py md5sum mercury msgattrib msgcat msgcmp msgcomm msgconv msgen msgexec msgfilter msgfmt msggrep msginit msgmerge msgunfmt msguniq ngettext normalizer notebooks.ipynb numba openssl optuna pip pip3 pip3.11 py.test pybabel pydoc3 pydoc3.11 pyftmerge pyftsubset pygmentize pyhtmlizer pyjson5 pyppeteer-install pytest python3 python3-config python3.11 python3.11-config qtpy recode-sr-latin ripemd160sum send2trash sha1sum shortuuid sqlformat tabulate tkconch tqdm trial ttx twist twistd unlzma unxz wamp welcome.md wget wheel3 wheel3.11 wordcloud_cli wsdump xbrnetwork xbrnetwork-ui xgettext xz xzcat xzcmp xzdec xzdiff xzegrep xzfgrep xzgrep xzless xzmore

pplonski commented 6 months ago

OK, what about running demo command? Maybe please try to run demo command on some different location, other than homebrew directory.

mark-zs commented 6 months ago

Yes I ran: mercury run demo. I sent you the ls before and after but it didn't help.

On Tue, Feb 6, 2024, 15:03 Piotr @.***> wrote:

OK, what about running demo command?

— Reply to this email directly, view it on GitHub https://github.com/mljar/automl-app/issues/1#issuecomment-1929493004, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO5ED672FJAA2OUZ3XJD33TYSIS3ZAVCNFSM6AAAAABCNQR4AKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRZGQ4TGMBQGQ . You are receiving this because you were mentioned.Message ID: @.***>

pplonski commented 6 months ago

OK, please try to run mercury run demo in your home directory. Probably you don't have permission to write in home-brew directory.

mark-zs commented 6 months ago

Now I get something resembling the old problem again, output attached

On Tue, 6 Feb 2024 at 15:39, Piotr @.***> wrote:

OK, please try to run mercury run demo in your home directory. Probably you don't have permission to write in home-brew directory.

— Reply to this email directly, view it on GitHub https://github.com/mljar/automl-app/issues/1#issuecomment-1929647851, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO5ED63Y5KRXZTZ423FZUQLYSIXCJAVCNFSM6AAAAABCNQR4AKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRZGY2DOOBVGE . You are receiving this because you were mentioned.Message ID: @.***>

 _ __ ___   ___ _ __ ___ _   _ _ __ _   _ 
| '_ ` _ \ / _ \ '__/ __| | | | '__| | | |
| | | | | |  __/ | | (__| |_| | |  | |_| |
|_| |_| |_|\___|_|  \___|\__,_|_|   \__, |
                                     __/ |
                                    |___/ 

Version: 2.3.7 Initialize demo-dataframe-and-plots.ipynb Error during notebook initialization. No template sub-directory with name 'lab' found in the following paths: /Users/zvi/Library/Jupyter /Users/zvi/Library/Python/3.11/share/jupyter @.***/Frameworks/Python.framework/Versions/3.11/share/jupyter /usr/local/share/jupyter /usr/share/jupyter Traceback (most recent call last): File "/opt/homebrew/lib/python3.11/site-packages/traitlets/traitlets.py", line 632, in get value = obj._trait_values[self.name]


KeyError: 'template_paths'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/homebrew/lib/python3.11/site-packages/mercury/apps/notebooks/tasks.py", line 172, in task_init_notebook
    exporter = Exporter(
               ^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/mercury/apps/nb/exporter.py", line 21, in __init__
    self.set_exporter()
  File "/opt/homebrew/lib/python3.11/site-packages/mercury/apps/nb/exporter.py", line 29, in set_exporter
    self.html_exporter = HTMLExporter(template_name="lab")
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/nbconvert/exporters/templateexporter.py", line 353, in __init__
    super().__init__(config=config, **kw)
  File "/opt/homebrew/lib/python3.11/site-packages/nbconvert/exporters/exporter.py", line 123, in __init__
    self._init_preprocessors()
  File "/opt/homebrew/lib/python3.11/site-packages/nbconvert/exporters/templateexporter.py", line 537, in _init_preprocessors
    conf = self._get_conf()
           ^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/nbconvert/exporters/templateexporter.py", line 555, in _get_conf
    for path in map(Path, self.template_paths):
                          ^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/traitlets/traitlets.py", line 687, in __get__
    return t.cast(G, self.get(obj, cls))  # the G should encode the Optional
                     ^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/traitlets/traitlets.py", line 635, in get
    default = obj.trait_defaults(self.name)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/traitlets/traitlets.py", line 1897, in trait_defaults
    return t.cast(Sentinel, self._get_trait_default_generator(names[0])(self))
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/traitlets/traitlets.py", line 1241, in __call__
    return self.func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/nbconvert/exporters/templateexporter.py", line 566, in _template_paths
    template_names = self.get_template_names()
                     ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/nbconvert/exporters/templateexporter.py", line 653, in get_template_names
    raise ValueError(msg)
ValueError: No template sub-directory with name 'lab' found in the following paths:
    /Users/zvi/Library/Jupyter
    /Users/zvi/Library/Python/3.11/share/jupyter
    ***@***.***/Frameworks/Python.framework/Versions/3.11/share/jupyter
    /usr/local/share/jupyter
    /usr/share/jupyter

Successfully added a notebook (id:None)
Initialize demo.ipynb
Error during notebook initialization. No template sub-directory with name 'lab' found in the following paths:
    /Users/zvi/Library/Jupyter
    /Users/zvi/Library/Python/3.11/share/jupyter
    ***@***.***/Frameworks/Python.framework/Versions/3.11/share/jupyter
    /usr/local/share/jupyter
    /usr/share/jupyter
Traceback (most recent call last):
  File "/opt/homebrew/lib/python3.11/site-packages/traitlets/traitlets.py", line 632, in get
    value = obj._trait_values[self.name]
            ~~~~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'template_paths'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/homebrew/lib/python3.11/site-packages/mercury/apps/notebooks/tasks.py", line 172, in task_init_notebook
    exporter = Exporter(
               ^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/mercury/apps/nb/exporter.py", line 21, in __init__
    self.set_exporter()
  File "/opt/homebrew/lib/python3.11/site-packages/mercury/apps/nb/exporter.py", line 29, in set_exporter
    self.html_exporter = HTMLExporter(template_name="lab")
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/nbconvert/exporters/templateexporter.py", line 353, in __init__
    super().__init__(config=config, **kw)
  File "/opt/homebrew/lib/python3.11/site-packages/nbconvert/exporters/exporter.py", line 123, in __init__
    self._init_preprocessors()
  File "/opt/homebrew/lib/python3.11/site-packages/nbconvert/exporters/templateexporter.py", line 537, in _init_preprocessors
    conf = self._get_conf()
           ^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/nbconvert/exporters/templateexporter.py", line 555, in _get_conf
    for path in map(Path, self.template_paths):
                          ^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/traitlets/traitlets.py", line 687, in __get__
    return t.cast(G, self.get(obj, cls))  # the G should encode the Optional
                     ^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/traitlets/traitlets.py", line 635, in get
    default = obj.trait_defaults(self.name)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/traitlets/traitlets.py", line 1897, in trait_defaults
    return t.cast(Sentinel, self._get_trait_default_generator(names[0])(self))
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/traitlets/traitlets.py", line 1241, in __call__
    return self.func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/nbconvert/exporters/templateexporter.py", line 566, in _template_paths
    template_names = self.get_template_names()
                     ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/nbconvert/exporters/templateexporter.py", line 653, in get_template_names
    raise ValueError(msg)
ValueError: No template sub-directory with name 'lab' found in the following paths:
    /Users/zvi/Library/Jupyter
    /Users/zvi/Library/Python/3.11/share/jupyter
    ***@***.***/Frameworks/Python.framework/Versions/3.11/share/jupyter
    /usr/local/share/jupyter
    /usr/share/jupyter

Successfully added a notebook (id:None)
Initialize demo-slides.ipynb
Error during notebook initialization. No template sub-directory with name 'reveal' found in the following paths:
    /Users/zvi/Library/Jupyter
    /Users/zvi/Library/Python/3.11/share/jupyter
    ***@***.***/Frameworks/Python.framework/Versions/3.11/share/jupyter
    /usr/local/share/jupyter
    /usr/share/jupyter
Traceback (most recent call last):
  File "/opt/homebrew/lib/python3.11/site-packages/traitlets/traitlets.py", line 632, in get
    value = obj._trait_values[self.name]
            ~~~~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'template_paths'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/homebrew/lib/python3.11/site-packages/mercury/apps/notebooks/tasks.py", line 172, in task_init_notebook
    exporter = Exporter(
               ^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/mercury/apps/nb/exporter.py", line 21, in __init__
    self.set_exporter()
  File "/opt/homebrew/lib/python3.11/site-packages/mercury/apps/nb/exporter.py", line 25, in set_exporter
    self.html_exporter = SlidesExporter(
                         ^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/nbconvert/exporters/templateexporter.py", line 353, in __init__
    super().__init__(config=config, **kw)
  File "/opt/homebrew/lib/python3.11/site-packages/nbconvert/exporters/exporter.py", line 123, in __init__
    self._init_preprocessors()
  File "/opt/homebrew/lib/python3.11/site-packages/nbconvert/exporters/templateexporter.py", line 537, in _init_preprocessors
    conf = self._get_conf()
           ^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/nbconvert/exporters/templateexporter.py", line 555, in _get_conf
    for path in map(Path, self.template_paths):
                          ^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/traitlets/traitlets.py", line 687, in __get__
    return t.cast(G, self.get(obj, cls))  # the G should encode the Optional
                     ^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/traitlets/traitlets.py", line 635, in get
    default = obj.trait_defaults(self.name)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/traitlets/traitlets.py", line 1897, in trait_defaults
    return t.cast(Sentinel, self._get_trait_default_generator(names[0])(self))
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/traitlets/traitlets.py", line 1241, in __call__
    return self.func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/nbconvert/exporters/templateexporter.py", line 566, in _template_paths
    template_names = self.get_template_names()
                     ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/nbconvert/exporters/templateexporter.py", line 653, in get_template_names
    raise ValueError(msg)
ValueError: No template sub-directory with name 'reveal' found in the following paths:
    /Users/zvi/Library/Jupyter
    /Users/zvi/Library/Python/3.11/share/jupyter
    ***@***.***/Frameworks/Python.framework/Versions/3.11/share/jupyter
    /usr/local/share/jupyter
    /usr/share/jupyter

Successfully added a notebook (id:None)
Performing system checks...

System check identified no issues (0 silenced).
February 06, 2024 - 14:06:31
Django version 4.2.2, using settings 'server.settings'
Starting ASGI/Daphne version 4.0.0 development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
pplonski commented 6 months ago

OK, let's start again - you might have an issue because you installed mercury with homebrew.

Please create empty python environment.

python3 -m venv venv

Then let's activate it:

source venv/bin/activate

Please install packages:

pip install jupyter mercury

Please run demo

mercury run demo
mark-zs commented 6 months ago

Thanks but no same issue...

Version: 2.3.7

Initialize demo-dataframe-and-plots.ipynb

Error during notebook initialization. No template sub-directory with name 'lab' found in the following paths:

/Users/zvi/Library/Jupyter

/Users/zvi/Library/Python/3.11/share/jupyter

@.*** /Frameworks/Python.framework/Versions/3.11/share/jupyter

/usr/local/share/jupyter

/usr/share/jupyter

Traceback (most recent call last):

File "/opt/homebrew/lib/python3.11/site-packages/traitlets/traitlets.py", line 632, in get

value = obj._trait_values[self.name]

        ~~~~~~~~~~~~~~~~~^^^^^^^^^^^

KeyError: 'template_paths'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/opt/homebrew/lib/python3.11/site-packages/mercury/apps/notebooks/tasks.py", line 172, in task_init_notebook

exporter = Exporter(

           ^^^^^^^^^

File "/opt/homebrew/lib/python3.11/site-packages/mercury/apps/nb/exporter.py", line 21, in init

self.set_exporter()

File "/opt/homebrew/lib/python3.11/site-packages/mercury/apps/nb/exporter.py", line 29, in set_exporter

self.html_exporter = HTMLExporter(template_name="lab")

                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

....

On Tue, 6 Feb 2024 at 16:17, Piotr @.***> wrote:

OK, let's start again - you might have an issue because you installed mercury with homebrew.

Please create empty python environment.

python3 -m venv venv

Then let's activate it:

source venv/bin/activate

Please install packages:

pip install jupyter mercury

Please run demo

mercury run demo

— Reply to this email directly, view it on GitHub https://github.com/mljar/automl-app/issues/1#issuecomment-1929779706, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO5ED62JQNOK627L7PO2KGLYSI3OFAVCNFSM6AAAAABCNQR4AKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRZG43TSNZQGY . You are receiving this because you were mentioned.Message ID: @.***>

mark-zs commented 6 months ago

Any other ideas please?

On Tue, 6 Feb 2024 at 16:36, Zvi Schreiber @.***> wrote:

Thanks but no same issue...

Version: 2.3.7

Initialize demo-dataframe-and-plots.ipynb

Error during notebook initialization. No template sub-directory with name 'lab' found in the following paths:

/Users/zvi/Library/Jupyter

/Users/zvi/Library/Python/3.11/share/jupyter

@.*** /Frameworks/Python.framework/Versions/3.11/share/jupyter

/usr/local/share/jupyter

/usr/share/jupyter

Traceback (most recent call last):

File "/opt/homebrew/lib/python3.11/site-packages/traitlets/traitlets.py", line 632, in get

value = obj._trait_values[self.name]

        ~~~~~~~~~~~~~~~~~^^^^^^^^^^^

KeyError: 'template_paths'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/opt/homebrew/lib/python3.11/site-packages/mercury/apps/notebooks/tasks.py", line 172, in task_init_notebook

exporter = Exporter(

           ^^^^^^^^^

File "/opt/homebrew/lib/python3.11/site-packages/mercury/apps/nb/exporter.py", line 21, in init

self.set_exporter()

File "/opt/homebrew/lib/python3.11/site-packages/mercury/apps/nb/exporter.py", line 29, in set_exporter

self.html_exporter = HTMLExporter(template_name="lab")

                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

....

On Tue, 6 Feb 2024 at 16:17, Piotr @.***> wrote:

OK, let's start again - you might have an issue because you installed mercury with homebrew.

Please create empty python environment.

python3 -m venv venv

Then let's activate it:

source venv/bin/activate

Please install packages:

pip install jupyter mercury

Please run demo

mercury run demo

— Reply to this email directly, view it on GitHub https://github.com/mljar/automl-app/issues/1#issuecomment-1929779706, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO5ED62JQNOK627L7PO2KGLYSI3OFAVCNFSM6AAAAABCNQR4AKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRZG43TSNZQGY . You are receiving this because you were mentioned.Message ID: @.***>

pplonski commented 6 months ago

Please try to uninstall Jupyter from brew, and then please try to install it with pip.

mark-zs commented 6 months ago

Thanks but now I get this:

Traceback (most recent call last):

File "/opt/homebrew/lib/python3.11/site-packages/traitlets/traitlets.py", line 632, in get

value = obj._trait_values[self.name]

        ~~~~~~~~~~~~~~~~~^^^^^^^^^^^

KeyError: 'template_paths'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/opt/homebrew/lib/python3.11/site-packages/mercury/apps/notebooks/tasks.py", line 172, in task_init_notebook

exporter = Exporter(

           ^^^^^^^^^

File "/opt/homebrew/lib/python3.11/site-packages/mercury/apps/nb/exporter.py", line 21, in init

self.set_exporter()

File "/opt/homebrew/lib/python3.11/site-packages/mercury/apps/nb/exporter.py", line 29, in set_exporter

self.html_exporter = HTMLExporter(template_name="lab")

                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

On Mon, 12 Feb 2024 at 09:56, Piotr @.***> wrote:

Please try to uninstall Jupyter from brew, and then please try to install it with pip.

— Reply to this email directly, view it on GitHub https://github.com/mljar/automl-app/issues/1#issuecomment-1938192188, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO5ED6652EAFGO5ZCSSBJB3YTHDMDAVCNFSM6AAAAABCNQR4AKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZYGE4TEMJYHA . You are receiving this because you were mentioned.Message ID: @.***>

pplonski commented 6 months ago

Can you uninstall python from brew, here you have some tips https://discourse.jupyter.org/t/nbconvert-6-0-7-yields-valueerror-for-all-to-values-other-than-notebook/8166/2

mark-zs commented 6 months ago

Hmm no I still get

Error during notebook initialization. No template sub-directory with name 'lab'

On Thu, 15 Feb 2024 at 11:51, Piotr @.***> wrote:

Can you uninstall python from brew, here you have some tips https://discourse.jupyter.org/t/nbconvert-6-0-7-yields-valueerror-for-all-to-values-other-than-notebook/8166/2

— Reply to this email directly, view it on GitHub https://github.com/mljar/automl-app/issues/1#issuecomment-1945838536, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO5ED63BE4BAOMLOBDRGZCTYTXSEDAVCNFSM6AAAAABCNQR4AKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBVHAZTQNJTGY . You are receiving this because you were mentioned.Message ID: @.***>

mark-zs commented 5 months ago

Well I never got it working but now I have a brand new Mac I tried again. This time it works but there were a number of extra steps that were not obvious to a complete novice - you might like to automate them or at least document them. Thanks!

Firstly I needed this trick https://discuss.python.org/t/getting-requirements-to-build-wheel-did-not-run-successfully-exit-code-1/30365 so: echo "Cython<3" > cython_constraint.txt PIP_CONSTRAINT=cython_constraint.txt pip install mercury

Then: pip install jupyter pip install pandas
pip install matplotlib mercury run demo

After that it runs fine

pplonski commented 5 months ago

Thank you @mark-zs for information, I'm glad that you fixed it. We are working on solution that will solve the problem of package installation / management. Soon we will release our notebook based solution for creating Python programs - everyone will be able to create Python scripts. We automatically detect which packages are missing in your environment and allow to install them with button click, see screenshot below

image