{ "id": "126300", "key": "TIMOB-16452", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2016-09-02T07:41:52.000+0000", "created": "2014-02-12T02:12:56.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-03-23T22:33:37.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": "10207", "name": "Tooling" } ], "description": "I can’t generate the jsca file, although I have installed pyyaml following the instructions in the error message (see below).\r\n\r\n{code}\r\n(titanium_mobile)titanium_mobile (master)$ time scons iphone=1 \r\nscons: Reading SConscript files ...\r\nBuilding MobileSDK version 3.3.0, githash 7d1bd72\r\nscons: Reading SConscript files ...\r\nscons: done reading SConscript files.\r\nscons: Building targets ...\r\npackage_sdk([\"dummy-sdk-target\"], [])\r\nPackaging MobileSDK (3.3.0)...\r\nnode-appc = git://github.com/appcelerator/node-appc.git\r\nCalling npm from /Users/matt/Documents/Appcelerator/src/Appcelerator/titanium_mobile\r\nGenerating JSCA...\r\n/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python /Users/matt/Documents/Appcelerator/src/Appcelerator/titanium_mobile/apidoc/docgen.py -f jsca --stdout\r\nFailed to generate JSCA JSON. Output:\r\nYou don't have pyyaml!\r\n\r\nYou can install it with:\r\n\r\n> sudo easy_install pyyaml\r\n\r\n\r\n\r\nscons: *** [dummy-sdk-target] Explicit exit, status 1\r\nscons: building terminated because of errors.\r\nException TypeError: \"'NoneType' object is not callable\" in > ignored\r\nException TypeError: \"'NoneType' object is not callable\" in > ignored\r\n\r\nreal 0m8.317s\r\nuser 0m6.272s\r\nsys 0m2.444s\r\n{code}\r\n\r\nI ran both \"easy_install pyyaml\" (as instructed in the error message) and \"pip install pyyaml\", to no avail.\r\n\r\nThis didn't work either:\r\n\r\n{code}\r\nsudo port install libyaml\r\nsudo port install py27-yaml\r\n{code}\r\n\r\nHowever, with the two ports installed (i.e. libyaml and py27-yaml) I was able to run \"./apidoc/docgen.py -f jsca\" manually (outside of scons), and this worked on my MacBook Pro. This fix will not work on non-Mac platforms.\r\n\r\nThe SDK's build infrastructure \".../apidoc/docgen.py -f jsca --stdout\" doesn't work (it's as if the \"--stdout\" is piped to /dev/null by the scons process).\r\n\r\n", "attachment": [], "flagged": false, "summary": "scons doesn't build api.jsca", "creator": { "name": "mlangston", "key": "mlangston", "displayName": "Matt Langston", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mlangston", "key": "mlangston", "displayName": "Matt Langston", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "MacBook Pro", "comment": { "comments": [ { "id": "292575", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "You need to make sure you have all of the Python dependencies correctly installed: https://wiki.appcelerator.org/display/guides2/Installing+Required+Python+Packages.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-02-12T04:46:37.000+0000", "updated": "2014-02-12T04:46:37.000+0000" }, { "id": "395188", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "The Python-based scons build has been deprecated.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2016-09-02T07:41:52.000+0000", "updated": "2016-09-02T07:41:52.000+0000" }, { "id": "415452", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as Won't Fix with reference to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-23T22:33:37.000+0000", "updated": "2017-03-23T22:33:37.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }