{"action":"closed","issue":{"url":"https://api.github.com/repos/dwavesystems/dimod/issues/308","repository_url":"https://api.github.com/repos/dwavesystems/dimod","labels_url":"https://api.github.com/repos/dwavesystems/dimod/issues/308/labels{/name}","comments_url":"https://api.github.com/repos/dwavesystems/dimod/issues/308/comments","events_url":"https://api.github.com/repos/dwavesystems/dimod/issues/308/events","html_url":"https://github.com/dwavesystems/dimod/issues/308","id":374129091,"node_id":"MDU6SXNzdWUzNzQxMjkwOTE=","number":308,"title":"dimod build failing for version 0.7.9 ","user":{"login":"JoelPasvolsky","id":34041130,"node_id":"MDQ6VXNlcjM0MDQxMTMw","avatar_url":"https://avatars2.githubusercontent.com/u/34041130?v=4","gravatar_id":"","url":"https://api.github.com/users/JoelPasvolsky","html_url":"https://github.com/JoelPasvolsky","followers_url":"https://api.github.com/users/JoelPasvolsky/followers","following_url":"https://api.github.com/users/JoelPasvolsky/following{/other_user}","gists_url":"https://api.github.com/users/JoelPasvolsky/gists{/gist_id}","starred_url":"https://api.github.com/users/JoelPasvolsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoelPasvolsky/subscriptions","organizations_url":"https://api.github.com/users/JoelPasvolsky/orgs","repos_url":"https://api.github.com/users/JoelPasvolsky/repos","events_url":"https://api.github.com/users/JoelPasvolsky/events{/privacy}","received_events_url":"https://api.github.com/users/JoelPasvolsky/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-25T20:55:38Z","updated_at":"2018-10-25T21:01:01Z","closed_at":"2018-10-25T21:01:01Z","author_association":"CONTRIBUTOR","body":"**Description**\r\n>>> dimod.roof_duality.fix_variables(bqm)\r\nTraceback (most recent call last):\r\n  File \"C:\\Users\\me\\!git_ADTT\\env3_dimod_roof\\dimod\\dimod\\roof_duality\\fix_variables.py\", line 67, in fix_variables\r\n    from dimod.roof_duality._fix_variables import fix_variables_wrapper\r\nModuleNotFoundError: No module named 'dimod.roof_duality._fix_variables'\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"C:\\Users\\me\\!git_ADTT\\env3_dimod_roof\\dimod\\dimod\\roof_duality\\fix_variables.py\", line 69, in fix_variables\r\n    raise ImportError(\"c++ extension roof_duality is not built\")\r\nImportError: c++ extension roof_duality is not built\r\n\r\n**Steps To Reproduce**\r\nWINDOWS:\r\ngit clone https://github.com/dwavesystems/dimod.git                                        --> works\r\n\r\npip install -r requirements.txt                                                                               --> couple of errors\r\nIgnoring enum34: markers 'python_version <= \"3.3\"' don't match your environment\r\nIgnoring futures: markers 'python_version == \"2.7\"' don't match your environment\r\n\r\npython setup.py install\r\nCompiling dimod/roof_duality/_fix_variables.pyx because it changed.\r\n....\r\ncreating build\\temp.win-amd64-3.6\\Release\\dimod\\roof_duality\\src\r\nC:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Idimod/roof_duality/src/ -IC:\\Python36\\include -IC:\\Python36\\include \"-IC:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\INCLUDE\" \"-IC:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.17134.0\\ucrt\" \"-IC:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.6.1\\include\\um\" \"-IC:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.17134.0\\shared\" \"-IC:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.17134.0\\um\" \"-IC:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.17134.0\\winrt\" /EHsc /Tpdimod/roof_duality/_fix_variables.cpp /Fobuild\\temp.win-amd64-3.6\\Release\\dimod/roof_duality/_fix_variables.obj\r\n_fix_variables.cpp\r\ndimod/roof_duality/_fix_variables.cpp(2195): warning C4244: 'argument': conversion from 'Py_ssize_t' to 'int', possible loss of data\r\nC:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Idimod/roof_duality/src/ -IC:\\Python36\\include -IC:\\Python36\\include \"-IC:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\INCLUDE\" \"-IC:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.17134.0\\ucrt\" \"-IC:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.6.1\\include\\um\" \"-IC:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.17134.0\\shared\" \"-IC:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.17134.0\\um\" \"-IC:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.17134.0\\winrt\" /EHsc /Tpdimod/roof_duality/src/fix_variables.cpp /Fobuild\\temp.win-amd64-3.6\\Release\\dimod/roof_duality/src/fix_variables.obj\r\nfix_variables.cpp\r\ndimod/roof_duality/src/fix_variables.cpp(29): fatal error C1083: Cannot open include file: 'boost/graph/graph_traits.hpp': No such file or directory\r\nbuilding c++ extensions failed, trying to build without\r\nFinished processing dependencies for dimod==0.7.9\r\n\r\nUNIX:\r\ncreating build/temp.linux-x86_64-2.7/dimod/roof_duality/src\r\nx86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Idimod/roof_duality/src/ -I/usr/include/python2.7 -c dimod/roof_duality/_fix_variables.cpp -o build/temp.linux-x86_64-2.7/dimod/roof_duality/_fix_variables.o\r\ncc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++\r\nx86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Idimod/roof_duality/src/ -I/usr/include/python2.7 -c dimod/roof_duality/src/fix_variables.cpp -o build/temp.linux-x86_64-2.7/dimod/roof_duality/src/fix_variables.o\r\ncc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++\r\ndimod/roof_duality/src/fix_variables.cpp:29:40: fatal error: boost/graph/graph_traits.hpp: No such file or directory\r\ncompilation terminated.\r\nbuilding c++ extensions failed, trying to build without\r\n\r\n\r\n**Expected Behavior**\r\nFunction executes\r\n\r\n**Environment**\r\n - OS: Windows and unix, \r\n - Python version: 3.6.5 and 2.7\r\n\r\n**Additional Context**\r\nAlso the example has \"dimod.fix_variables(bqm)\" but there's no __all__ so needs \"dimod.roof_duality.fix_variables(bqm)\"\r\n"}}
{"actor":{"display_login":"arcondello"}}