{"action":"created","issue":{"url":"https://api.github.com/repos/pgmpy/pgmpy/issues/568","labels_url":"https://api.github.com/repos/pgmpy/pgmpy/issues/568/labels{/name}","comments_url":"https://api.github.com/repos/pgmpy/pgmpy/issues/568/comments","events_url":"https://api.github.com/repos/pgmpy/pgmpy/issues/568/events","html_url":"https://github.com/pgmpy/pgmpy/issues/568","id":126130314,"number":568,"title":"i get error while testing code","user":{"login":"RajuPilani","id":15886208,"avatar_url":"https://avatars.githubusercontent.com/u/15886208?v=3","gravatar_id":"","url":"https://api.github.com/users/RajuPilani","html_url":"https://github.com/RajuPilani","followers_url":"https://api.github.com/users/RajuPilani/followers","following_url":"https://api.github.com/users/RajuPilani/following{/other_user}","gists_url":"https://api.github.com/users/RajuPilani/gists{/gist_id}","starred_url":"https://api.github.com/users/RajuPilani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RajuPilani/subscriptions","organizations_url":"https://api.github.com/users/RajuPilani/orgs","repos_url":"https://api.github.com/users/RajuPilani/repos","events_url":"https://api.github.com/users/RajuPilani/events{/privacy}","received_events_url":"https://api.github.com/users/RajuPilani/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2016-01-12T09:05:06Z","updated_at":"2016-01-14T14:04:57Z","closed_at":null,"body":"```\r\n(pgmpy-env)pgmpy # nosetests3\r\n...........................................................................................................................E...............................................................................................................E.............................................................................................................................................\r\n======================================================================\r\nERROR: Failure: ImportError (cannot import name 'wraps')\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3/dist-packages/nose/failure.py\", line 39, in runTest\r\n    raise self.exc_val.with_traceback(self.tb)\r\n  File \"/usr/lib/python3/dist-packages/nose/loader.py\", line 411, in loadTestsFromName\r\n    addr.filename, addr.module)\r\n  File \"/usr/lib/python3/dist-packages/nose/importer.py\", line 47, in importFromPath\r\n    return self.importFromDir(dir_path, fqname)\r\n  File \"/usr/lib/python3/dist-packages/nose/importer.py\", line 94, in importFromDir\r\n    mod = load_module(part_fqname, fh, filename, desc)\r\n  File \"/usr/lib/python3.4/imp.py\", line 235, in load_module\r\n    return load_source(name, filename, file)\r\n  File \"/usr/lib/python3.4/imp.py\", line 171, in load_source\r\n    module = methods.load()\r\n  File \"<frozen importlib._bootstrap>\", line 1220, in load\r\n  File \"<frozen importlib._bootstrap>\", line 1200, in _load_unlocked\r\n  File \"<frozen importlib._bootstrap>\", line 1129, in _exec\r\n  File \"<frozen importlib._bootstrap>\", line 1471, in exec_module\r\n  File \"<frozen importlib._bootstrap>\", line 321, in _call_with_frames_removed\r\n  File \"/home/joseph/pgmpy/tests/test_inference/test_Sampling.py\", line 3, in <module>\r\n    from mock import MagicMock, patch\r\n  File \"/usr/local/lib/python3.4/dist-packages/mock/__init__.py\", line 2, in <module>\r\n    import mock.mock as _mock\r\n  File \"/usr/local/lib/python3.4/dist-packages/mock/mock.py\", line 68, in <module>\r\n    from six import wraps\r\nImportError: cannot import name 'wraps'\r\n\r\n======================================================================\r\nERROR: Failure: ImportError (cannot import name 'wraps')\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3/dist-packages/nose/failure.py\", line 39, in runTest\r\n    raise self.exc_val.with_traceback(self.tb)\r\n  File \"/usr/lib/python3/dist-packages/nose/loader.py\", line 411, in loadTestsFromName\r\n    addr.filename, addr.module)\r\n  File \"/usr/lib/python3/dist-packages/nose/importer.py\", line 47, in importFromPath\r\n    return self.importFromDir(dir_path, fqname)\r\n  File \"/usr/lib/python3/dist-packages/nose/importer.py\", line 94, in importFromDir\r\n    mod = load_module(part_fqname, fh, filename, desc)\r\n  File \"/usr/lib/python3.4/imp.py\", line 235, in load_module\r\n    return load_source(name, filename, file)\r\n  File \"/usr/lib/python3.4/imp.py\", line 171, in load_source\r\n    module = methods.load()\r\n  File \"<frozen importlib._bootstrap>\", line 1220, in load\r\n  File \"<frozen importlib._bootstrap>\", line 1200, in _load_unlocked\r\n  File \"<frozen importlib._bootstrap>\", line 1129, in _exec\r\n  File \"<frozen importlib._bootstrap>\", line 1471, in exec_module\r\n  File \"<frozen importlib._bootstrap>\", line 321, in _call_with_frames_removed\r\n  File \"/home/joseph/pgmpy/tests/test_models/test_MarkovChain.py\", line 6, in <module>\r\n    from mock import patch, call\r\n  File \"/usr/local/lib/python3.4/dist-packages/mock/__init__.py\", line 2, in <module>\r\n    import mock.mock as _mock\r\n  File \"/usr/local/lib/python3.4/dist-packages/mock/mock.py\", line 68, in <module>\r\n    from six import wraps\r\nImportError: cannot import name 'wraps'\r\n\r\n----------------------------------------------------------------------\r\nRan 377 tests in 14.790s\r\n\r\nFAILED (errors=2)\r\n```"},"comment":{"url":"https://api.github.com/repos/pgmpy/pgmpy/issues/comments/171652229","html_url":"https://github.com/pgmpy/pgmpy/issues/568#issuecomment-171652229","issue_url":"https://api.github.com/repos/pgmpy/pgmpy/issues/568","id":171652229,"user":{"login":"RajuPilani","id":15886208,"avatar_url":"https://avatars.githubusercontent.com/u/15886208?v=3","gravatar_id":"","url":"https://api.github.com/users/RajuPilani","html_url":"https://github.com/RajuPilani","followers_url":"https://api.github.com/users/RajuPilani/followers","following_url":"https://api.github.com/users/RajuPilani/following{/other_user}","gists_url":"https://api.github.com/users/RajuPilani/gists{/gist_id}","starred_url":"https://api.github.com/users/RajuPilani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RajuPilani/subscriptions","organizations_url":"https://api.github.com/users/RajuPilani/orgs","repos_url":"https://api.github.com/users/RajuPilani/repos","events_url":"https://api.github.com/users/RajuPilani/events{/privacy}","received_events_url":"https://api.github.com/users/RajuPilani/received_events","type":"User","site_admin":false},"created_at":"2016-01-14T14:04:57Z","updated_at":"2016-01-14T14:04:57Z","body":"@khalibartan we can test our code with \r\n```\r\n>>> python setup.py test\r\n```\r\nwe need to test using \">>> nosetests3\" is necessary\r\n"}}