patlevin / tfjs-to-tf

A TensorFlow.js Graph Model Converter
MIT License
139 stars 18 forks source link

docker #22

Closed morozovsk closed 4 years ago

morozovsk commented 4 years ago

It would be nice to have docker file. So it would be easier to try your library.

I use last version of ubuntu 20.04 and I tried python setup.py and python3 setup.py but I have errors like this: File "setup.py", line 2 SyntaxError: Non-ASCII character '\xc2' in file setup.py on line 2, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

and this:

Traceback (most recent call last): File "setup.py", line 4, in <module> import setuptools ModuleNotFoundError: No module named 'setuptools'

So I can't easy reproduce your results. If I would have docker file like this I could.

patlevin commented 4 years ago

You can just install the package using pip if you experience problems.

Edit: Using setup.py directly is really just intended for building distribution packages. If you just want to use this package, the recommended way is to install it from PyPi: pip install tfjs-graph-converter

morozovsk commented 4 years ago

Thanks. It helped a lot.

patlevin commented 4 years ago

@morozovsk Just in case you might still find it useful, I've added a working (but not particularly optimised) docker file for the latest builds. You can find it here.