Coder Social home page Coder Social logo

datatorch / python Goto Github PK

View Code? Open in Web Editor NEW
10.0 1.0 6.0 322 KB

:snake: Python/CLI library for interacting with DataTorch programmatically

Home Page: https://docs.datatorch.io/python

Python 99.94% Dockerfile 0.06%
deep-learning machine-learning reinforcement-learning annotation-tool datasets datatorch

python's Introduction

DataTorch Python

DataTorch CLI and Python API libary for programmatic access.

Package Version Python Versions Build Status

Installation

Note: Newer versions (>=0.4.8.2) of DataTorch client use libmagic for more accurate mimetype guessing. This falls back to guessing via extension. Consider installing libmagic if you have issues with file types uploaded to DataTorch.

pip install datatorch

Development

python3 -m pip install --editable .
pip3 install -r requirements.txt

VSCode Configuration

Formatter

Open your VSCode settings, by going Code -> Preferences -> Settings. Search for "python formatting provider" and select "black" from the dropdown menu.

python's People

Contributors

2-am-zzz avatar aoxolotl avatar jsbroks avatar jywu-hiphen avatar ninthreezy avatar skywalkerisnull avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

python's Issues

fresh install of latest release does not work with python 3.9

to reproduce:

pip install datatorch

then

dt

results in this error

# rave at rave-desktop in ~/datatorch on git:master ✖︎ [12:07:45]datatorch
Traceback (most recent call last):
  File "/home/rave/miniconda3/envs/datatorchtest/bin/datatorch", line 5, in <module>
    from datatorch.cli import main
  File "/home/rave/miniconda3/envs/datatorchtest/lib/python3.9/site-packages/datatorch/__init__.py", line 4, in <module>
    from datatorch.api import ApiClient
  File "/home/rave/miniconda3/envs/datatorchtest/lib/python3.9/site-packages/datatorch/api/__init__.py", line 1, in <module>
    from .api import ApiClient
  File "/home/rave/miniconda3/envs/datatorchtest/lib/python3.9/site-packages/datatorch/api/api.py", line 7, in <module>
    from .client import Client
  File "/home/rave/miniconda3/envs/datatorchtest/lib/python3.9/site-packages/datatorch/api/client.py", line 5, in <module>
    from gql.transport.websockets import WebsocketsTransport
  File "/home/rave/miniconda3/envs/datatorchtest/lib/python3.9/site-packages/gql/transport/websockets.py", line 11, in <module>
    from websockets.http import HeadersLike
ImportError: cannot import name 'HeadersLike' from 'websockets.http' (/home/rave/miniconda3/envs/datatorchtest/lib/python3.9/site-packages/websockets/http.py)
(datatorchtest) 

I ran this in a fresh python environment with python 3.9

NotImplementedError - sys:1: RuntimeWarning: coroutine 'stop' was never awaited

New conda environment on Windows 10 64bit, Python-3.8.5 with the following requirements.txt:

numpy>=1.15.2
scipy>=1.1.0
scikit-learn>=0.20.0
scikit-image>=0.14.1
opencv-python
pylint
rope
datatorch
datatorch[agent]

And the following error:

datatorch agent start
Traceback (most recent call last):
  File "c:\users\user\anaconda3\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\users\user\anaconda3\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\user\Anaconda3\Scripts\datatorch.exe\__main__.py", line 7, in <module>
  File "c:\users\user\anaconda3\lib\site-packages\click\core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "c:\users\user\anaconda3\lib\site-packages\click\core.py", line 782, in main
    rv = self.invoke(ctx)
  File "c:\users\user\anaconda3\lib\site-packages\click\core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "c:\users\user\anaconda3\lib\site-packages\click\core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "c:\users\user\anaconda3\lib\site-packages\click\core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "c:\users\user\anaconda3\lib\site-packages\click\core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "c:\users\user\anaconda3\lib\site-packages\datatorch\cli\agent\start.py", line 16, in start
    loop.add_signal_handler(SIGINT, exit_func)
  File "c:\users\user\anaconda3\lib\asyncio\events.py", line 540, in add_signal_handler
    raise NotImplementedError
NotImplementedError
sys:1: RuntimeWarning: coroutine 'stop' was never awaited

image

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.