{"action":"created","issue":{"url":"https://api.github.com/repos/potentialventures/cocotb/issues/489","repository_url":"https://api.github.com/repos/potentialventures/cocotb","labels_url":"https://api.github.com/repos/potentialventures/cocotb/issues/489/labels{/name}","comments_url":"https://api.github.com/repos/potentialventures/cocotb/issues/489/comments","events_url":"https://api.github.com/repos/potentialventures/cocotb/issues/489/events","html_url":"https://github.com/potentialventures/cocotb/issues/489","id":177682041,"number":489,"title":"ImportError: No module named site","user":{"login":"jfosorio","id":815690,"avatar_url":"https://avatars.githubusercontent.com/u/815690?v=3","gravatar_id":"","url":"https://api.github.com/users/jfosorio","html_url":"https://github.com/jfosorio","followers_url":"https://api.github.com/users/jfosorio/followers","following_url":"https://api.github.com/users/jfosorio/following{/other_user}","gists_url":"https://api.github.com/users/jfosorio/gists{/gist_id}","starred_url":"https://api.github.com/users/jfosorio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfosorio/subscriptions","organizations_url":"https://api.github.com/users/jfosorio/orgs","repos_url":"https://api.github.com/users/jfosorio/repos","events_url":"https://api.github.com/users/jfosorio/events{/privacy}","received_events_url":"https://api.github.com/users/jfosorio/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-18T22:37:09Z","updated_at":"2016-09-22T18:27:12Z","closed_at":null,"body":"I am trying to \"build\" cocotb using anaconda python (3.5) and i get the error described below. It basically seams that I can not import the module *site*. What is weird as if I type:\r\n```\r\npython -c \"import site\" \r\n```\r\n\r\nFollowing a anaconda installation I followed the instructions of  issue #244 and defined the variable:\r\n\r\n```\r\nexport PYTHONHOME=/Users/felipe/anaconda3\r\n```\r\n\r\n## System\r\n- OSX\r\n- anaconda 4.1.1  python=3.5\r\n\r\n\r\n## Error message\r\n```\r\ncd test_cases/test_plusargs && /Applications/Xcode.app/Contents/Developer/usr/bin/make\r\n/Applications/Xcode.app/Contents/Developer/usr/bin/make results.xml\r\nPYTHONPATH=/Users/felipe/test/cocotb/build/libs/x86_64:/Users/felipe/test/cocotb:/Users/felipe/test/cocotb/tests/test_cases/test_plusargs: LD_LIBRARY_PATH=/Users/felipe/test/cocotb/build/libs/x86_64::/Users/felipe/anaconda3/lib:/Users/felipe/anaconda3/lib:/Users/felipe/anaconda3/lib:/Users/felipe/anaconda3/lib MODULE=plusargs \\\r\n        TESTCASE= TOPLEVEL=tb_top TOPLEVEL_LANG=verilog \\\r\n        /Users/felipe/anaconda3/bin/vvp -M /Users/felipe/test/cocotb/build/libs/x86_64 -m gpivpi sim_build/sim.vvp   +foo=bar +test1 +test2 +options=fubar\r\nImportError: No module named site\r\nmake[3]: *** [results.xml] Error 1\r\nmake[2]: *** [sim] Error 2\r\nmake[2]: Target `all' not remade because of errors.\r\nmake[1]: *** [test_plusargs] Error 2\r\ncd test_cases/test_verilog_access && /Applications/Xcode.app/Contents/Developer/usr/bin/make\r\n/Applications/Xcode.app/Contents/Developer/usr/bin/make results.xml\r\nSkipping simulation as VHDL is not supported on simulator=icarus\r\ncd test_cases/test_vhdl_access && /Applications/Xcode.app/Contents/Developer/usr/bin/make\r\n/Applications/Xcode.app/Contents/Developer/usr/bin/make results.xml\r\nSkipping simulation as VHDL is not supported on simulator=icarus\r\nmake[1]: Target `all' not remade because of errors.\r\nmake: *** [do_tests] Error 2\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/potentialventures/cocotb/issues/comments/248987064","html_url":"https://github.com/potentialventures/cocotb/issues/489#issuecomment-248987064","issue_url":"https://api.github.com/repos/potentialventures/cocotb/issues/489","id":248987064,"user":{"login":"leftink","id":4984003,"avatar_url":"https://avatars.githubusercontent.com/u/4984003?v=3","gravatar_id":"","url":"https://api.github.com/users/leftink","html_url":"https://github.com/leftink","followers_url":"https://api.github.com/users/leftink/followers","following_url":"https://api.github.com/users/leftink/following{/other_user}","gists_url":"https://api.github.com/users/leftink/gists{/gist_id}","starred_url":"https://api.github.com/users/leftink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leftink/subscriptions","organizations_url":"https://api.github.com/users/leftink/orgs","repos_url":"https://api.github.com/users/leftink/repos","events_url":"https://api.github.com/users/leftink/events{/privacy}","received_events_url":"https://api.github.com/users/leftink/received_events","type":"User","site_admin":false},"created_at":"2016-09-22T18:27:12Z","updated_at":"2016-09-22T18:27:12Z","body":"I have hit that issue before.  For me it occurs when I have both Python2 and Python3 images installed on my machine.   My issue had to do with the search order for the python-config file, i.e. it was finding python-config which was for Python2 and my python binary was running Python 3.\r\n\r\nI put a fix into Makefile.pylib.Linux to address this issue, i.e. looks for a python config binary that matches the python executable version.  I don't know think this fix made it into the other Makefile.pylib.*.  You might try updating to the latest and updating the makefile corresponding to your OS to match the one for Linux. "}}
{"actor":{"display_login":"leftink"}}