damnever / pigar

:coffee: A tool to generate requirements.txt for Python project, and more than that. (IT IS NOT A PACKAGE MANAGEMENT TOOL)

Home Page:https://damnever.github.io/pigar/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Notebooks error with %%capture

alik604 opened this issue · comments

@damnever thank you for adding notebook support.

I have the latest version, I got the following errors.

18:10:41 parse HIDDEN\All actions.ipynb:1 failed: SyntaxError('invalid syntax', ('<unknown>', 1, 1, '%%capture\n'))
18:10:41 parse HIDDEN\All audit.ipynb:1 failed: SyntaxError('invalid syntax', ('<unknown>', 1, 1, '%%capture\n'))
18:10:41 parse HIDDEN\arrhythmia - Why Autoencoder dimensionality reduction can be better.ipynb:1 failed: SyntaxError('invalid syntax', ('<unknown>', 1, 1, '%%capture\n'))
18:10:41 parse HIDDEN\arrhythmia.ipynb:1 failed: SyntaxError('invalid syntax', ('<unknown>', 1, 1, '%%capture\n'))
18:10:41 parse HIDDEN\Run AD.ipynb:1 failed: SyntaxError('invalid syntax', ('<unknown>', 437, 1, '%%capture\n'))
18:10:41 parse HIDDEN\.ipynb_checkpoints\All actions-checkpoint-checkpoint.ipynb:1 failed: SyntaxError('invalid syntax', ('<unknown>', 1, 1, '%%capture\n'))
18:10:41 parse HIDDEN\.ipynb_checkpoints\All actions-checkpoint.ipynb:1 failed: SyntaxError('invalid syntax', ('<unknown>', 1, 1, '%%capture\n'))
18:10:41 parse HIDDEN\.ipynb_checkpoints\All audit-checkpoint.ipynb:1 failed: SyntaxError('invalid syntax', ('<unknown>', 1, 1, '%%capture\n'))
18:10:41 parse HIDDEN\.ipynb_checkpoints\arrhythmia - Why Autoencoder dimensionality reduction can be better-checkpoint.ipynb:1 failed: SyntaxError('invalid syntax', ('<unknown>', 1, 1, '%%capture\n'))
18:10:41 parse HIDDEN\.ipynb_checkpoints\arrhythmia-checkpoint.ipynb:1 failed: SyntaxError('invalid syntax', ('<unknown>', 1, 1, '%%capture\n'))
18:10:41 parse HIDDEN\.ipynb_checkpoints\Run AD-checkpoint-checkpoint.ipynb:1 failed: SyntaxError('invalid syntax', ('<unknown>', 437, 1, '%%capture\n'))
18:10:41 parse HIDDEN\.ipynb_checkpoints\Run AD-checkpoint.ipynb:1 failed: SyntaxError('invalid syntax', ('<unknown>', 437, 1, '%%capture\n'))
The following modules are not found yet:
  som_anomaly_detector referenced from:
    HIDDEN\som-anomaly-detector\examples\example.py: 4
    HIDDEN\som-anomaly-detector\som_anomaly_detector\AnomalyDetection.py: 4
Some of them may be not installed in local environment.
Try to search PyPI for the missing modules and filter some unnecessary modules? (y/[N]) y
Checking modules on the PyPI...
Writing requirements to "HIDDEN\requirements.txt"

these errors aren't horrible, ill just remove the offending code.

also maybe the dir .ipynb_checkpoints should be blacklisted, but that doesn't really matter except for clean error logs.

I'll take a look at the pigar source and maybe I can submit a fix :)
(amusingly, pigar failed on all notebooks.)

I'll take a look at the pigar source and maybe I can submit a fix :)

This will be great, thanks! 👍

I'm going to leave this on my todo list. So far I've horrible failed 🙈

your welcome to close this, this issue isn't use case breaking

😄 Feel free to reopen it.