Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install -r requirements.txt, issue with tensorflow #13

Open
lukkio88 opened this issue Apr 10, 2019 · 13 comments
Open

pip install -r requirements.txt, issue with tensorflow #13

lukkio88 opened this issue Apr 10, 2019 · 13 comments

Comments

@lukkio88
Copy link

lukkio88 commented Apr 10, 2019

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?

@anuragranj
Copy link
Owner

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.

@lukkio88
Copy link
Author

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/

@anuragranj
Copy link
Owner

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

@lukkio88
Copy link
Author

Let me try, I'll get back to you

@lukkio88
Copy link
Author

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/

@anuragranj
Copy link
Owner

Are you using python2.7 or python3?

@lukkio88
Copy link
Author

python3

@anuragranj
Copy link
Owner

anuragranj commented Apr 11, 2019

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.

@Dawars
Copy link

Dawars commented Apr 20, 2019

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.

@anuragranj
Copy link
Owner

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

@eng100200
Copy link

@lukkio88 hello lukkio did you resolve the opendr issue?

@lukkio88
Copy link
Author

lukkio88 commented Jul 15, 2019

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

@redredbluee
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants