{ "id": "82559", "key": "AC-2881", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-12-19T16:31:32.000+0000", "created": "2011-11-09T06:39:14.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:47:50.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14551", "name": "Studio", "description": "Please enter tickets related to Titanium Studio here." } ], "description": "I wanted to try out new V8 engine, but can't compile my application (enabling/disabling V8 has no influence). Compiling new blank project also fails.\r\n\r\n\r\nHere is trace log:\r\n\r\n{code}\r\n[ERROR] Exception occured while building Android project:\r\n[ERROR] Traceback (most recent call last):\r\n[ERROR] File \"D:\\Application Data\\Titanium\\mobilesdk\\win32\\1.8.0.1\\android\\builder.py\", line 2034, in \r\n[ERROR] s.build_and_run(True, avd_id, device_args=device_args)\r\n[ERROR] File \"D:\\Application Data\\Titanium\\mobilesdk\\win32\\1.8.0.1\\android\\builder.py\", line 1772, in build_and_run\r\n[ERROR] self.copy_project_resources()\r\n[ERROR] File \"D:\\Application Data\\Titanium\\mobilesdk\\win32\\1.8.0.1\\android\\builder.py\", line 668, in copy_project_resources\r\n[ERROR] requireIndex.generateJSON(self.assets_dir, os.path.join(self.assets_dir, \"index.json\"))\r\n[ERROR] File \"D:\\Application Data\\Titanium\\mobilesdk\\win32\\1.8.0.1\\android\\requireIndex.py\", line 18, in generateJSON\r\n[ERROR] index[os.path.join(os.path.relpath(dirpath, projectDir), name)] = 1\r\n[ERROR] AttributeError: 'module' object has no attribute 'relpath'\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: 1.8.0.1 won't build on Windows", "creator": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "* Titanium SDK version: 1.8.0.1 (11/08/11 23:56 08eb04e...)\r\n* Windows XP x86 & x64\r\n* Android 2.2 (Samsung Galaxy Tab)\r\n* Titanium Studio, build: 1.1.0.201111081936", "comment": { "comments": [ { "id": "173266", "author": { "name": "byf", "key": "byf", "displayName": "Zdenek Farana", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I believe the building process uses Python older than 2.6 (relpath was introduced in 2.6). My workaround was defining own relpath function inside requireIndex.py file. I've used following implementation: http://www.saltycrane.com/blog/2010/03/ospathrelpath-source-code-python-25/. The build started to work after patching that.\r\n\r\nHowever, my app didn't work properly either (I don't know, it seems no events were firing etc.), so I can't confirm if the workaround truly solves the issue.", "updateAuthor": { "name": "byf", "key": "byf", "displayName": "Zdenek Farana", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-18T08:44:53.000+0000", "updated": "2011-11-18T08:46:21.000+0000" }, { "id": "173267", "author": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Yeah, I tried the same thing, build process can run (from second attempt), but app won't run (some JSON file doesn't get generated). I stopped debugging there, Python is language I don't know (although, I would like to learn it) and I don't have much time to explore.\r\n\r\n\r\nI also tried to install new version of Python as described in Wiki, but that doesn't seem to have affect.\r\n\r\n\r\n\r\nNext week I'll have 32-bit Windows back, 64-bit doesn't have any meaning anyway when everything else is 32-bit. Hope then I'll succeed to compile my project and finally see how v8 performs.", "updateAuthor": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2011-11-18T09:04:43.000+0000", "updated": "2011-11-18T09:04:43.000+0000" }, { "id": "173462", "author": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "I tried with Windows 32-bit, but getting same error.", "updateAuthor": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2011-11-21T04:48:41.000+0000", "updated": "2011-11-21T04:48:41.000+0000" }, { "id": "173981", "author": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "I managed to compile simple project by using this fix:\r\n\r\n\r\nrequireIndex.py\r\n\r\n{code}\r\n# Upgrade Python versions less than 2.5...\r\nif not hasattr(os.path, \"relpath\"):\r\n # If this is being run on earlier versions of Python than 2.6, monkeypatch \r\n # in something resembling missing standard library functionality.\r\n if sys.version_info[0] == 2 and sys.version_info[1] < 6:\r\n def relpath(longPath, basePath):\r\n if not longPath.startswith(basePath):\r\n raise RuntimeError(\"Unexpected arguments\")\r\n if longPath == basePath:\r\n return \".\"\r\n i = len(basePath)\r\n if not basePath.endswith(os.path.sep):\r\n i += len(os.path.sep)\r\n return longPath[i:]\r\n\r\n os.path.relpath = relpath\r\n\r\n\r\n{code}\r\n\r\n\r\nSo, I think it's obvious that the problem is old version of Python that build scripts use (I hope this will be upgraded yesterday :) ).", "updateAuthor": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2011-11-25T05:44:17.000+0000", "updated": "2011-11-25T05:44:17.000+0000" }, { "id": "175340", "author": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Thanks for accepting this issue, fixing it and letting me know!\r\n\r\n\r\nDon't know when or what fixed this issue, but now it works without a fix from my last comment.\r\n\r\nI tested with:\r\n\r\n* Titanium SDK version: 1.8.0.1 (12/07/11 18:04 264c7fc...)\r\n* Titanium Studio, build: 1.0.7.201112061404\r\n* Windows XP", "updateAuthor": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2011-12-08T02:03:46.000+0000", "updated": "2011-12-08T02:03:46.000+0000" }, { "id": "176614", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Ivan\r\n\r\nI am sorry that it has taken this long to review your ticket. We are attempting to improve this going forward.\r\n\r\nThank you for your very conscientious use of JIRA; in the way you file reports, help other users, and report back when you have discovered that your tickets have been fixed (as you have with this one). It's all very much noted and appreciated.\r\n\r\nI will close this, in response to your last comment.\r\n", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-19T16:30:06.000+0000", "updated": "2011-12-19T16:30:06.000+0000" }, { "id": "176694", "author": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "updateAuthor": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2011-12-20T06:00:53.000+0000", "updated": "2011-12-20T06:00:53.000+0000" }, { "id": "287914", "author": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Ivan,\r\n\r\nClosing this issues since the issue can't be reproduced with 3.2GA", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-01-12T19:26:45.000+0000", "updated": "2014-01-12T19:26:45.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }