Comments (6)
Actually, just add a test_mode=False attribute in the SampleRepeatingLearner (and in your Learner class, for that matter). Thanks for letting us know about that problem too, I'll land a fix soon.
from commai-env.
Thanks for the report Andrea! This should be fixed now, so I'm closing the issue. Please, feel free to reopen if you are still having problems.
from commai-env.
Partially solved. Sorry I haven't sent you all the error trace. I still have 13 errors:
EEEEEEEEEEEEE
======================================================================
ERROR: src.core.tests.test_channels (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: src.core.tests.test_channels
Traceback (most recent call last):
File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/Users/samurai/Documents/HKUST/Dialogue/CommAI-env/src/core/tests/test_channels.py", line 13, in <module>
import core.serializer as serializer
ModuleNotFoundError: No module named 'core'
======================================================================
ERROR: src.core.tests.test_environment (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: src.core.tests.test_environment
Traceback (most recent call last):
File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/Users/samurai/Documents/HKUST/Dialogue/CommAI-env/src/core/tests/test_environment.py", line 13, in <module>
import core.task as task
ModuleNotFoundError: No module named 'core'
======================================================================
ERROR: src.core.tests.test_events (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: src.core.tests.test_events
Traceback (most recent call last):
File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/Users/samurai/Documents/HKUST/Dialogue/CommAI-env/src/core/tests/test_events.py", line 13, in <module>
import core.events as events
ModuleNotFoundError: No module named 'core'
======================================================================
ERROR: src.core.tests.test_serializer (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: src.core.tests.test_serializer
Traceback (most recent call last):
File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/Users/samurai/Documents/HKUST/Dialogue/CommAI-env/src/core/tests/test_serializer.py", line 14, in <module>
from core import serializer
ModuleNotFoundError: No module named 'core'
======================================================================
ERROR: src.core.tests.test_session (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: src.core.tests.test_session
Traceback (most recent call last):
File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/Users/samurai/Documents/HKUST/Dialogue/CommAI-env/src/core/tests/test_session.py", line 13, in <module>
import core.task as task
ModuleNotFoundError: No module named 'core'
======================================================================
ERROR: src.core.tests.test_task (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: src.core.tests.test_task
Traceback (most recent call last):
File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/Users/samurai/Documents/HKUST/Dialogue/CommAI-env/src/core/tests/test_task.py", line 13, in <module>
import core.task as task
ModuleNotFoundError: No module named 'core'
======================================================================
ERROR: src.learners (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: src.learners
Traceback (most recent call last):
File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 462, in _find_test_path
package = self._get_module_from_name(name)
File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/Users/samurai/Documents/HKUST/Dialogue/CommAI-env/src/learners/__init__.py", line 19, in <module>
__import__('learners.' + m)
ModuleNotFoundError: No module named 'learners'
======================================================================
ERROR: src.tasks.competition.tests.test_base (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: src.tasks.competition.tests.test_base
Traceback (most recent call last):
File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/Users/samurai/Documents/HKUST/Dialogue/CommAI-env/src/tasks/competition/tests/test_base.py", line 13, in <module>
import tasks.competition.base as base
ModuleNotFoundError: No module named 'tasks'
======================================================================
ERROR: src.tasks.competition.tests.test_navigation (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: src.tasks.competition.tests.test_navigation
Traceback (most recent call last):
File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/Users/samurai/Documents/HKUST/Dialogue/CommAI-env/src/tasks/competition/tests/test_navigation.py", line 13, in <module>
from worlds.grid_world import GridWorld
ModuleNotFoundError: No module named 'worlds'
======================================================================
ERROR: src.tasks.competition.tests.test_objects_properties (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: src.tasks.competition.tests.test_objects_properties
Traceback (most recent call last):
File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/Users/samurai/Documents/HKUST/Dialogue/CommAI-env/src/tasks/competition/tests/test_objects_properties.py", line 13, in <module>
import tasks.competition.messages as msg
ModuleNotFoundError: No module named 'tasks'
======================================================================
ERROR: src.tasks.competition.tests.test_repetition (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: src.tasks.competition.tests.test_repetition
Traceback (most recent call last):
File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/Users/samurai/Documents/HKUST/Dialogue/CommAI-env/src/tasks/competition/tests/test_repetition.py", line 13, in <module>
import tasks.competition.repetition as repetition
ModuleNotFoundError: No module named 'tasks'
======================================================================
ERROR: src.tasks.micro.tests.test_nano (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: src.tasks.micro.tests.test_nano
Traceback (most recent call last):
File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/Users/samurai/Documents/HKUST/Dialogue/CommAI-env/src/tasks/micro/tests/test_nano.py", line 13, in <module>
import tasks.micro.nano as nano
ModuleNotFoundError: No module named 'tasks'
======================================================================
ERROR: src.tasks.micro.tests.test_small_comp (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: src.tasks.micro.tests.test_small_comp
Traceback (most recent call last):
File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/Users/samurai/Documents/HKUST/Dialogue/CommAI-env/src/tasks/micro/tests/test_small_comp.py", line 6, in <module>
import tasks.micro.small_comp as small_comp
ModuleNotFoundError: No module named 'tasks'
----------------------------------------------------------------------
Ran 13 tests in 0.002s
FAILED (errors=13)
sorry to disturb you, and thank you for your fast reply
from commai-env.
Where are you running this from? You should try running the tests from the src directory.
from commai-env.
Right. My mistake sorry.
Thanks again for the support 👍
from commai-env.
I still have a little problem when I am running one of the example learner:
python3 run.py -l learners.sample_learners.SampleRepeatingLearner -v ConsoleView tasks_config.sample.json
Traceback (most recent call last):
File "run.py", line 214, in <module>
main()
File "run.py", line 88, in main
session.run()
File "/Users/samurai/Documents/HKUST/Dialogue/CommAI-env/src/core/session.py", line 52, in run
token, reward = self._env.next(token, test_mode=self._learner.test_mode)
AttributeError: 'SampleRepeatingLearner' object has no attribute 'test_mode'
I partially solve it by my self by removing test_mode=self._learner.test_mode
from the attribute. But I am sure there is a way clearer solution for the issue.
Andrea
from commai-env.
Related Issues (10)
- Bugs in sample learners? HOT 6
- CommAI-env community HOT 1
- Typo in the setup instructions
- ImportError: No module named aux.observer HOT 3
- Human mode stuck at first question HOT 1
- No Working Examples in Documentation! HOT 5
- Curses broken, no normal console interface! HOT 2
- Was: linting/testing Updated: 19/04/17 drop 2.x support HOT 10
- FB.com / facebookresearch / Developer links HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from commai-env.