{"action":"created","issue":{"url":"https://api.github.com/repos/numba/numba/issues/2001","repository_url":"https://api.github.com/repos/numba/numba","labels_url":"https://api.github.com/repos/numba/numba/issues/2001/labels{/name}","comments_url":"https://api.github.com/repos/numba/numba/issues/2001/comments","events_url":"https://api.github.com/repos/numba/numba/issues/2001/events","html_url":"https://github.com/numba/numba/issues/2001","id":167253156,"number":2001,"title":"Numba ImportError: /lib/libgcc_s.so.1","user":{"login":"davidkallie","id":13819239,"avatar_url":"https://avatars.githubusercontent.com/u/13819239?v=3","gravatar_id":"","url":"https://api.github.com/users/davidkallie","html_url":"https://github.com/davidkallie","followers_url":"https://api.github.com/users/davidkallie/followers","following_url":"https://api.github.com/users/davidkallie/following{/other_user}","gists_url":"https://api.github.com/users/davidkallie/gists{/gist_id}","starred_url":"https://api.github.com/users/davidkallie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidkallie/subscriptions","organizations_url":"https://api.github.com/users/davidkallie/orgs","repos_url":"https://api.github.com/users/davidkallie/repos","events_url":"https://api.github.com/users/davidkallie/events{/privacy}","received_events_url":"https://api.github.com/users/davidkallie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-07-24T20:45:04Z","updated_at":"2016-07-26T17:32:25Z","closed_at":null,"body":"When running in ipython, starting with one of the numba examples:\r\n\r\n`from numba import jit`\r\n\r\nthe following error shows up:\r\n\r\n`ImportError: /lib/libgcc_s.so.1: version GCC_4.6.0 required by /usr/local/lib/gcc48/libgfortran.so.3 not found`\r\n\r\nRestarting ipython, an running:\r\n\r\n`import numpy`\r\n`from numba import jit`\r\n\r\nSeems to fix the problem, and the example code executes correctly. I am assuming this is **not** an issue with Anaconda. However I am porting numba and llvmlite to Freebsd, and this seems to be an issue. Any help would be great!"},"comment":{"url":"https://api.github.com/repos/numba/numba/issues/comments/235343759","html_url":"https://github.com/numba/numba/issues/2001#issuecomment-235343759","issue_url":"https://api.github.com/repos/numba/numba/issues/2001","id":235343759,"user":{"login":"davidkallie","id":13819239,"avatar_url":"https://avatars.githubusercontent.com/u/13819239?v=3","gravatar_id":"","url":"https://api.github.com/users/davidkallie","html_url":"https://github.com/davidkallie","followers_url":"https://api.github.com/users/davidkallie/followers","following_url":"https://api.github.com/users/davidkallie/following{/other_user}","gists_url":"https://api.github.com/users/davidkallie/gists{/gist_id}","starred_url":"https://api.github.com/users/davidkallie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidkallie/subscriptions","organizations_url":"https://api.github.com/users/davidkallie/orgs","repos_url":"https://api.github.com/users/davidkallie/repos","events_url":"https://api.github.com/users/davidkallie/events{/privacy}","received_events_url":"https://api.github.com/users/davidkallie/received_events","type":"User","site_admin":false},"created_at":"2016-07-26T17:32:24Z","updated_at":"2016-07-26T17:32:24Z","body":"Ah, I see some confusion has arisen due to me not being specific. \r\n\r\nI am not using Anaconda, as I assumed it would be more challenging to port over. However I just installed llvmlite-0.12.1 from source using LLVM 3.7, and documentation says LLVM 3.8 for v0.12+, but the 0.12.1 branch clearly wants LLVM 3.7 due to build error indication. llvmlite installed just fine no hiccups, then moved onto numba-0.27.0, everything installed just fine, just using the base packages provided by the FreeBSD ports system.\r\n\r\nFast forward to a few days ago, I decided to make an installable port for the FreeBSD ports system which allows for use of the native package manager, due to Anaconda not being present. All available packages aside from llvmlite were in the ports tree. However the default version of python in the ports tree is Python 2.7, and most scientific packages work just fine this way. This allows a user to either use\r\n>$ cd /usr/ports/devel/py-numba\r\n>$ make install\r\n\r\nor \r\n`pkg install py27-numba`\r\n\r\nto install numba on the system. Using numba however requires that the user input either\r\n>import scipy\r\n>import numba\r\n\r\nor\r\n>import numpy\r\n>import numba\r\n\r\nto use the features provided by numba, otherwise if you try to `import numba` first, you get:  \r\n>[...]\r\n>ImportError: /lib/libgcc_s.so.1: version GCC_4.6.0 required by /usr/local/lib/gcc48/libgfortran.so.3 not found\r\n\r\nand all subsequent imports report the same error, unless you restart the interpreter.\r\n\r\nBased on post by @stuartarchibald, it sounds like the conda environment pre-loads scipy in the environment when an interpreter is run? Correct me if I am wrong as I do not have Anaconda or use it.\r\n\r\nFunny thing is last year it was a bit tricky to get numba working nicely on a Ubuntu system, however it installs quite effortlessly on FreeBSD. It is just odd that `import numpy` needs to be imported first, but everything works great, it just seems to me that numba requires numpy, or scipy, but doesn't check if they are loaded upon loading itself.  \r\n\r\nAgain, thanks for being patient with me on this, I appreciate all of the help."}}
{"actor":{"display_login":"davidkallie"}}