{"action":"created","issue":{"url":"https://api.github.com/repos/rohe/pysaml2/issues/381","repository_url":"https://api.github.com/repos/rohe/pysaml2","labels_url":"https://api.github.com/repos/rohe/pysaml2/issues/381/labels{/name}","comments_url":"https://api.github.com/repos/rohe/pysaml2/issues/381/comments","events_url":"https://api.github.com/repos/rohe/pysaml2/issues/381/events","html_url":"https://github.com/rohe/pysaml2/issues/381","id":186623231,"number":381,"title":"Pyinstaller not supported","user":{"login":"arvindsree","id":21178759,"avatar_url":"https://avatars.githubusercontent.com/u/21178759?v=3","gravatar_id":"","url":"https://api.github.com/users/arvindsree","html_url":"https://github.com/arvindsree","followers_url":"https://api.github.com/users/arvindsree/followers","following_url":"https://api.github.com/users/arvindsree/following{/other_user}","gists_url":"https://api.github.com/users/arvindsree/gists{/gist_id}","starred_url":"https://api.github.com/users/arvindsree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arvindsree/subscriptions","organizations_url":"https://api.github.com/users/arvindsree/orgs","repos_url":"https://api.github.com/users/arvindsree/repos","events_url":"https://api.github.com/users/arvindsree/events{/privacy}","received_events_url":"https://api.github.com/users/arvindsree/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-01T19:24:48Z","updated_at":"2016-11-01T23:48:47Z","closed_at":null,"body":"Hi there,\r\n\r\nLooks like pyinstaller support is not present. Probably the issue is with pyinstaller. Anyway I have posted the bug in the pyinstaller issues section as well. \r\n\r\nMaybe there could be some sort of quick fix to enable pyinstaller or other distutil support?\r\n\r\nTraceback .\r\n\r\nTraceback (most recent call last):\r\nFile \"saml.py\", line 67, in <module>\r\nFile \"saml.py\", line 62, in main\r\nFile \"saml2/config.py\", line 341, in load\r\nFile \"saml2/config.py\", line 251, in load_special\r\nFile \"saml2/config.py\", line 271, in load_complex\r\nFile \"saml2/attribute_converter.py\", line 80, in ac_factory\r\nFile \"importlib/init.py\", line 37, in import_module\r\nImportError: No module named adfs_v1x\r\n\r\nCode .\r\n\r\n`\r\nfrom saml2 import (\r\nBINDING_HTTP_POST,\r\nBINDING_HTTP_REDIRECT,\r\nBINDING_HTTP_ARTIFACT\r\n)\r\n\r\nfrom saml2.client import Saml2Client\r\nfrom saml2.config import Config as Saml2Config\r\nimport requests\r\n\r\ndef main():\r\nacs_url = \"http://ip:5000/acs\"\r\nhttps_acs_url = acs_url\r\nrv = requests.get(\"https://dev-978392.oktapreview.com/app/exk87z3e9swnuRfct0h7/sso/saml/metadata\")\r\nsettings = {\r\n\"metadata\": {\r\n\"inline\": [rv.text],\r\n},\r\n\"service\": {\r\n\"sp\": {\r\n\"endpoints\": {\r\n\"assertion_consumer_service\": [\r\n(acs_url, BINDING_HTTP_REDIRECT),\r\n(acs_url, BINDING_HTTP_POST),\r\n(https_acs_url, BINDING_HTTP_REDIRECT),\r\n(https_acs_url, BINDING_HTTP_POST)\r\n],\r\n},\r\n\"allow_unsolicited\": True,\r\n\"authn_requests_signed\": False,\r\n\"logout_requests_signed\": True,\r\n\"want_assertions_signed\": True,\r\n\"want_response_signed\": False,\r\n},\r\n\"entityid\": \"http://ip:5000/\" #should be set to actual IP but its unused\r\n\r\n    },\r\n}\r\nspConfig = Saml2Config()\r\nspConfig.load(settings)\r\nspConfig.allow_unknown_attributes = True\r\nsaml_client = Saml2Client(config=spConfig)\r\nprint dir(saml_client)\r\nmain()\r\n`\r\n\r\nI tried --onefile --onedir options and hidden import of saml2\r\nUbuntu 14.04, python 2.7.12, pyinstaller 3.3.dev0-b78bfe5, pysaml2 4.3.0"},"comment":{"url":"https://api.github.com/repos/rohe/pysaml2/issues/comments/257733188","html_url":"https://github.com/rohe/pysaml2/issues/381#issuecomment-257733188","issue_url":"https://api.github.com/repos/rohe/pysaml2/issues/381","id":257733188,"user":{"login":"arvindsree","id":21178759,"avatar_url":"https://avatars.githubusercontent.com/u/21178759?v=3","gravatar_id":"","url":"https://api.github.com/users/arvindsree","html_url":"https://github.com/arvindsree","followers_url":"https://api.github.com/users/arvindsree/followers","following_url":"https://api.github.com/users/arvindsree/following{/other_user}","gists_url":"https://api.github.com/users/arvindsree/gists{/gist_id}","starred_url":"https://api.github.com/users/arvindsree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arvindsree/subscriptions","organizations_url":"https://api.github.com/users/arvindsree/orgs","repos_url":"https://api.github.com/users/arvindsree/repos","events_url":"https://api.github.com/users/arvindsree/events{/privacy}","received_events_url":"https://api.github.com/users/arvindsree/received_events","type":"User","site_admin":false},"created_at":"2016-11-01T23:48:47Z","updated_at":"2016-11-01T23:48:47Z","body":"Hello Roland,\r\n\r\nThank you for the reply.  The file is present at\r\n\r\n/usr/local/lib/python2.7/dist-packages/saml2/attributemaps/adfs_v1x.py\r\n\r\nDoes it mean that pyinstaller will not search those directories for the specific file import?\r\nAlso, are you able to recreate the issue?\r\n\r\nThanks,\r\nArvind\r\n\r\n"}}
{"actor":{"display_login":"arvindsree"}}