anuragranj/coma

pip install -r requirements.txt, issue with tensorflow

lukkio88 opened this issue ยท 13 comments

Hi, when I try to run

pip install -r requirements.txt

I get the error:

No matching distribution found for tensorflow-gpu==1.3.0 (from -r requirements.txt (line 7))

However I've already installed tensorflow and tensorflow gpu, I can spot what the issue is.
I've tried to hack your requirement file (essentially just removing the version) it still doesn't work.

Can you help?

If tensorflow is already installed, then you just remove the tensorflow-gpu==1.3.0 from the requirements.txt, install the other dependencies, and then try to run the code.

In that case at some point I come across:

Failed building wheel for opendr

Some other stuff goes through, but I end up with:

Command "/home/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-7le0ae6k/opendr/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-31er561u/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-7le0ae6k/opendr/

Could you try installing opendr from here and check?
https://github.com/mattloper/opendr

Let me try, I'll get back to you

There's no guide on how to install it. I've tried the pip install -r requirements.txt but I'm getting:

Obtaining file:///home/Projects/opendr (from -r requirements.txt (line 2))
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/home/Projects/opendr/setup.py", line 152, in <module>
        main()
      File "/home/Projects/opendr/setup.py", line 141, in main
        download_osmesa()
      File "/home/Projects/opendr/setup.py", line 43, in download_osmesa
        wget('http://files.is.tue.mpg.de/mloper/opendr/osmesa/%s' % (osmesa_fname,), dest_fname=zip_fname)
      File "/home/Projects/opendr/opendr/utils.py", line 37, in wget
        open(dest_fname, 'w').write(contents)
    TypeError: write() argument must be str, not bytes
    Downloading OSMesa.Linux.x86_64.zip
    http://files.is.tue.mpg.de/mloper/opendr/osmesa/OSMesa.Linux.x86_64.zip
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /home/Projects/opendr/

Are you using python2.7 or python3?

python3

Oh, so opendr doesnt support python3, same for MPI-IS/mesh. I think it would be more convenient if you use python2.7. MPI-IS/mesh is expected to be python3 friendly in future, and we will update the code when dependencies start support python3 as well.

There is an unofficial opendr (https://github.com/polmorenoc/opendr) port for Python 3 and I'm working on porting the mesh lib...
It's definitely more work but sooner or later it has to be done.

Thanks @Dawars . Could you send the pull request to mesh lib once the port is complete?

@lukkio88 hello lukkio did you resolve the opendr issue?

My apologies for the late reply. No, I didn't manage. But I would be very happy if I could manage.

Hi, I use python2.7 for this project and I installed opendr, but I cannot install MPI/Mesh. I found the mesh package requires python3.5+ right now and maybe that is why I cannot compile it . How could I install mesh in python2.7? Looking forward for your reply.