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

lots of error when running "python -m pytest" #164

Open
TianChenone opened this issue Nov 26, 2019 · 0 comments
Open

lots of error when running "python -m pytest" #164

TianChenone opened this issue Nov 26, 2019 · 0 comments

Comments

@TianChenone
Copy link

My environment:
ubuntu 16.04
causal (anaconda environment) python 3.6.7 ; tensorflow-gpu 1.12.0 ; ray 0.7.2(firstly I pip install the ray of version 0.6.1 as the instruction, there are also lots of error, so I shift the version to 0.7.2)
When I running "python -m pytest", there are lots of errors below(showing part of errors)

ImportError while importing test module '/home/wsw/cyt_DRL/paper_code/sequential_social_dilemma_games-master/ray/python/ray/tests/test_actor.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../anaconda2/envs/causal/lib/python3.6/site-packages/ray/tests/test_actor.py:20: in
from ray.tests.utils import (
E ImportError: cannot import name 'relevant_errors'
_____________ ERROR collecting ray/python/ray/tests/test_array.py ______________
import file mismatch:
imported module 'ray.tests.test_array' has this file attribute:
/home/wsw/anaconda2/envs/causal/lib/python3.6/site-packages/ray/tests/test_array.py
which is not the same as the test file we want to collect:
/home/wsw/cyt_DRL/paper_code/sequential_social_dilemma_games-master/ray/python/ray/tests/test_array.py
HINT: remove pycache / .pyc files and/or use a unique basename for your test file modules
____________ ERROR collecting ray/python/ray/tests/test_cython.py _____________
ImportError while importing test module '/home/wsw/cyt_DRL/paper_code/sequential_social_dilemma_games-master/ray/python/ray/tests/test_cython.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../anaconda2/envs/causal/lib/python3.6/site-packages/ray/tests/test_cython.py:9: in
import cython_examples as cyth
E ModuleNotFoundError: No module named 'cython_examples'


I think some of error like "cannot import ....module" is because the modification of the natashamjaques's ray package. I have tried to fix some these errors by modify or add some codes between original ray package and natashamjaques's ray package,but there are so many errors!!! So I'd like to ask for help and get the key reason and better solution!
or can you tell me some information about your environment settings and ray version? thank you very much!

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

1 participant