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

ModuleNotFoundError: No module named 'rexgen_direct' #14

Open
c10211 opened this issue May 29, 2020 · 2 comments
Open

ModuleNotFoundError: No module named 'rexgen_direct' #14

c10211 opened this issue May 29, 2020 · 2 comments

Comments

@c10211
Copy link

c10211 commented May 29, 2020

  File "directcandranker.py", line 2, in <module>
    from rexgen_direct.rank_diff_wln.nn import linearND, linear
ModuleNotFoundError: No module named 'rexgen_direct'

I have no clue where to even start with this code, is there a tutorial or better place to ask questions like this?

Thanks in advance

@connorcoley
Copy link
Owner

Sorry for missing this question. There isn't a better tutorial or other place to ask questions, thanks for your patience.

The imports and relative paths in this code were defined...lazily, to be blunt. These imports are written so that the code can be run from the main repo rexgen_direct folder with your PYTHONPATH including the current directory.

@c10211
Copy link
Author

c10211 commented Jun 23, 2020

I managed to get past this error by adding rexgen_direct-master, rexgen_direct, and rank_diff_wln to the PYTHONPATH individually.

Thanks for the help, I may get this up and running some day ;P

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

2 participants