{"action":"opened","issue":{"url":"https://api.github.com/repos/openbabel/openbabel/issues/1844","repository_url":"https://api.github.com/repos/openbabel/openbabel","labels_url":"https://api.github.com/repos/openbabel/openbabel/issues/1844/labels{/name}","comments_url":"https://api.github.com/repos/openbabel/openbabel/issues/1844/comments","events_url":"https://api.github.com/repos/openbabel/openbabel/issues/1844/events","html_url":"https://github.com/openbabel/openbabel/issues/1844","id":328721594,"node_id":"MDU6SXNzdWUzMjg3MjE1OTQ=","number":1844,"title":"openbabel can't be found, but can be import","user":{"login":"Brandonnogithub","id":28864241,"node_id":"MDQ6VXNlcjI4ODY0MjQx","avatar_url":"https://avatars1.githubusercontent.com/u/28864241?v=4","gravatar_id":"","url":"https://api.github.com/users/Brandonnogithub","html_url":"https://github.com/Brandonnogithub","followers_url":"https://api.github.com/users/Brandonnogithub/followers","following_url":"https://api.github.com/users/Brandonnogithub/following{/other_user}","gists_url":"https://api.github.com/users/Brandonnogithub/gists{/gist_id}","starred_url":"https://api.github.com/users/Brandonnogithub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Brandonnogithub/subscriptions","organizations_url":"https://api.github.com/users/Brandonnogithub/orgs","repos_url":"https://api.github.com/users/Brandonnogithub/repos","events_url":"https://api.github.com/users/Brandonnogithub/events{/privacy}","received_events_url":"https://api.github.com/users/Brandonnogithub/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-02T07:17:04Z","updated_at":"2018-06-02T07:17:04Z","closed_at":null,"author_association":"NONE","body":"I complied openbabel bymeself. And I can import it in python2, it works fine.\r\nBut when I install another package (ENeN, you can find it in github), which requires openbabel, it can't be find.\r\nHere is the message when I install it: \r\n###############################################################\r\nRequirement already satisfied: dill in ./.local/lib/python3.6/site-packages (from eden==0.2) (0.2.7.1)\r\nRequirement already satisfied: esmre in /usr/local/lib/python2.7/dist-packages (from eden==0.2) (0.3.1)\r\nCollecting openbabel (from eden==0.2)\r\n  Downloading https://mirrors.aliyun.com/pypi/packages/9c/30/eb9c3d3d3b86981f6c6a7b8eceb6f4a13b9a12673efbc842b7cebe0ce39a/openbabel-2.4.1.tar.gz (74kB)\r\n###############################################################\r\n\r\nso it downloads openbabel and try to install it, errors:\r\n###############################################################\r\nRunning setup.py bdist_wheel for openbabel ... error\r\n  Complete output from command /usr/bin/python3 -u -c \"import setuptools, tokenize;__file__='/tmp/pip-install-vokwsrny/openbabel/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\\r\\n', '\\n');f.close();exec(compile(code, __file__, 'exec'))\" bdist_wheel -d /tmp/pip-wheel-4bdr_2wn --python-tag cp36:\r\n  running bdist_wheel\r\n  running build\r\n  running build_ext\r\n  Open Babel location automatically determined by pkg-config:\r\n  - include_dirs: ['/usr/include/python3.6m', '/usr/local/include/openbabel-2.0']\r\n  - library_dirs: ['/usr/local/lib']\r\n  building '_openbabel' extension\r\n  swigging openbabel-python.i to openbabel-python_wrap.cpp\r\n  swig -python -c++ -small -O -templatereduce -naturalvar -I/usr/include/python3.6m -I/usr/local/include/openbabel-2.0 -o openbabel-python_wrap.cpp openbabel-python.i\r\n  unable to execute 'swig': No such file or directory\r\n################################################################\r\n\r\nI'm using python2,  OS is Ubuntu18.04\r\nwhen I install openbabel by myself, I set the environment in ~/.bashrc:\r\n#################################################################\r\nexport PATH=/usr/local/bin:$PATH  \r\nexport LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib  \r\nexport PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH\r\n#################################################################\r\n\r\nIs there any solution?"}}
{"actor":{"display_login":"Brandonnogithub"}}