Title: Python 3.4.3 Geoalchemy Error · Issue #59 · ODM2/ODM2PythonAPI · GitHub
Open Graph Title: Python 3.4.3 Geoalchemy Error · Issue #59 · ODM2/ODM2PythonAPI
X Title: Python 3.4.3 Geoalchemy Error · Issue #59 · ODM2/ODM2PythonAPI
Description: Attempting to install odm2api on a CentOS 7 machine that is running Python 3.4.3 using the source code from the python 3.x compatibility pull request. While the odm2api installs fine, it is dependent on geoalchemy which raises the follow...
Open Graph Description: Attempting to install odm2api on a CentOS 7 machine that is running Python 3.4.3 using the source code from the python 3.x compatibility pull request. While the odm2api installs fine, it is depende...
X Description: Attempting to install odm2api on a CentOS 7 machine that is running Python 3.4.3 using the source code from the python 3.x compatibility pull request. While the odm2api installs fine, it is depende...
Opengraph URL: https://github.com/ODM2/ODM2PythonAPI/issues/59
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Python 3.4.3 Geoalchemy Error","articleBody":"Attempting to install odm2api on a CentOS 7 machine that is running Python 3.4.3 using the source code from the [python 3.x compatibility](https://github.com/ODM2/ODM2PythonAPI/pull/58) pull request. While the odm2api installs fine, it is dependent on **geoalchemy** which raises the following ImportError:\n\n```\n\u003e\u003e\u003e import odm2api\nutils imported\nTraceback (most recent call last):\n File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\n File \"/usr/lib/python3.4/site-packages/odm2api/__init__.py\", line 1, in \u003cmodule\u003e\n from odm2api.ODMconnection import SessionFactory, dbconnection\n File \"/usr/lib/python3.4/site-packages/odm2api/ODMconnection.py\", line 6, in \u003cmodule\u003e\n from .ODM2.models import Variables as Variable2, setSchema\n File \"/usr/lib/python3.4/site-packages/odm2api/ODM2/models.py\", line 7, in \u003cmodule\u003e\n from geoalchemy import GeometryDDL, GeometryColumn\n File \"/usr/lib64/python3.4/site-packages/geoalchemy/__init__.py\", line 2, in \u003cmodule\u003e\n from geoalchemy.base import *\n File \"/usr/lib64/python3.4/site-packages/geoalchemy/base.py\", line 7, in \u003cmodule\u003e\n from utils import from_wkt\nImportError: cannot import name 'from_wkt'\n```\n\nThis is documented as geoalchemy issue [#41](https://github.com/geoalchemy/geoalchemy/issues/41) and a [pull request](https://github.com/geoalchemy/geoalchemy/pull/42) was created to fix this in November 2015, but hasn't been touched since January 2016.\n\n---\n\nHere is the suggested fix from [#41](https://github.com/geoalchemy/geoalchemy/issues/41)\n\n\u003e In base.py change\n\u003e \n\u003e ```\n\u003e from utils import ...\n\u003e from functions import ...\n\u003e ```\n\u003e \n\u003e to\n\u003e \n\u003e ```\n\u003e from geoalchemy.utils import ...\n\u003e from geoalchemy.functions import ...\n\u003e ```\n\u003e \n\u003e In base.py change any mention of `ColumnProperty.ColumnComparator` to `ColumnProperty.Comparator`\n\u003e \n\u003e In geometry.py replace any calls to the `has_key` method with the corresponding 'in' expression.\n","author":{"url":"https://github.com/Castronova","@type":"Person","name":"Castronova"},"datePublished":"2016-04-19T23:13:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/59/ODM2PythonAPI/issues/59"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ffa49a02-2b35-fd17-3c2e-56fd6103c61b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AF6C:8CD90:24675BF:341D868:6A58EE08 |
| html-safe-nonce | 465973650bb2507d2499f3a47fa581c8d3c6b0234cc66fce6f1f51d761a2e464 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjZDOjhDRDkwOjI0Njc1QkY6MzQxRDg2ODo2QTU4RUUwOCIsInZpc2l0b3JfaWQiOiI4ODIyNzg1MzYwOTczNTkwMDI1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 7f874d6b10d5b8b0bef3db3c5cc1a9fbe7f61e04ce0d56169ce85eaf1d4ea4ff |
| hovercard-subject-tag | issue:149608831 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ODM2/ODM2PythonAPI/59/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c8cb1713213aadbcc5f092cfc28436a8dc37a8892ff38fe0a29909135437cb3b/ODM2/ODM2PythonAPI/issues/59 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c8cb1713213aadbcc5f092cfc28436a8dc37a8892ff38fe0a29909135437cb3b/ODM2/ODM2PythonAPI/issues/59 |
| og:image:alt | Attempting to install odm2api on a CentOS 7 machine that is running Python 3.4.3 using the source code from the python 3.x compatibility pull request. While the odm2api installs fine, it is depende... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Castronova |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6 |
| turbo-cache-control | no-preview |
| go-import | github.com/ODM2/ODM2PythonAPI git https://github.com/ODM2/ODM2PythonAPI.git |
| octolytics-dimension-user_id | 12091612 |
| octolytics-dimension-user_login | ODM2 |
| octolytics-dimension-repository_id | 34542098 |
| octolytics-dimension-repository_nwo | ODM2/ODM2PythonAPI |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 34542098 |
| octolytics-dimension-repository_network_root_nwo | ODM2/ODM2PythonAPI |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8aae7b8d6caacacf5c66eaeb2702d8dc88d85b4a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width