{"action":"created","issue":{"url":"https://api.github.com/repos/lektor/lektor/issues/27","labels_url":"https://api.github.com/repos/lektor/lektor/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/lektor/lektor/issues/27/comments","events_url":"https://api.github.com/repos/lektor/lektor/issues/27/events","html_url":"https://github.com/lektor/lektor/issues/27","id":123595878,"number":27,"title":"Windows platform installation issue","user":{"login":"lyenliang","id":3468329,"avatar_url":"https://avatars.githubusercontent.com/u/3468329?v=3","gravatar_id":"","url":"https://api.github.com/users/lyenliang","html_url":"https://github.com/lyenliang","followers_url":"https://api.github.com/users/lyenliang/followers","following_url":"https://api.github.com/users/lyenliang/following{/other_user}","gists_url":"https://api.github.com/users/lyenliang/gists{/gist_id}","starred_url":"https://api.github.com/users/lyenliang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lyenliang/subscriptions","organizations_url":"https://api.github.com/users/lyenliang/orgs","repos_url":"https://api.github.com/users/lyenliang/repos","events_url":"https://api.github.com/users/lyenliang/events{/privacy}","received_events_url":"https://api.github.com/users/lyenliang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"niijv","id":5002330,"avatar_url":"https://avatars.githubusercontent.com/u/5002330?v=3","gravatar_id":"","url":"https://api.github.com/users/niijv","html_url":"https://github.com/niijv","followers_url":"https://api.github.com/users/niijv/followers","following_url":"https://api.github.com/users/niijv/following{/other_user}","gists_url":"https://api.github.com/users/niijv/gists{/gist_id}","starred_url":"https://api.github.com/users/niijv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niijv/subscriptions","organizations_url":"https://api.github.com/users/niijv/orgs","repos_url":"https://api.github.com/users/niijv/repos","events_url":"https://api.github.com/users/niijv/events{/privacy}","received_events_url":"https://api.github.com/users/niijv/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-12-23T03:15:12Z","updated_at":"2015-12-23T10:58:01Z","closed_at":null,"body":"I'm using PowerShell to install lektor, the following is console output during installation:\r\n\r\n    PS C:\\> iex ((new-object net.webclient).DownloadString('https://getlektor.com/install.ps1'))\r\n    Welcome to Lektor\r\n\r\n    This script will install Lektor on your computer.\r\n\r\n       Installing at: C:\\Users\\lyenliang\\AppData\\Local\\lektor-cli\r\n    Continue? [Yn] Y\r\n    New python executable in C:\\Users\\lyenliang\\AppData\\Local\\lektor-cli\\lib\\Scripts\\python.exe\r\n    Installing setuptools, pip, wheel...done.\r\n    Collecting Lektor\r\n    c:\\users\\lyenliang\\appdata\\local\\lektor-cli\\lib\\lib\\site-packages\\pip\\_vendor\\requests\\packages\\urllib3\\util\\ssl_.py:90: I\r\n    nsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriat\r\n    ely and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/s\r\n    ecurity.html#insecureplatformwarning.\r\n      InsecurePlatformWarning\r\n      Using cached Lektor-1.0-py2-none-any.whl\r\n    Collecting Babel (from Lektor)\r\n      Using cached Babel-2.1.1-py2.py3-none-any.whl\r\n    Collecting setuptools (from Lektor)\r\n      Using cached setuptools-19.1.1-py2.py3-none-any.whl\r\n    Collecting Flask (from Lektor)\r\n    Collecting inifile (from Lektor)\r\n      Using cached inifile-0.2-py2-none-any.whl\r\n    Collecting mistune (from Lektor)\r\n      Using cached mistune-0.7.1-py2.py3-none-any.whl\r\n    Collecting click>=6.0 (from Lektor)\r\n      Using cached click-6.2-py2.py3-none-any.whl\r\n    Collecting EXIFRead (from Lektor)\r\n      Using cached ExifRead-2.1.2-py2-none-any.whl\r\n    Collecting watchdog (from Lektor)\r\n    Requirement already up-to-date: pip in c:\\users\\lyenliang\\appdata\\local\\lektor-cli\\lib\\lib\\site-packages (from Lektor)\r\n    Collecting Jinja2>=2.4 (from Lektor)\r\n      Using cached Jinja2-2.8-py2.py3-none-any.whl\r\n    Collecting pytz>=0a (from Babel->Lektor)\r\n      Using cached pytz-2015.7-py2.py3-none-any.whl\r\n    Collecting itsdangerous>=0.21 (from Flask->Lektor)\r\n    Collecting Werkzeug>=0.7 (from Flask->Lektor)\r\n      Using cached Werkzeug-0.11.3-py2.py3-none-any.whl\r\n    Collecting argh>=0.24.1 (from watchdog->Lektor)\r\n    Collecting PyYAML>=3.10 (from watchdog->Lektor)\r\n      Using cached PyYAML-3.11.tar.gz\r\n    Collecting pathtools>=0.1.1 (from watchdog->Lektor)\r\n    Collecting MarkupSafe (from Jinja2>=2.4->Lektor)\r\n    Building wheels for collected packages: PyYAML\r\n      Running setup.py bdist_wheel for PyYAML\r\n      Complete output from command c:\\users\\lyenliang\\appdata\\local\\lektor-cli\\lib\\scripts\\python.exe -c \"import setuptools;__\r\n    file__='c:\\\\users\\\\lyenliang\\\\appdata\\\\local\\\\temp\\\\pip-build-qxh26z\\\\PyYAML\\\\setup.py';exec(compile(open(__file__).read()\r\n    .replace('\\r\\n', '\\n'), __file__, 'exec'))\" bdist_wheel -d c:\\users\\lyenliang\\appdata\\local\\temp\\tmpfdak1tpip-wheel-:\r\n      running bdist_wheel\r\n      running build\r\n      running build_py\r\n      creating build\r\n      creating build\\lib.win32-2.7\r\n      creating build\\lib.win32-2.7\\yaml\r\n      copying lib\\yaml\\composer.py -> build\\lib.win32-2.7\\yaml\r\n      copying lib\\yaml\\constructor.py -> build\\lib.win32-2.7\\yaml\r\n      copying lib\\yaml\\cyaml.py -> build\\lib.win32-2.7\\yaml\r\n      copying lib\\yaml\\dumper.py -> build\\lib.win32-2.7\\yaml\r\n      copying lib\\yaml\\emitter.py -> build\\lib.win32-2.7\\yaml\r\n      copying lib\\yaml\\error.py -> build\\lib.win32-2.7\\yaml\r\n      copying lib\\yaml\\events.py -> build\\lib.win32-2.7\\yaml\r\n      copying lib\\yaml\\loader.py -> build\\lib.win32-2.7\\yaml\r\n      copying lib\\yaml\\nodes.py -> build\\lib.win32-2.7\\yaml\r\n      copying lib\\yaml\\parser.py -> build\\lib.win32-2.7\\yaml\r\n      copying lib\\yaml\\reader.py -> build\\lib.win32-2.7\\yaml\r\n      copying lib\\yaml\\representer.py -> build\\lib.win32-2.7\\yaml\r\n      copying lib\\yaml\\resolver.py -> build\\lib.win32-2.7\\yaml\r\n      copying lib\\yaml\\scanner.py -> build\\lib.win32-2.7\\yaml\r\n      copying lib\\yaml\\serializer.py -> build\\lib.win32-2.7\\yaml\r\n      copying lib\\yaml\\tokens.py -> build\\lib.win32-2.7\\yaml\r\n      copying lib\\yaml\\__init__.py -> build\\lib.win32-2.7\\yaml\r\n      running build_ext\r\n      creating build\\temp.win32-2.7\r\n      creating build\\temp.win32-2.7\\Release\r\n      checking if libyaml is compilable\r\n      Traceback (most recent call last):\r\n        File \"<string>\", line 1, in <module>\r\n        File \"c:\\users\\lyenliang\\appdata\\local\\temp\\pip-build-qxh26z\\PyYAML\\setup.py\", line 342, in <module>\r\n          'test': test,\r\n        File \"C:\\Python27\\Lib\\distutils\\core.py\", line 151, in setup\r\n          dist.run_commands()\r\n        File \"C:\\Python27\\Lib\\distutils\\dist.py\", line 953, in run_commands\r\n          self.run_command(cmd)\r\n        File \"C:\\Python27\\Lib\\distutils\\dist.py\", line 972, in run_command\r\n          cmd_obj.run()\r\n        File \"c:\\users\\lyenliang\\appdata\\local\\lektor-cli\\lib\\lib\\site-packages\\wheel\\bdist_wheel.py\", line 175, in run\r\n          self.run_command('build')\r\n        File \"C:\\Python27\\Lib\\distutils\\cmd.py\", line 326, in run_command\r\n          self.distribution.run_command(command)\r\n        File \"C:\\Python27\\Lib\\distutils\\dist.py\", line 972, in run_command\r\n          cmd_obj.run()\r\n        File \"C:\\Python27\\Lib\\distutils\\command\\build.py\", line 127, in run\r\n          self.run_command(cmd_name)\r\n        File \"C:\\Python27\\Lib\\distutils\\cmd.py\", line 326, in run_command\r\n          self.distribution.run_command(command)\r\n        File \"C:\\Python27\\Lib\\distutils\\dist.py\", line 972, in run_command\r\n          cmd_obj.run()\r\n        File \"c:\\users\\lyenliang\\appdata\\local\\temp\\pip-build-qxh26z\\PyYAML\\setup.py\", line 173, in run\r\n          log.warn(str(exc))\r\n      UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-6: ordinal not in range(128)\r\n\r\n      ----------------------------------------\r\n      Failed building wheel for PyYAML\r\n    Failed to build PyYAML\r\n    Installing collected packages: pytz, Babel, setuptools, itsdangerous, Werkzeug, MarkupSafe, Jinja2, Flask, inifile, mist\r\n    une, click, EXIFRead, argh, PyYAML, pathtools, watchdog, Lektor\r\n      Found existing installation: setuptools 18.2\r\n        Uninstalling setuptools-18.2:\r\n          Successfully uninstalled setuptools-18.2\r\n      Running setup.py install for PyYAML\r\n        Complete output from command c:\\users\\lyenliang\\appdata\\local\\lektor-cli\\lib\\scripts\\python.exe -c \"import setuptools,\r\n     tokenize;__file__='c:\\\\users\\\\lyenliang\\\\appdata\\\\local\\\\temp\\\\pip-build-qxh26z\\\\PyYAML\\\\setup.py';exec(compile(getattr(t\r\n    okenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))\" install --record c:\\users\\lyenliang\\app\r\n    data\\local\\temp\\pip-qeykkj-record\\install-record.txt --single-version-externally-managed --compile --install-headers c:\\\r\n    users\\lyenliang\\appdata\\local\\lektor-cli\\lib\\include\\site\\python2.7\\PyYAML:\r\n        running install\r\n        running build\r\n        running build_py\r\n        running build_ext\r\n        checking if libyaml is compilable\r\n        Traceback (most recent call last):\r\n          File \"<string>\", line 1, in <module>\r\n          File \"c:\\users\\lyenliang\\appdata\\local\\temp\\pip-build-qxh26z\\PyYAML\\setup.py\", line 342, in <module>\r\n            'test': test,\r\n          File \"C:\\Python27\\Lib\\distutils\\core.py\", line 151, in setup\r\n            dist.run_commands()\r\n          File \"C:\\Python27\\Lib\\distutils\\dist.py\", line 953, in run_commands\r\n            self.run_command(cmd)\r\n          File \"C:\\Python27\\Lib\\distutils\\dist.py\", line 972, in run_command\r\n            cmd_obj.run()\r\n          File \"c:\\users\\lyenliang\\appdata\\local\\lektor-cli\\lib\\lib\\site-packages\\setuptools\\command\\install.py\", line 61, in\r\n    run\r\n            return orig.install.run(self)\r\n          File \"C:\\Python27\\Lib\\distutils\\command\\install.py\", line 563, in run\r\n            self.run_command('build')\r\n          File \"C:\\Python27\\Lib\\distutils\\cmd.py\", line 326, in run_command\r\n            self.distribution.run_command(command)\r\n          File \"C:\\Python27\\Lib\\distutils\\dist.py\", line 972, in run_command\r\n            cmd_obj.run()\r\n          File \"C:\\Python27\\Lib\\distutils\\command\\build.py\", line 127, in run\r\n            self.run_command(cmd_name)\r\n          File \"C:\\Python27\\Lib\\distutils\\cmd.py\", line 326, in run_command\r\n            self.distribution.run_command(command)\r\n          File \"C:\\Python27\\Lib\\distutils\\dist.py\", line 972, in run_command\r\n            cmd_obj.run()\r\n          File \"c:\\users\\lyenliang\\appdata\\local\\temp\\pip-build-qxh26z\\PyYAML\\setup.py\", line 173, in run\r\n            log.warn(str(exc))\r\n        UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-6: ordinal not in range(128)\r\n\r\n        ----------------------------------------\r\n    Command \"c:\\users\\lyenliang\\appdata\\local\\lektor-cli\\lib\\scripts\\python.exe -c \"import setuptools, tokenize;__file__='c:\\\\\r\n    users\\\\lyenliang\\\\appdata\\\\local\\\\temp\\\\pip-build-qxh26z\\\\PyYAML\\\\setup.py';exec(compile(getattr(tokenize, 'open', open)(_\r\n    _file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))\" install --record c:\\users\\lyenliang\\appdata\\local\\temp\\pip-qeyk\r\n    kj-record\\install-record.txt --single-version-externally-managed --compile --install-headers c:\\users\\lyenliang\\appdata\\lo\r\n    cal\\lektor-cli\\lib\\include\\site\\python2.7\\PyYAML\" failed with error code 1 in c:\\users\\lyenliang\\appdata\\local\\temp\\pip-bu\r\n    ild-qxh26z\\PyYAML\r\n    c:\\users\\lyenliang\\appdata\\local\\lektor-cli\\lib\\lib\\site-packages\\pip\\_vendor\\requests\\packages\\urllib3\\util\\ssl_.py:90: I\r\n    nsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriat\r\n    ely and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/s\r\n    ecurity.html#insecureplatformwarning.\r\n      InsecurePlatformWarning\r\n\r\nThe error `UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-6` seems to be a problem of PyYAML. \r\n\r\nI wish I could view the content of `c:\\users\\lyenliang\\appdata\\local\\temp\\pip-build-qxh26z\\PyYAML\\setup.py`, but the file doesn't exist after the installation script. \r\n\r\nDoes anyone have an idea about how to solve this problem?\r\n"},"comment":{"url":"https://api.github.com/repos/lektor/lektor/issues/comments/166862913","html_url":"https://github.com/lektor/lektor/issues/27#issuecomment-166862913","issue_url":"https://api.github.com/repos/lektor/lektor/issues/27","id":166862913,"user":{"login":"mitsuhiko","id":7396,"avatar_url":"https://avatars.githubusercontent.com/u/7396?v=3","gravatar_id":"","url":"https://api.github.com/users/mitsuhiko","html_url":"https://github.com/mitsuhiko","followers_url":"https://api.github.com/users/mitsuhiko/followers","following_url":"https://api.github.com/users/mitsuhiko/following{/other_user}","gists_url":"https://api.github.com/users/mitsuhiko/gists{/gist_id}","starred_url":"https://api.github.com/users/mitsuhiko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitsuhiko/subscriptions","organizations_url":"https://api.github.com/users/mitsuhiko/orgs","repos_url":"https://api.github.com/users/mitsuhiko/repos","events_url":"https://api.github.com/users/mitsuhiko/events{/privacy}","received_events_url":"https://api.github.com/users/mitsuhiko/received_events","type":"User","site_admin":false},"created_at":"2015-12-23T10:58:01Z","updated_at":"2015-12-23T10:58:01Z","body":"So if `setup.py install` works, can you try what happens if you do `pip install PyYAML-3.11.zip`?"}}