{"action":"created","issue":{"url":"https://api.github.com/repos/pydata/pandas/issues/9199","labels_url":"https://api.github.com/repos/pydata/pandas/issues/9199/labels{/name}","comments_url":"https://api.github.com/repos/pydata/pandas/issues/9199/comments","events_url":"https://api.github.com/repos/pydata/pandas/issues/9199/events","html_url":"https://github.com/pydata/pandas/issues/9199","id":53382148,"number":9199,"title":"pandas 0.15.2 is not deployable via cx_freeze with python ","user":{"login":"alexis0587","id":5360878,"avatar_url":"https://avatars.githubusercontent.com/u/5360878?v=3","gravatar_id":"","url":"https://api.github.com/users/alexis0587","html_url":"https://github.com/alexis0587","followers_url":"https://api.github.com/users/alexis0587/followers","following_url":"https://api.github.com/users/alexis0587/following{/other_user}","gists_url":"https://api.github.com/users/alexis0587/gists{/gist_id}","starred_url":"https://api.github.com/users/alexis0587/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexis0587/subscriptions","organizations_url":"https://api.github.com/users/alexis0587/orgs","repos_url":"https://api.github.com/users/alexis0587/repos","events_url":"https://api.github.com/users/alexis0587/events{/privacy}","received_events_url":"https://api.github.com/users/alexis0587/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pydata/pandas/labels/Build","name":"Build","color":"75507B"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-05T10:23:17Z","updated_at":"2015-04-14T01:55:30Z","closed_at":null,"body":"I am deploying an application using cx_freeze on Python 2.7.8.final.0 and pandas 0.15.2.\r\nI get the following error with pandas 0.15.2 but no error with 0.15.1. [SO: http://stackoverflow.com/questions/27705163/error-3-on-dateutil-zoneinfo-using-cx-freeze-and-pandas]\r\n\r\nI have include the dateutil/zoneinfo files with the include_files function but the problem still occurs.\r\n\r\n**hello.py :**\r\n\r\n    import numpy as np\r\n    import pandas as pd\r\n    import matplotlib\r\n    import matplotlib.pyplot as plt\r\n    print 'hello world'\r\n    df_dates = pd.date_range(start='01/01/2013', freq='H', periods=100)\r\n    df = pd.DataFrame(range(len(df_dates)), index=df_dates)\r\n    print df\r\n    print df.info()\r\n    df.plot()\r\n    plt.savefig('test.png')\r\n    plt.show(block=False)\r\n\r\n\r\n**setup.py :**\r\n\r\n\tincludes = ['dateutil.zoneinfo', 'pandas']  # nommer les modules non trouves par cx_freeze\r\n\texcludes = []\r\n\tpackages = ['os', 'matplotlib.backends.backend_qt4agg', 'dateutil', 'dateutil.zoneinfo', 'pandas']\r\n\r\n\tdef include_files():\r\n\t\t\tpath_base = \"C:\\\\Anaconda\\\\Lib\\\\site-packages\\\\dateutil\\\\zoneinfo\\\\\"\r\n\t\t\tskip_count = len(path_base) \r\n\t\t\tzip_includes = [(path_base, \"dateutil/zoneinfo/\")]\r\n\t\t\tfor root, sub_folders, files in os.walk(path_base):\r\n\t\t\t\tfor file_in_root in files:\r\n\t\t\t\t\tzip_includes.append(\r\n\t\t\t\t\t\t\t(\"{}\".format(os.path.join(root, file_in_root)),\r\n\t\t\t\t\t\t\t \"{}\".format(os.path.join(\"dateutil/zoneinfo\", root[skip_count:], file_in_root))\r\n\t\t\t\t\t\t\t) \r\n\t\t\t\t\t)      \r\n\t\t\treturn zip_includes\r\n\t\t\t\r\n\tincludefiles = include_files()\r\n\tzip_includes = include_files()\r\n\t\r\n\toptimize = 1\r\n\tsilent = True\r\n\t\r\n\toptions = {   #'path': path,\r\n\t\t\t   'includes': includes,\r\n\t\t\t   'excludes': excludes,\r\n\t\t\t   'packages': packages,\r\n\t\t\t   'include_files': includefiles,\r\n\t\t\t   'zip_includes': zip_includes,\r\n\t\t\t   #'bin_path_includes': binpathincludes,\r\n\t\t\t   'create_shared_zip': True,  # <= ne pas generer de fichier zip\r\n\t\t\t   'include_in_shared_zip': True,  # <= ne pas generer de fichier zip\r\n\t\t\t   'compressed': True,  # <= ne pas generer de fichier zip\r\n\t\t\t   'optimize': optimize,\r\n\t\t\t   'silent': silent\r\n\t\t\t   }\r\n\t\r\n\t\r\n\tbase = None\r\n\t\r\n\tcible_1 = Executable('hello.py', targetName=\"hello.exe\")\r\n\t#base=base,\r\n\t#compress=True,  # <= ne pas generer de fichier zip\r\n\t#copyDependentFiles=True,\r\n\t#appendScriptToExe=True,\r\n\t#appendScriptToLibrary=True,  # <= ne pas generer de fichier zip\r\n\t#icon=icone\r\n    #)\r\n\t\r\n\tsetup(\r\n\t\tname = \"salut\",\r\n\t\tauthor = 'XXX',\r\n\t\tversion = \"0.1\",\r\n\t\tdescription = \"Ce programme vous dit bonjour\",\r\n\t\toptions={\"build_exe\": options},\r\n\t\texecutables = [cible_1],\r\n\t)\r\n\r\n\r\n**The error is :**\r\n\r\n    [Error 3] Le chemin dÆaccÞs spÚcifiÚ est introuvable: 'C:\\\\Users\\\\Utilisateur\\\\D\r\n    esktop\\\\compilation\\\\build\\\\exe.win-amd64-2.7\\\\library.zip\\\\dateutil\\\\zoneinfo/*\r\n    .*'\r\n    Traceback (most recent call last):\r\n     File \"C:\\Anaconda\\lib\\site-packages\\cx_Freeze\\initscripts\\Console.py\", line 27\r\n    , in <module>\r\n       exec(code, m.__dict__)\r\n     File \"hello.py\", line 2, in <module>\r\n     File \"C:\\Anaconda\\lib\\site-packages\\pandas\\__init__.py\", line 7, in <module>\r\n       from . import hashtable, tslib, lib\r\n     File \"ExtensionLoader_pandas_tslib.py\", line 22, in <module>\r\n     File \"ExtensionLoader_pandas_tslib.py\", line 14, in __bootstrap__\r\n     File \"pandas\\tslib.pyx\", line 44, in init pandas.tslib (pandas\\tslib.c:79879)\r\n     File \"C:\\Anaconda\\lib\\site-packages\\dateutil\\zoneinfo\\__init__.py\", line 32, i\r\n    n <module>\r\n       ZONEINFOFILE = getzoneinfofile()\r\n     File \"C:\\Anaconda\\lib\\site-packages\\dateutil\\zoneinfo\\__init__.py\", line 24, i\r\n    n getzoneinfofile\r\n       filenames = os.listdir(os.path.join(os.path.dirname(__file__)))\r\n    WindowsError: [Error 3] Le chemin dÆaccÞs spÚcifiÚ est introuvable: 'C:\\\\Users\\\\\r\n    Utilisateur\\\\Desktop\\\\compilation\\\\build\\\\exe.win-amd64-2.7\\\\library.zip\\\\dateut\r\n    il\\\\zoneinfo/*.*'"},"comment":{"url":"https://api.github.com/repos/pydata/pandas/issues/comments/92556714","html_url":"https://github.com/pydata/pandas/issues/9199#issuecomment-92556714","issue_url":"https://api.github.com/repos/pydata/pandas/issues/9199","id":92556714,"user":{"login":"amardeep-sm","id":7367352,"avatar_url":"https://avatars.githubusercontent.com/u/7367352?v=3","gravatar_id":"","url":"https://api.github.com/users/amardeep-sm","html_url":"https://github.com/amardeep-sm","followers_url":"https://api.github.com/users/amardeep-sm/followers","following_url":"https://api.github.com/users/amardeep-sm/following{/other_user}","gists_url":"https://api.github.com/users/amardeep-sm/gists{/gist_id}","starred_url":"https://api.github.com/users/amardeep-sm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amardeep-sm/subscriptions","organizations_url":"https://api.github.com/users/amardeep-sm/orgs","repos_url":"https://api.github.com/users/amardeep-sm/repos","events_url":"https://api.github.com/users/amardeep-sm/events{/privacy}","received_events_url":"https://api.github.com/users/amardeep-sm/received_events","type":"User","site_admin":false},"created_at":"2015-04-14T01:55:29Z","updated_at":"2015-04-14T01:55:29Z","body":"I was receiving a similar error and resolved it by upgrading to python-dateutil==2.4.0"}}