-
Notifications
You must be signed in to change notification settings - Fork 69
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
Extra instructions for Ubuntu #4
Comments
Caveat: I haven't gone further than getting it to run without crashing, so there may turn out to be further steps necessary to get it fully working. |
Thanks for the instructions, @eggsyntax! I was having errors such as This got me further, but now I'm having errors with matplotlib:
Any ideas what would cause that? |
Note that in the above instructions |
Using the above instructions I was successfully able to set up the virtual environment on a clean Ubuntu 18.04 VM. However, now when I try to run I am encountering a ModuleNotFoundError about numpy.core._multiarray_umath. Searching for the error, I found some info but I wasn't able to understand the issues well enough to latch onto anything that would solve my problem. Any ideas?
|
Wish I could be of help! It's been over two years since I played with it. That sounds like your numpy either isn't installed or isn't up-to-date. Have you tried doing |
I did try that, but an error occurred while running the command. (Whoops, I should have saved the output.) And now I have a similar, but different error when running
|
If you got an error, chances are it didn't actually (or didn't fully) update. You might want to try running that again and post the error you get, happy to check whether it rings any bells for me :) |
@ForrestTrepte Do you definitely have TensorFlow 1 installed, rather than TensorFlow 2? |
I appears that I have TensorFlow 2:
Sorry, I'm not very experienced with Python environment configuration. In the above step |
Doing this seems to have solved my problem. Thanks, @mrahtz!
|
Hi @ForrestTrepte, after theses steps were you able to run any of the examples from the repo? |
I was able to run
But I'm new to learning-from-human-preferences so I don't yet understand what I'm doing. That's the next step now that I seem to have the setup working. |
Could you please share your pip list and which specific python version you are using? I am new to it as well and did all the setup from the repository, but when I try to run the examples it gives me errors, so I wanted to try using same package versions as someone who gets it to work. |
Sure. I'm attaching a file containing the pip list as well as execution of run.py. When running I do see a lot of warnings but based on the |
There is also the pipfile.lock file in the repository. I think this pins the package versions used by the original author, although I don't know the details of how that works in pipenv. |
@ForrestTrepte Oh snap, I'd forgotten about the TensorFlow instructions in the README! I've fixed this now, thanks! And indeed, pipenv should install the specific package versions from pipfile.lock when you run |
Thanks for the help! We are finally able to run it on the Ubuntu. In addition to the tensorflow instructions, I think it might be helpful to point out that tensorflow<=1.15 requires python<3.8 and the pipfile/piplock only requires for a python==3.X.X, which may run into problems if you are using a python version that is not compatible with tensorflow 1. This pypi release page shows the python compatible versions for the latest tensorflow 1 release. |
I've added this to the README. Thanks! |
Hi @mrahtz , thanks for doing this repo! I thought it might be useful to you or others to pass along some extra stuff I had to do to get this running on a fresh Ubuntu 18.04 install. Feel free to delete/close if it's not of use.
https://gist.github.com/eggsyntax/81a511adee360b811dc025508dea4f4a/edit
Here's a paste of what's in the gist:
The text was updated successfully, but these errors were encountered: