{"action":"created","issue":{"url":"https://api.github.com/repos/stan-dev/pystan/issues/522","repository_url":"https://api.github.com/repos/stan-dev/pystan","labels_url":"https://api.github.com/repos/stan-dev/pystan/issues/522/labels{/name}","comments_url":"https://api.github.com/repos/stan-dev/pystan/issues/522/comments","events_url":"https://api.github.com/repos/stan-dev/pystan/issues/522/events","html_url":"https://github.com/stan-dev/pystan/issues/522","id":372956037,"node_id":"MDU6SXNzdWUzNzI5NTYwMzc=","number":522,"title":"pystan compiling error Library not loaded: @rpath/libc++.1.dylib","user":{"login":"grjd","id":7142903,"node_id":"MDQ6VXNlcjcxNDI5MDM=","avatar_url":"https://avatars0.githubusercontent.com/u/7142903?v=4","gravatar_id":"","url":"https://api.github.com/users/grjd","html_url":"https://github.com/grjd","followers_url":"https://api.github.com/users/grjd/followers","following_url":"https://api.github.com/users/grjd/following{/other_user}","gists_url":"https://api.github.com/users/grjd/gists{/gist_id}","starred_url":"https://api.github.com/users/grjd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grjd/subscriptions","organizations_url":"https://api.github.com/users/grjd/orgs","repos_url":"https://api.github.com/users/grjd/repos","events_url":"https://api.github.com/users/grjd/events{/privacy}","received_events_url":"https://api.github.com/users/grjd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-23T11:43:00Z","updated_at":"2018-10-23T16:05:35Z","closed_at":null,"author_association":"NONE","body":"#### Summary:\r\n\r\nI created this environment to run pystan with python 3.6\r\n\r\n> conda create -n stan3.6 python=3.6 pystan=2.18.0.0\r\n> conda activate stan3.6\r\n> \r\n (previously I tried with my python version platform 2.7 I had the error CompileError: command 'clang' failed with exit status 1) \r\n\r\nIn this new environment I have instead this error:\r\n\r\n---> 66 sm = pystan.StanModel(model_code=model)\r\n     67 # Train the model and generate samples\r\n     68 fit = sm.sampling(data=data, iter=1000, chains=4, warmup=500, thin=1, seed=101)\r\n\r\n/usr/local/lib/python2.7/site-packages/pystan/model.pyc in __init__(self, file, charset, model_name, model_code, stanc_ret, include_paths, boost_lib, eigen_lib, verbose, obfuscate_model_name, extra_compile_args)\r\n    354                 os.dup2(orig_stderr, sys.stderr.fileno())\r\n    355\r\n--> 356         self.module = load_module(self.module_name, lib_dir)\r\n    357         self.module_filename = os.path.basename(self.module.__file__)\r\n    358         # once the module is in memory, we no longer need the file on disk\r\n\r\n/usr/local/lib/python2.7/site-packages/pystan/model.pyc in load_module(module_name, module_path)\r\n     53         import imp\r\n     54         module_info = imp.find_module(module_name, [module_path])\r\n---> 55         return imp.load_module(module_name, *module_info)\r\n     56\r\n     57\r\n\r\nImportError: dlopen(/var/folders/rv/tgxvj_dj7wn_njrn3t8p524r0000gn/T/tmpvBVskQ/stanfit4anon_model_cb4cc9c2a04d0e34d711077557307fb7_4911439600464947345.so, 2): Library not loaded: @rpath/libc++.1.dylib\r\n  Referenced from: /var/folders/rv/tgxvj_dj7wn_njrn3t8p524r0000gn/T/tmpvBVskQ/stanfit4anon_model_cb4cc9c2a04d0e34d711077557307fb7_4911439600464947345.so\r\n  Reason: image not found\r\n\r\n#### PyStan Version:\r\n2.18.0.0\r\n#### Python Version:\r\nPython 3.6.6\r\n#### Operating System:\r\nMacOS\r\n"},"comment":{"url":"https://api.github.com/repos/stan-dev/pystan/issues/comments/432311259","html_url":"https://github.com/stan-dev/pystan/issues/522#issuecomment-432311259","issue_url":"https://api.github.com/repos/stan-dev/pystan/issues/522","id":432311259,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMjMxMTI1OQ==","user":{"login":"ahartikainen","id":13161958,"node_id":"MDQ6VXNlcjEzMTYxOTU4","avatar_url":"https://avatars1.githubusercontent.com/u/13161958?v=4","gravatar_id":"","url":"https://api.github.com/users/ahartikainen","html_url":"https://github.com/ahartikainen","followers_url":"https://api.github.com/users/ahartikainen/followers","following_url":"https://api.github.com/users/ahartikainen/following{/other_user}","gists_url":"https://api.github.com/users/ahartikainen/gists{/gist_id}","starred_url":"https://api.github.com/users/ahartikainen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahartikainen/subscriptions","organizations_url":"https://api.github.com/users/ahartikainen/orgs","repos_url":"https://api.github.com/users/ahartikainen/repos","events_url":"https://api.github.com/users/ahartikainen/events{/privacy}","received_events_url":"https://api.github.com/users/ahartikainen/received_events","type":"User","site_admin":false},"created_at":"2018-10-23T16:05:35Z","updated_at":"2018-10-23T16:05:35Z","author_association":"COLLABORATOR","body":"Probably something wrong with the $path. Did you run this from the notebook or the terminal?\r\n\r\nSee your path before and after activate\r\n\r\nTo terminal\r\n\r\n    env\r\n\r\nSee also your `~/.bashrc`/ `~/.bash_profile` if there are some problems."}}
{"actor":{"display_login":"ahartikainen"}}