{"action":"created","issue":{"url":"https://api.github.com/repos/pydata/pandas/issues/14257","repository_url":"https://api.github.com/repos/pydata/pandas","labels_url":"https://api.github.com/repos/pydata/pandas/issues/14257/labels{/name}","comments_url":"https://api.github.com/repos/pydata/pandas/issues/14257/comments","events_url":"https://api.github.com/repos/pydata/pandas/issues/14257/events","html_url":"https://github.com/pydata/pandas/issues/14257","id":178076651,"number":14257,"title":"Installation issue with --editable option","user":{"login":"Eimis","id":3446400,"avatar_url":"https://avatars.githubusercontent.com/u/3446400?v=3","gravatar_id":"","url":"https://api.github.com/users/Eimis","html_url":"https://github.com/Eimis","followers_url":"https://api.github.com/users/Eimis/followers","following_url":"https://api.github.com/users/Eimis/following{/other_user}","gists_url":"https://api.github.com/users/Eimis/gists{/gist_id}","starred_url":"https://api.github.com/users/Eimis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eimis/subscriptions","organizations_url":"https://api.github.com/users/Eimis/orgs","repos_url":"https://api.github.com/users/Eimis/repos","events_url":"https://api.github.com/users/Eimis/events{/privacy}","received_events_url":"https://api.github.com/users/Eimis/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pydata/pandas/labels/Build","name":"Build","color":"75507B"},{"url":"https://api.github.com/repos/pydata/pandas/labels/Usage%20Question","name":"Usage Question","color":"0052cc"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/pydata/pandas/milestones/33","html_url":"https://github.com/pydata/pandas/milestones/No%20action","labels_url":"https://api.github.com/repos/pydata/pandas/milestones/33/labels","id":997544,"number":33,"title":"No action","description":"A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n","creator":{"login":"jorisvandenbossche","id":1020496,"avatar_url":"https://avatars.githubusercontent.com/u/1020496?v=3","gravatar_id":"","url":"https://api.github.com/users/jorisvandenbossche","html_url":"https://github.com/jorisvandenbossche","followers_url":"https://api.github.com/users/jorisvandenbossche/followers","following_url":"https://api.github.com/users/jorisvandenbossche/following{/other_user}","gists_url":"https://api.github.com/users/jorisvandenbossche/gists{/gist_id}","starred_url":"https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jorisvandenbossche/subscriptions","organizations_url":"https://api.github.com/users/jorisvandenbossche/orgs","repos_url":"https://api.github.com/users/jorisvandenbossche/repos","events_url":"https://api.github.com/users/jorisvandenbossche/events{/privacy}","received_events_url":"https://api.github.com/users/jorisvandenbossche/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":368,"state":"open","created_at":"2015-02-26T19:29:05Z","updated_at":"2016-09-20T22:21:21Z","due_on":null,"closed_at":null},"comments":11,"created_at":"2016-09-20T14:30:24Z","updated_at":"2016-09-21T10:38:07Z","closed_at":"2016-09-20T22:20:18Z","body":"Hello,\r\n\r\nI'm trying to install pandas on Mac OS X 10.11.6 in a Django project. Pandas library is used with one of the 3rd party libraries that I am using in the project.\r\n\r\nSince I don't want to switch to different package manager (Anakonda) just for installing pandas (I'm using pip now), in order for me to get the C files compiled, I decided to install pandas by including `--editable git+git://github.com/pydata/pandas.git@v0.18.1#egg=pandas` in the `requirements.txt` file and the library is now installed in my `src` dir and there's a symlink in my virtualenv's `site-packages` which points to it.\r\n\r\nThis gets these headers compiled, but causes many strange importing errors in pandas source code itself when it is imported by a third party library that is also installed with `--editable` mode. F. ex. file at `Users/eimantas/Desktop/Projects/WeShareSolar/mijnstroom/virtualenv/src/knmi-py/knmi/parsers.py` has this line `import pandas as pd`. And I had to edit this code block in `virtualenv/src/pandas/pandas/__init__.py` for things to work:\r\n\r\n```\r\ntry:\r\n    # XXX: I had to comment this out for things to work:\r\n    # from pandas import hashtable, tslib, lib\r\n    import hashtable, tslib, lib\r\nexcept ImportError as e:  # pragma: no cover\r\n    module = str(e).lstrip('cannot import name ')  # hack but overkill to use re\r\n    raise ImportError(\"C extension: {0} not built. If you want to import \"\r\n                      \"pandas from the source directory, you may need to run \"\r\n                      \"'python setup.py build_ext --inplace' to build the C \"\r\n                      \"extensions first.\".format(module))\r\n\r\n```\r\n\r\nBut then another importing error appears here: `virtualenv/src/pandas/pandas/core/config.py`:\r\n\r\n```\r\nFile \"/Users/eimantas/Desktop/Projects/WeShareSolar/mijnstroom/virtualenv/src/pandas/pandas/core/config.py\", line 57, in <module>\r\n    import pandas.compat as compat\r\nAttributeError: 'module' object has no attribute 'compat'\r\n```\r\n\r\nWhat should I do to get these things fixed ? I'd love to be able to use this library with pip and Django."},"comment":{"url":"https://api.github.com/repos/pydata/pandas/issues/comments/248574223","html_url":"https://github.com/pydata/pandas/issues/14257#issuecomment-248574223","issue_url":"https://api.github.com/repos/pydata/pandas/issues/14257","id":248574223,"user":{"login":"jorisvandenbossche","id":1020496,"avatar_url":"https://avatars.githubusercontent.com/u/1020496?v=3","gravatar_id":"","url":"https://api.github.com/users/jorisvandenbossche","html_url":"https://github.com/jorisvandenbossche","followers_url":"https://api.github.com/users/jorisvandenbossche/followers","following_url":"https://api.github.com/users/jorisvandenbossche/following{/other_user}","gists_url":"https://api.github.com/users/jorisvandenbossche/gists{/gist_id}","starred_url":"https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jorisvandenbossche/subscriptions","organizations_url":"https://api.github.com/users/jorisvandenbossche/orgs","repos_url":"https://api.github.com/users/jorisvandenbossche/repos","events_url":"https://api.github.com/users/jorisvandenbossche/events{/privacy}","received_events_url":"https://api.github.com/users/jorisvandenbossche/received_events","type":"User","site_admin":false},"created_at":"2016-09-21T10:38:07Z","updated_at":"2016-09-21T10:38:07Z","body":"> But everything works only after wrapping virtualenv/lib/python2.7/site-packages/pandas in another pandas folder with __init__.py... \r\n\r\nWhat does not work? What error do you get? \r\nThis wrapping should certainly not be needed."}}
{"actor":{"display_login":"jorisvandenbossche"}}