René's URL Explorer Experiment


Title: Bug: Error when running multi-processing populate with tls=False · Issue #1374 · datajoint/datajoint-python · GitHub

Open Graph Title: Bug: Error when running multi-processing populate with tls=False · Issue #1374 · datajoint/datajoint-python

X Title: Bug: Error when running multi-processing populate with tls=False · Issue #1374 · datajoint/datajoint-python

Description: Bug Report Description When running a populate of a table with dj.config.database.use_tls = False, when multiprocessing (e.g. processes=5) it fails. Works with use_tls = True. Reproducibility minimal example import datajoint as dj dj.con...

Open Graph Description: Bug Report Description When running a populate of a table with dj.config.database.use_tls = False, when multiprocessing (e.g. processes=5) it fails. Works with use_tls = True. Reproducibility minim...

X Description: Bug Report Description When running a populate of a table with dj.config.database.use_tls = False, when multiprocessing (e.g. processes=5) it fails. Works with use_tls = True. Reproducibility minim...

Opengraph URL: https://github.com/datajoint/datajoint-python/issues/1374

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bug: Error when running multi-processing populate with tls=False","articleBody":"## Bug Report\n\n### Description\nWhen running  a populate of a table with dj.config.database.use_tls = False, when multiprocessing (e.g. processes=5) it fails. Works with use_tls = True.\n\n### Reproducibility\nminimal example\n\n```\nimport datajoint as dj\ndj.config.database.use_tls = False\ndj.conn() # using datajoint.json\nschema = dj.Schema(\"TEST\")\n\n@schema\nclass Numbers(dj.Lookup):\n    definition = \"\"\"\n    number: int64\n    \"\"\"\n    contents = [(0,), (1,), (2,), (4,), (8,)]\n\n@schema\nclass NumbersSquared(dj.Computed):\n    definition = \"\"\"\n    -\u003e Numbers\n    ---\n    squared: int64\n    \"\"\"\n\n    def make(self, key):\n        self.insert1({**key, \"squared\": key[\"number\"] ** 2})\nNumbersSquared.populate(suppress_errors=True, reserve_jobs=True, processes=5)\n```\n\n\n\nfails with \n```\n---------------------------------------------------------------------------\nAttributeError                            Traceback (most recent call last)\nCell In[1], line 23\n     21     def make(self, key):\n     22         self.insert1({**key, \"squared\": key[\"number\"] ** 2})\n---\u003e 23 NumbersSquared.populate(suppress_errors=True, reserve_jobs=True, processes=5)\n\nFile ~/datajoint-python/src/datajoint/autopopulate.py:366, in AutoPopulate.populate(self, suppress_errors, return_exception_objects, reserve_jobs, max_calls, display_progress, processes, make_kwargs, priority, refresh, *restrictions)\n    363     raise DataJointError(\"Populate cannot be called during a transaction.\")\n    365 if reserve_jobs:\n--\u003e 366     return self._populate_distributed(\n    367         *restrictions,\n    368         suppress_errors=suppress_errors,\n    369         return_exception_objects=return_exception_objects,\n    370         max_calls=max_calls,\n    371         display_progress=display_progress,\n    372         processes=processes,\n    373         make_kwargs=make_kwargs,\n    374         priority=priority,\n    375         refresh=refresh,\n    376     )\n    377 else:\n    378     return self._populate_direct(\n    379         *restrictions,\n    380         suppress_errors=suppress_errors,\n   (...)    385         make_kwargs=make_kwargs,\n    386     )\n\nFile ~/datajoint-python/src/datajoint/autopopulate.py:525, in AutoPopulate._populate_distributed(self, suppress_errors, return_exception_objects, max_calls, display_progress, processes, make_kwargs, priority, refresh, *restrictions)\n    521         # status is False means job was already reserved\n    522 else:\n    523     # spawn multiple processes\n    524     self.connection.close()\n--\u003e 525     del self.connection._conn.ctx  # SSLContext is not pickleable\n    526     with (\n    527         mp.Pool(processes, _initialize_populate, (self, self.jobs, populate_kwargs)) as pool,\n    528         tqdm(desc=\"Processes: \", total=nkeys)\n    529         if display_progress\n    530         else contextlib.nullcontext() as progress_bar,\n    531     ):\n    532         for status in pool.imap(_call_populate1, keys, chunksize=1):\n\nAttributeError: 'Connection' object has no attribute 'ctx'\n```\n\nUbuntu 24.04, python 3.12.11\nMySQL - remotely accessed myslq-latest docker (MySQL Server 9.6.0-1.el9)\nDataJoint Version : DataJoint 2.0.0a27\n\n### Expected Behavior\nDelete ctx only if it  exist\n\n\n```\nif getattr(self.connection._conn, 'ctx', False):\n    del self.connection._conn.ctx\n```\n\n\n","author":{"url":"https://github.com/arturoptophys","@type":"Person","name":"arturoptophys"},"datePublished":"2026-02-03T17:18:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1374/datajoint-python/issues/1374"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:9a8c0f05-62df-918b-7921-962726d4f2bd
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB90E:1DEA4C:BA128B:BE27A5:6A4DB87E
html-safe-noncecd9f2b7cfa6473b23d83b707602b67a29de261f7bc338c1e0194397267bbc5e0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTBFOjFERUE0QzpCQTEyOEI6QkUyN0E1OjZBNERCODdFIiwidmlzaXRvcl9pZCI6IjQ3Nzk3ODU1NjgzODc5NzExOTgiLCJyZWdpb25fZWRnZSI6InNlYSIsInJlZ2lvbl9yZW5kZXIiOiJzZWEifQ==
visitor-hmacb97c4b02412a52c1fee1a6eede065db32bff48bb0cfd384842bbb0fe81960726
hovercard-subject-tagissue:3892326399
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/datajoint/datajoint-python/1374/issue_layout
twitter:imagehttps://opengraph.githubassets.com/71a73f24b59c0f9776ee5fd70c61cefaeb2b2c848d1722c9ab1e6d73b2d25c84/datajoint/datajoint-python/issues/1374
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/71a73f24b59c0f9776ee5fd70c61cefaeb2b2c848d1722c9ab1e6d73b2d25c84/datajoint/datajoint-python/issues/1374
og:image:altBug Report Description When running a populate of a table with dj.config.database.use_tls = False, when multiprocessing (e.g. processes=5) it fails. Works with use_tls = True. Reproducibility minim...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamearturoptophys
hostnamegithub.com
expected-hostnamegithub.com
None06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33
turbo-cache-controlno-preview
go-importgithub.com/datajoint/datajoint-python git https://github.com/datajoint/datajoint-python.git
octolytics-dimension-user_id2375501
octolytics-dimension-user_logindatajoint
octolytics-dimension-repository_id5866704
octolytics-dimension-repository_nwodatajoint/datajoint-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id5866704
octolytics-dimension-repository_network_root_nwodatajoint/datajoint-python
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
release32f7b614aca06e6bbd89842b1370df1328264f68
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/datajoint/datajoint-python/issues/1374#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdatajoint%2Fdatajoint-python%2Fissues%2F1374
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdatajoint%2Fdatajoint-python%2Fissues%2F1374
Sign up https://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=datajoint%2Fdatajoint-python
Reloadhttps://github.com/datajoint/datajoint-python/issues/1374
Reloadhttps://github.com/datajoint/datajoint-python/issues/1374
Reloadhttps://github.com/datajoint/datajoint-python/issues/1374
Please reload this pagehttps://github.com/datajoint/datajoint-python/issues/1374
datajoint https://github.com/datajoint
datajoint-pythonhttps://github.com/datajoint/datajoint-python
Notifications https://github.com/login?return_to=%2Fdatajoint%2Fdatajoint-python
Fork 96 https://github.com/login?return_to=%2Fdatajoint%2Fdatajoint-python
Star 194 https://github.com/login?return_to=%2Fdatajoint%2Fdatajoint-python
Code https://github.com/datajoint/datajoint-python
Issues 7 https://github.com/datajoint/datajoint-python/issues
Pull requests 4 https://github.com/datajoint/datajoint-python/pulls
Discussions https://github.com/datajoint/datajoint-python/discussions
Actions https://github.com/datajoint/datajoint-python/actions
Security and quality 0 https://github.com/datajoint/datajoint-python/security
Insights https://github.com/datajoint/datajoint-python/pulse
Code https://github.com/datajoint/datajoint-python
Issues https://github.com/datajoint/datajoint-python/issues
Pull requests https://github.com/datajoint/datajoint-python/pulls
Discussions https://github.com/datajoint/datajoint-python/discussions
Actions https://github.com/datajoint/datajoint-python/actions
Security and quality https://github.com/datajoint/datajoint-python/security
Insights https://github.com/datajoint/datajoint-python/pulse
#1377https://github.com/datajoint/datajoint-python/pull/1377
Bug: Error when running multi-processing populate with tls=Falsehttps://github.com/datajoint/datajoint-python/issues/1374#top
#1377https://github.com/datajoint/datajoint-python/pull/1377
https://github.com/dimitri-yatsenko
bugIndicates an unexpected problem or unintended behaviorhttps://github.com/datajoint/datajoint-python/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/arturoptophys
arturoptophyshttps://github.com/arturoptophys
on Feb 3, 2026https://github.com/datajoint/datajoint-python/issues/1374#issue-3892326399
dimitri-yatsenkohttps://github.com/dimitri-yatsenko
bugIndicates an unexpected problem or unintended behaviorhttps://github.com/datajoint/datajoint-python/issues?q=state%3Aopen%20label%3A%22bug%22
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

Viewport: width=device-width


URLs of crawlers that visited me.