Title: Issue importing proplot · Issue #454 · proplot-dev/proplot · GitHub
Open Graph Title: Issue importing proplot · Issue #454 · proplot-dev/proplot
X Title: Issue importing proplot · Issue #454 · proplot-dev/proplot
Description: I have received the following error when trying to import proplot. I have tried switching to prior versions of the "packaging" module (with no luck) since it seems to have an issue with that in cartopy when proplot is imported. Is this a...
Open Graph Description: I have received the following error when trying to import proplot. I have tried switching to prior versions of the "packaging" module (with no luck) since it seems to have an issue with that in car...
X Description: I have received the following error when trying to import proplot. I have tried switching to prior versions of the "packaging" module (with no luck) since it seems to have an issue with t...
Opengraph URL: https://github.com/proplot-dev/proplot/issues/454
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Issue importing proplot","articleBody":"I have received the following error when trying to import proplot. I have tried switching to prior versions of the \"packaging\" module (with no luck) since it seems to have an issue with that in cartopy when proplot is imported. Is this a proplot issue, cartopy issue, or some other issue? Any advice on how to fix it?\r\n\r\nproplot version is 0.9.7\r\ncartopy version is 0.22.0\r\npacking versions 21.3 up to 24.0 have been tested\r\nmatplotlib version 3.4.3\r\npython version is 3.9\r\n\r\n```\r\nIn [1]: import proplot\r\n---------------------------------------------------------------------------\r\nAttributeError Traceback (most recent call last)\r\nCell In[1], line 1\r\n----\u003e 1 import proplot\r\n\r\nFile ~/anaconda3/envs/cf3/lib/python3.9/site-packages/proplot/__init__.py:38\r\n 36 from .colors import * # noqa: F401 F403\r\n 37 with _benchmark('ticker'):\r\n---\u003e 38 from .ticker import * # noqa: F401 F403\r\n 39 with _benchmark('scale'):\r\n 40 from .scale import * # noqa: F401 F403\r\n\r\nFile ~/anaconda3/envs/cf3/lib/python3.9/site-packages/proplot/ticker.py:18\r\n 16 try:\r\n 17 import cartopy.crs as ccrs\r\n---\u003e 18 from cartopy.mpl.ticker import (\r\n 19 _PlateCarreeFormatter, LatitudeFormatter, LongitudeFormatter\r\n 20 )\r\n 21 except ModuleNotFoundError:\r\n 22 ccrs = None\r\n\r\nFile ~/anaconda3/envs/cf3/lib/python3.9/site-packages/cartopy/mpl/ticker.py:13\r\n 10 import numpy as np\r\n 12 import cartopy.crs as ccrs\r\n---\u003e 13 from cartopy.mpl.geoaxes import GeoAxes\r\n 16 class _PlateCarreeFormatter(Formatter):\r\n 17 \"\"\"\r\n 18 Base class for formatting ticks on geographical axes using a\r\n 19 rectangular projection (e.g. Plate Carree, Mercator).\r\n 20 \r\n 21 \"\"\"\r\n\r\nFile ~/anaconda3/envs/cf3/lib/python3.9/site-packages/cartopy/mpl/geoaxes.py:43\r\n 41 import cartopy.mpl.contour\r\n 42 import cartopy.mpl.feature_artist as feature_artist\r\n---\u003e 43 import cartopy.mpl.geocollection\r\n 44 import cartopy.mpl.patch as cpatch\r\n 45 from cartopy.mpl.slippy_image_artist import SlippyImageArtist\r\n\r\nFile ~/anaconda3/envs/cf3/lib/python3.9/site-packages/cartopy/mpl/geocollection.py:13\r\n 9 import numpy.ma as ma\r\n 10 import packaging\r\n---\u003e 13 _MPL_VERSION = packaging.version.parse(mpl.__version__)\r\n 16 def _split_wrapped_mesh_data(C, mask):\r\n 17 \"\"\"\r\n 18 Helper function for splitting GeoQuadMesh array values between the\r\n 19 pcolormesh and pcolor objects when wrapping. Apply a mask to the grid\r\n 20 cells that should not be plotted with each method.\r\n 21 \r\n 22 \"\"\"\r\n\r\nAttributeError: module 'packaging' has no attribute 'version'\r\n```","author":{"url":"https://github.com/chfite","@type":"Person","name":"chfite"},"datePublished":"2024-03-26T20:10:19.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/454/proplot/issues/454"}
| 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:9bcb9a0e-2726-2573-4b85-a864c057ba61 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CA7A:78659:1C61E89:27C109C:697BA693 |
| html-safe-nonce | e6e4ee6cbfcba3134d01a2be593f2a7ea158173b2173a97999d97520964987cf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQTdBOjc4NjU5OjFDNjFFODk6MjdDMTA5Qzo2OTdCQTY5MyIsInZpc2l0b3JfaWQiOiI0OTg4ODE5NjQ2NjkwNjAwNTk2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | be863879d0a4154a2f2a3c4b3ef5ab4f3726baf8984f53806d87bc69ee2afbca |
| hovercard-subject-tag | issue:2209218709 |
| 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/proplot-dev/proplot/454/issue_layout |
| twitter:image | https://opengraph.githubassets.com/34eac4bfd86fd0f1555b2b1f4fbd49d8787ed462400c5a3ad9972ab0300ed8f0/proplot-dev/proplot/issues/454 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/34eac4bfd86fd0f1555b2b1f4fbd49d8787ed462400c5a3ad9972ab0300ed8f0/proplot-dev/proplot/issues/454 |
| og:image:alt | I have received the following error when trying to import proplot. I have tried switching to prior versions of the "packaging" module (with no luck) since it seems to have an issue with that in car... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | chfite |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7ba9ae7380317898f1b98f4cf41e78605ff2d68007cb4db4e46bdaf7e9423d2e |
| turbo-cache-control | no-preview |
| go-import | github.com/proplot-dev/proplot git https://github.com/proplot-dev/proplot.git |
| octolytics-dimension-user_id | 108025793 |
| octolytics-dimension-user_login | proplot-dev |
| octolytics-dimension-repository_id | 113293661 |
| octolytics-dimension-repository_nwo | proplot-dev/proplot |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 113293661 |
| octolytics-dimension-repository_network_root_nwo | proplot-dev/proplot |
| 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 | d52dd9b71f0e5da9cfd694fb2faae78a81d8e46f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width