René's URL Explorer Experiment


Title: AttributeError: 'NoneType' object has no attribute 'convert' with ZoneInfo · Issue #646 · python-pendulum/pendulum · GitHub

Open Graph Title: AttributeError: 'NoneType' object has no attribute 'convert' with ZoneInfo · Issue #646 · python-pendulum/pendulum

X Title: AttributeError: 'NoneType' object has no attribute 'convert' with ZoneInfo · Issue #646 · python-pendulum/pendulum

Description: I am on the latest Pendulum version. I have searched the issues of this repo and believe that this is not a duplicate. OS version and name: 4.19.128-microsoft-standard Linux Pendulum version: 2.1.2 Issue Reproducible example import pendu...

Open Graph Description: I am on the latest Pendulum version. I have searched the issues of this repo and believe that this is not a duplicate. OS version and name: 4.19.128-microsoft-standard Linux Pendulum version: 2.1.2...

X Description: I am on the latest Pendulum version. I have searched the issues of this repo and believe that this is not a duplicate. OS version and name: 4.19.128-microsoft-standard Linux Pendulum version: 2.1.2...

Opengraph URL: https://github.com/python-pendulum/pendulum/issues/646

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"AttributeError: 'NoneType' object has no attribute 'convert' with ZoneInfo","articleBody":"\u003c!--\r\n  Hi there! Thank you for discovering and submitting an issue.\r\n\r\n  Before you submit this; let's make sure of a few things.\r\n  Please make sure the following boxes are ticked if they are correct.\r\n  If not, please try and fulfill these first.\r\n-->\r\n\r\n\u003c!-- Checked checkbox should look like this: [x] -->\r\n- [x] I am on the [latest](https://github.com/sdispater/pendulum/releases/latest) Pendulum version.\r\n- [x] I have searched the [issues](https://github.com/sdispater/pendulum/issues) of this repo and believe that this is not a duplicate.\r\n\r\n\u003c!--\r\n  Once those are done, if you're able to fill in the following list with your information,\r\n  it'd be very helpful to whoever handles the issue.\r\n-->\r\n\r\n- **OS version and name**: 4.19.128-microsoft-standard Linux\r\n- **Pendulum version**: 2.1.2\r\n\r\n## Issue\r\n\u003c!-- Now feel free to write your issue, but please be descriptive! Thanks again 🙌 ❤️ -->\r\n\r\n### Reproducible example\r\n\r\n```\r\nimport pendulum\r\nfrom zoneinfo import ZoneInfo\r\n\r\ntz = ZoneInfo(\"Europe/London\")\r\nmy_datetime = pendulum.now()\r\n\r\nmy_datetime.astimezone(tz)  # AttributeError: 'NoneType' object has no attribute 'convert'\r\n```\r\n\r\n### Description\r\n\r\nThe above error seems to be thrown when calling `pendulum.astimezone()` with a `ZoneInfo` timezone. We are in the process of migrating a project from `pytz` to `zoneinfo`. The above example works perfectly if `pendulum` is replaced with `datetime.datetime`.\r\n\r\nThanks for reading and looking into this!\r\n\r\n\r\n### Expected behaviour\r\n\r\nFor `pendulum.astimezone()` to successfully convert a datetime object with a `ZoneInfo` timezone. \r\n\r\n### Stack trace\r\n\r\n```python\r\n---------------------------------------------------------------------------\r\nAttributeError                            Traceback (most recent call last)\r\nInput In [6], in \u003ccell line: 1>()\r\n----> 1 my_datetime.astimezone(tz)\r\n\r\nFile ~/.cache/pypoetry/virtualenvs/vidacycle_webapps-foslGWoH-py3.9/lib/python3.9/site-packages/pendulum/datetime.py:1467, in DateTime.astimezone(self, tz)\r\n   1466 def astimezone(self, tz=None):\r\n-> 1467     return pendulum.instance(super(DateTime, self).astimezone(tz))\r\n\r\nFile ~/.cache/pypoetry/virtualenvs/vidacycle_webapps-foslGWoH-py3.9/lib/python3.9/site-packages/pendulum/datetime.py:1443, in DateTime.__add__(self, other)\r\n   1440 if not isinstance(other, datetime.timedelta):\r\n   1441     return NotImplemented\r\n-> 1443 return self._add_timedelta_(other)\r\n\r\nFile ~/.cache/pypoetry/virtualenvs/vidacycle_webapps-foslGWoH-py3.9/lib/python3.9/site-packages/pendulum/datetime.py:760, in DateTime._add_timedelta_(self, delta)\r\n    755 elif isinstance(delta, pendulum.Duration):\r\n    756     return self.add(\r\n    757         years=delta.years, months=delta.months, seconds=delta._total\r\n    758     )\r\n--> 760 return self.add(seconds=delta.total_seconds())\r\n\r\nFile ~/.cache/pypoetry/virtualenvs/vidacycle_webapps-foslGWoH-py3.9/lib/python3.9/site-packages/pendulum/datetime.py:667, in DateTime.add(self, years, months, weeks, days, hours, minutes, seconds, microseconds)\r\n    645     return pendulum.datetime(\r\n    646         dt.year,\r\n    647         dt.month,\r\n   (...)\r\n    653         tz=self.tz,\r\n    654     )\r\n    656 dt = self.__class__(\r\n    657     dt.year,\r\n    658     dt.month,\r\n   (...)\r\n    664     tzinfo=UTC,\r\n    665 )\r\n--> 667 dt = self.tz.convert(dt)\r\n    669 return self.__class__(\r\n    670     dt.year,\r\n    671     dt.month,\r\n   (...)\r\n    678     fold=dt.fold,\r\n    679 )\r\n\r\nAttributeError: 'NoneType' object has no attribute 'convert'\r\n```\r\n","author":{"url":"https://github.com/taosharma","@type":"Person","name":"taosharma"},"datePublished":"2022-08-26T14:35:24Z","url":"https://github.com/python-pendulum/pendulum/issues/646"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:3257f267-ced5-1ead-abee-98895316fff4
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCB66:92683:113A2F:17E9A4:6B0464A4
html-safe-noncee00619ccde17cad0fc1498ceb506afd67afb914ee9979f4ee9843d6d03fd478f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjY2OjkyNjgzOjExM0EyRjoxN0U5QTQ6NkIwNDY0QTQiLCJ2aXNpdG9yX2lkIjoiNTI5NzIyODQ3OTMwNDMyODM1NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac732c507520d76166926d5bfd74196356d5c2be7d893e004c81863122b4da0248
hovercard-subject-tagissue:1352355253
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-pendulum/pendulum/646/issue_layout
twitter:imagehttps://opengraph.githubassets.com/95f69e4a53dede2ed83d6d9a1ea5fa86d0f5efbdafceaea5419e4c5b8d15c26d/python-pendulum/pendulum/issues/646
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/95f69e4a53dede2ed83d6d9a1ea5fa86d0f5efbdafceaea5419e4c5b8d15c26d/python-pendulum/pendulum/issues/646
og:image:altI am on the latest Pendulum version. I have searched the issues of this repo and believe that this is not a duplicate. OS version and name: 4.19.128-microsoft-standard Linux Pendulum version: 2.1.2...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametaosharma
hostnamegithub.com
expected-hostnamegithub.com
None2d58451b4bcb73c33c67bfb6b28fb75fe6d5e279daf9b560fa4fd832f3d8c9a6
turbo-cache-controlno-preview
go-importgithub.com/python-pendulum/pendulum git https://github.com/python-pendulum/pendulum.git
octolytics-dimension-user_id191041900
octolytics-dimension-user_loginpython-pendulum
octolytics-dimension-repository_id62095504
octolytics-dimension-repository_nwopython-pendulum/pendulum
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id62095504
octolytics-dimension-repository_network_root_nwopython-pendulum/pendulum
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release03e114520787ad27289207f153520ef97461127c
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python-pendulum/pendulum/issues/646#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-pendulum%2Fpendulum%2Fissues%2F646
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-pendulum%2Fpendulum%2Fissues%2F646
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python-pendulum%2Fpendulum
Reloadhttps://github.com/python-pendulum/pendulum/issues/646
Reloadhttps://github.com/python-pendulum/pendulum/issues/646
Reloadhttps://github.com/python-pendulum/pendulum/issues/646
python-pendulumhttps://github.com/python-pendulum
pendulumhttps://github.com/python-pendulum/pendulum
Codehttps://github.com/python-pendulum/pendulum
Issues211 (211)https://github.com/python-pendulum/pendulum/issues
Pull requests96 (96)https://github.com/python-pendulum/pendulum/pulls
Discussionshttps://github.com/python-pendulum/pendulum/discussions
Actionshttps://github.com/python-pendulum/pendulum/actions
Projectshttps://github.com/python-pendulum/pendulum/projects
Security and qualityhttps://github.com/python-pendulum/pendulum/security
Insightshttps://github.com/python-pendulum/pendulum/insights
https://github.com/python-pendulum/pendulum
New issuehttps://github.com/login?return_to=https://github.com/python-pendulum/pendulum/issues/646
New issuehttps://github.com/login?return_to=https://github.com/python-pendulum/pendulum/issues/646
AttributeError: 'NoneType' object has no attribute 'convert' with ZoneInfohttps://github.com/python-pendulum/pendulum/issues/646#top
https://github.com/taosharma
taosharmahttps://github.com/taosharma
on Aug 26, 2022https://github.com/python-pendulum/pendulum/issues/646#issue-1352355253
latesthttps://github.com/sdispater/pendulum/releases/latest
issueshttps://github.com/sdispater/pendulum/issues
https://github.com/thinkwelltwd
thinkwelltwdhttps://github.com/thinkwelltwd
on Aug 29, 2022https://github.com/python-pendulum/pendulum/issues/646#issuecomment-1230472128
8 monthshttps://github.com/sdispater/pendulum/commit/39842c1151f1d6777324edbb4fe88c9b6283c06a
https://github.com/muhamadBrew
muhamadBrewhttps://github.com/muhamadBrew
on Jul 3, 2023https://github.com/python-pendulum/pendulum/issues/646#issuecomment-1617855459
Sign up for freehttps://github.com/signup?return_to=https://github.com/python-pendulum/pendulum/issues/646
Sign in to commenthttps://github.com/login?return_to=https://github.com/python-pendulum/pendulum/issues/646
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.