Giter Club home page Giter Club logo

kernelpipes's People

Contributors

davidmezzetti avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

kernelpipes's Issues

Add step to retrieve kernel output

Add a step that can download kernel output locally.

Format:

output: /path/to/kernel

This would download kernel output files to the pipeline configuration directory

Add step for checking dataset status

For jobs that should only be run upon an updated version of a dataset, a step that queries the Kaggle API and checks the version/lastUpdated date would enable this. This functionality would compare the latest version number against a cached prior version number and only continue processing if the version changed.

UnicodeEncodeError: 'charmap' codec can't encode character '\u2e38'

It triggered, but failed - looks like an issue with a Unicode character. Perhaps I'm missing a requirement?

Same python env - 3.8.2, Windows embedded 64-bit.

2020-06-07 17:00:01,690 [INFO] kernel    : Running Kernel: mikehoney/ai-powered-literature-review-with-submissions
Traceback (most recent call last):
  File "runpy.py", line 193, in _run_module_as_main
  File "runpy.py", line 86, in _run_code
  File "D:\Users\mikeh\Documents\python\Scripts\kernelpipes.exe\__main__.py", line 7, in <module>
  File "d:\users\mikeh\documents\python\lib\site-packages\kernelpipes\pipeline.py", line 116, in main
    Pipeline.run(sys.argv[1])
  File "d:\users\mikeh\documents\python\lib\site-packages\kernelpipes\pipeline.py", line 105, in run
    Pipeline.schedule(directory, pipeline)
  File "d:\users\mikeh\documents\python\lib\site-packages\kernelpipes\pipeline.py", line 76, in schedule
    Pipeline.execute(directory, pipeline)
  File "d:\users\mikeh\documents\python\lib\site-packages\kernelpipes\pipeline.py", line 45, in execute
    Kernel(directory, step["kernel"])()
  File "d:\users\mikeh\documents\python\lib\site-packages\kernelpipes\steps\step.py", line 20, in __call__
    return self.run()
  File "d:\users\mikeh\documents\python\lib\site-packages\kernelpipes\steps\kernel.py", line 39, in run
    kaggle.api.kernels_pull(self.kernel, path, True, False)
  File "d:\users\mikeh\documents\python\lib\site-packages\kaggle\api\kaggle_api_extended.py", line 2018, in kernels_pull
    f.write(blob['source'])
  File "encodings\cp1252.py", line 19, in encode
UnicodeEncodeError: 'charmap' codec can't encode character '\u2e38' in position 9963: character maps to <undefined>

pip install error

Hi David. I'm very excited to try this project - thanks for posting it.

I'm trying to install it on a Windows VM I'm using for the CORD-19 project, but the "pip install ." is failing. I'm running python 3.8.2 embedded.

Any ideas?

D:\Users\mikeh\Documents\kernelpipes>pip install .
Processing d:\users\mikeh\documents\kernelpipes
    ERROR: Command errored out with exit status 1:
     command: 'd:\users\mikeh\documents\python\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'D:\\Users\\mikeh\\AppData\\Local\\Temp\\1\\pip-req-build-p_2nikk5\\setup.py'"'"'; __file__='"'"'D:\\Users\\mikeh\\AppData\\Local\\Temp\\1\\pip-req-build-p_2nikk5\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'D:\Users\mikeh\AppData\Local\Temp\1\pip-pip-egg-info-bg1dwtem'
         cwd: D:\Users\mikeh\AppData\Local\Temp\1\pip-req-build-p_2nikk5\
    Complete output (8 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "D:\Users\mikeh\AppData\Local\Temp\1\pip-req-build-p_2nikk5\setup.py", line 20, in <module>
        packages=find_packages(where="src/python/"),
      File "d:\users\mikeh\documents\python\lib\site-packages\setuptools\__init__.py", line 70, in find
        convert_path(where),
      File "distutils\util.py", line 124, in convert_path
    ValueError: path 'src/python/' cannot end with '/'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Add scheduler

System cron is one way to enable running a pipeline at a recurring frequency and works well for many instances. One issue that arises is that cron will kick off regardless if a prior instance is running.

Having a scheduler enabled inline would allow only executing a new instance if the prior instance completed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.