Title: IsADirectoryError while getting local timezone · Issue #256 · python-pendulum/pendulum · GitHub
Open Graph Title: IsADirectoryError while getting local timezone · Issue #256 · python-pendulum/pendulum
X Title: IsADirectoryError while getting local timezone · Issue #256 · python-pendulum/pendulum
Description: Maybe related to 6ee68b9 I'm seeing an error with this test.py: import pendulum pendulum.now() Traceback (most recent call last): File "test.py", line 2, in
Open Graph Description: Maybe related to 6ee68b9 I'm seeing an error with this test.py: import pendulum pendulum.now() Traceback (most recent call last): File "test.py", line 2, in
X Description: Maybe related to 6ee68b9 I'm seeing an error with this test.py: import pendulum pendulum.now() Traceback (most recent call last): File "test.py", line 2, in <module> pendulum.no...
Opengraph URL: https://github.com/python-pendulum/pendulum/issues/256
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"IsADirectoryError while getting local timezone","articleBody":"Maybe related to https://github.com/sdispater/pendulum/commit/6ee68b9fdfb1bfd25db6c946d110cc4578a86958\r\n\r\nI'm seeing an error with this test.py:\r\n```\r\nimport pendulum\r\npendulum.now()\r\n```\r\n```\r\nTraceback (most recent call last):\r\n File \"test.py\", line 2, in \u003cmodule>\r\n pendulum.now()\r\n File \"/mnt/iscsi/10_web_cem_dev/work/axc/cem-one-times/env/lib64/python3.6/site-packages/pendulum/__init__.py\", line 207, in now\r\n dt = _datetime.datetime.now(local_timezone())\r\n File \"/mnt/iscsi/10_web_cem_dev/work/axc/cem-one-times/env/lib64/python3.6/site-packages/pendulum/tz/__init__.py\", line 59, in local_timezone\r\n return get_local_timezone()\r\n File \"/mnt/iscsi/10_web_cem_dev/work/axc/cem-one-times/env/lib64/python3.6/site-packages/pendulum/tz/local_timezone.py\", line 31, in get_local_timezone\r\n tz = _get_system_timezone()\r\n File \"/mnt/iscsi/10_web_cem_dev/work/axc/cem-one-times/env/lib64/python3.6/site-packages/pendulum/tz/local_timezone.py\", line 59, in _get_system_timezone\r\n return _get_unix_timezone()\r\n File \"/mnt/iscsi/10_web_cem_dev/work/axc/cem-one-times/env/lib64/python3.6/site-packages/pendulum/tz/local_timezone.py\", line 210, in _get_unix_timezone\r\n return Timezone('/'.join(tzpath))\r\n File \"/mnt/iscsi/10_web_cem_dev/work/axc/cem-one-times/env/lib64/python3.6/site-packages/pendulum/tz/timezone.py\", line 30, in __init__\r\n tz = read(name, extend=extended)\r\n File \"/mnt/iscsi/10_web_cem_dev/work/axc/cem-one-times/env/lib64/python3.6/site-packages/pendulum/tz/zoneinfo/__init__.py\", line 9, in read\r\n return Reader(extend=extend).read_for(name)\r\n File \"/mnt/iscsi/10_web_cem_dev/work/axc/cem-one-times/env/lib64/python3.6/site-packages/pendulum/tz/zoneinfo/reader.py\", line 52, in read_for\r\n return self.read(file_path)\r\n File \"/mnt/iscsi/10_web_cem_dev/work/axc/cem-one-times/env/lib64/python3.6/site-packages/pendulum/tz/zoneinfo/reader.py\", line 63, in read\r\n with open(file_path, 'rb') as fd:\r\nIsADirectoryError: [Errno 21] Is a directory: '/mnt/iscsi/10_web_cem_dev/work/axc/cem-one-times/env/lib64/python3.6/site-packages/pytzdata/zoneinfo/Pacific'\r\n```\r\nThis is the content of my `/etc/sysconfig/clock`:\r\n```\r\nZONE=\"US/Pacific\"\r\n```\r\n\r\nI think it should be trying to read `env/lib64/python3.6/site-packages/pytzdata/zoneinfo/US/Pacific`","author":{"url":"https://github.com/aczapszys","@type":"Person","name":"aczapszys"},"datePublished":"2018-07-23T21:59:09Z","url":"https://github.com/python-pendulum/pendulum/issues/256"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:4f036b3b-7f4a-ce0c-44a2-bdabefba6ff6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D798:1FA32B:90BDB1:C5C81E:6B047F68 |
| html-safe-nonce | 1207d028ef7ad1379adbb6357a637817edadca665fdb665ca479189602148ec3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENzk4OjFGQTMyQjo5MEJEQjE6QzVDODFFOjZCMDQ3RjY4IiwidmlzaXRvcl9pZCI6IjUzMDM1MDIwNjUwMTkxNTgzNzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 834e1c48ea0fdb1121fba9271b1fd900063b807418fb4108572d877e7272ef5a |
| hovercard-subject-tag | issue:343811163 |
| 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/python-pendulum/pendulum/256/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f2976516facb331b18ce2e7ccd58f6d298d24b387cd56202c2dc8eb021e997c3/python-pendulum/pendulum/issues/256 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f2976516facb331b18ce2e7ccd58f6d298d24b387cd56202c2dc8eb021e997c3/python-pendulum/pendulum/issues/256 |
| og:image:alt | Maybe related to 6ee68b9 I'm seeing an error with this test.py: import pendulum pendulum.now() Traceback (most recent call last): File "test.py", line 2, in |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | aczapszys |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0366ddfb372682a32e92a5d86155cb08fa83e5bbe79953a968789f2f7e24c511 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-pendulum/pendulum git https://github.com/python-pendulum/pendulum.git |
| octolytics-dimension-user_id | 191041900 |
| octolytics-dimension-user_login | python-pendulum |
| octolytics-dimension-repository_id | 62095504 |
| octolytics-dimension-repository_nwo | python-pendulum/pendulum |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 62095504 |
| octolytics-dimension-repository_network_root_nwo | python-pendulum/pendulum |
| 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 | ed3f2e01f6b7672780c586c8af0e72726374d7b6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width