{"action":"created","issue":{"url":"https://api.github.com/repos/PCMDI/pcmdi_metrics/issues/288","labels_url":"https://api.github.com/repos/PCMDI/pcmdi_metrics/issues/288/labels{/name}","comments_url":"https://api.github.com/repos/PCMDI/pcmdi_metrics/issues/288/comments","events_url":"https://api.github.com/repos/PCMDI/pcmdi_metrics/issues/288/events","html_url":"https://github.com/PCMDI/pcmdi_metrics/issues/288","id":115923430,"number":288,"title":"Issue with the version of the pcmdi_metrics repo?","user":{"login":"jservonnat","id":7254214,"avatar_url":"https://avatars.githubusercontent.com/u/7254214?v=3","gravatar_id":"","url":"https://api.github.com/users/jservonnat","html_url":"https://github.com/jservonnat","followers_url":"https://api.github.com/users/jservonnat/followers","following_url":"https://api.github.com/users/jservonnat/following{/other_user}","gists_url":"https://api.github.com/users/jservonnat/gists{/gist_id}","starred_url":"https://api.github.com/users/jservonnat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jservonnat/subscriptions","organizations_url":"https://api.github.com/users/jservonnat/orgs","repos_url":"https://api.github.com/users/jservonnat/repos","events_url":"https://api.github.com/users/jservonnat/events{/privacy}","received_events_url":"https://api.github.com/users/jservonnat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-11-09T17:17:47Z","updated_at":"2015-11-13T19:47:10Z","closed_at":null,"body":"@doutriaux1 @durack1 Last week I've successfully installed the latest version of the PMP here at IPSL, using the latest install_metrics.bash script available. But the pcmdi_metrics_driver.py I get by running the install script does not make use of unidata (for the unity check/management).\r\nBut if I get directly the pcmdi_metrics repo from github (git clone git://github.com/PCMDI/pcmdi_metrics.git), the pcmdi_metrics_driver.py file I get does use unidata:\r\n```\r\n# Before we do anything else we need to create some units\r\n# Salinity Units\r\nimport unidata\r\nunidata.udunits_wrap.init()\r\n\r\n# Create a dimensionless units named dimless\r\nunidata.addDimensionlessUnit(\"dimless\")\r\n\r\n# Created scaled units for dimless\r\nunidata.addScaledUnit(\"psu\", .001, \"dimless\")\r\nunidata.addScaledUnit(\"PSS-78\", .001, \"dimless\")\r\nunidata.addScaledUnit(\"Practical Salinity Scale 78\", .001, \"dimless\")\r\n```\r\nLastly, if I clone the sources in tmp/metrics of the successful install, and run \"python setup.py install\", the the setup looks successful but the test fails:\r\n```\r\ntest_from_parameter_file (test_from_param.TestFromParam) ... Traceback (most recent call last):\r\n  File \"/data/jservon/PMP_installs/2015-11-06/PCMDI_METRICS/bin/pcmdi_metrics_driver.py\", line 26, in <module>\r\n    unidata.addDimensionlessUnit(\"dimless\")\r\nAttributeError: 'module' object has no attribute 'addDimensionlessUnit'\r\nok\r\n```\r\n(well, it says ok but there is an error and it displays no result)\r\n\r\nSo how can I get the version of the PMP using unidat installed properly?\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/PCMDI/pcmdi_metrics/issues/comments/156539441","html_url":"https://github.com/PCMDI/pcmdi_metrics/issues/288#issuecomment-156539441","issue_url":"https://api.github.com/repos/PCMDI/pcmdi_metrics/issues/288","id":156539441,"user":{"login":"durack1","id":3229632,"avatar_url":"https://avatars.githubusercontent.com/u/3229632?v=3","gravatar_id":"","url":"https://api.github.com/users/durack1","html_url":"https://github.com/durack1","followers_url":"https://api.github.com/users/durack1/followers","following_url":"https://api.github.com/users/durack1/following{/other_user}","gists_url":"https://api.github.com/users/durack1/gists{/gist_id}","starred_url":"https://api.github.com/users/durack1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/durack1/subscriptions","organizations_url":"https://api.github.com/users/durack1/orgs","repos_url":"https://api.github.com/users/durack1/repos","events_url":"https://api.github.com/users/durack1/events{/privacy}","received_events_url":"https://api.github.com/users/durack1/received_events","type":"User","site_admin":false},"created_at":"2015-11-13T19:47:10Z","updated_at":"2015-11-13T19:47:10Z","body":"@jservonnat for completeness the `unidata` stuff linked at the top, was included on the 17th April 2015 in https://github.com/PCMDI/pcmdi_metrics/commit/14648146a4dc9ec04e5027468c99bbfbaab4c7a4 with `SHA1` `1464814`"}}