-
Notifications
You must be signed in to change notification settings - Fork 20
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
running in Docker: ERROR: No facebook or tinder token has been set. #52
Comments
So what this sounds like, is that the .env or the environment variable isn't being set. To see if this is the case, try to set the environment variable manually in bash before calling Either export TINDER_AUTH_TOKEN="TODO"
export FACEBOOK_AUTH_TOKEN="TODO" And you should see a different error. That token seems right, and yes this would work in a VBox in Windows. WSL should work too. |
Hi, thank you for your reply :) Sadly, the error didn't change :| I haven't tried it with WSL, as my linux-debugging knowledge seems already here at the end ;) Thought with the docker-image it would "just work"... obviously not :P .env is in /tinder/tindetheus, maybe it's missing some file or something else is wrong?: /tinder |
Update: I just created the .env inside of the docker-instance, that way it it seems to work half'ish? I get the stats of the profiles in the console, but there is no window opening with photos...? EDIT: is it missing a tool to display the images? I can't find any log in /var/log ... any way to hunt this down? |
^^ cool that seems to work. So what I was doing, in the virtual box, navigate Files to |
Ahhhh :) The readme sounded like a window would open with each new pic :) Maybe that should be added. It seems to work so far, gonna try it. Thanks for your help and for this tool! :) |
I didn't set up any way to natively visualize the images from docker. If you are using a shared file system between docker and your vbox, then the above would work. Otherwise, you'll need to call docker such that matplotlib visualization can work. http://wiki.ros.org/docker/Tutorials/GUI It's a bit more complicated docker call to get the visualization to work. Something like
from https://stackoverflow.com/questions/46018102/how-can-i-use-matplotlib-pyplot-in-a-docker-container |
Nah it's okay. Using the temp-folder works good enough. I just didn't figure out how it's meant to be done with the docker-setup :) Oh just before I forget it: the AI is only trained with the images in the liked/disliked dir? Could I swap photos from one dir to the other to refine the choice a bit? |
hm, train gives me now an error that /models/20170512-110547/ is not found... but it's in /tinder/models/20170512-110547/. What's the sourcepath in .env? Yep, indeed: /tinder/models/20170512-110547 is the needes path... |
Yes. You can move images from one folder to another. You can also add photos manually to each folder. I made some validation function so you could evaluate predictions on some images the model wasn't trained on. It's interesting to look at for some qualitative goodness of model.
Ya it probably needs the absolute path in that case. Let me know if you run into bugs, or areas of improvement. PRs welcome! Have fun. :) |
Sure, will do :) The only thing I can think about would be parsing of the profile-text for keywords and skip auto-like/dislike for manual choice (or just do a like even if the pictures failed). |
Hi, I end up in that error after running "tindetheus browse":
root@04ccce1f985e:/# tindetheus browse Traceback (most recent call last): File "/usr/local/bin/tindetheus", line 11, in <module> load_entry_point('tindetheus', 'console_scripts', 'tindetheus')() File "/tindetheus/tindetheus/tindetheus.py", line 274, in command_line_run raise('ERROR: No facebook or tinder token has been set.' TypeError: exceptions must derive from BaseException root@04ccce1f985e:/# tindetheus browse Traceback (most recent call last): File "/usr/local/bin/tindetheus", line 11, in <module> load_entry_point('tindetheus', 'console_scripts', 'tindetheus')() File "/tindetheus/tindetheus/tindetheus.py", line 274, in command_line_run raise('ERROR: No facebook or tinder token has been set.' TypeError: exceptions must derive from BaseException root@04ccce1f985e:/# tindetheus browse Traceback (most recent call last): File "/usr/local/bin/tindetheus", line 11, in <module> load_entry_point('tindetheus', 'console_scripts', 'tindetheus')() File "/tindetheus
I both tried the Tinder Auth Token and the Facebook Auth Token. I assume something like "EAAGmXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXV0ZD" is right?
I run the docker-image in a Ubuntu that runs on a VirtualBox on Win10, doubt that is the reason for the error though?
The text was updated successfully, but these errors were encountered: