René's URL Explorer Experiment


Title: Installing Slycot (openmp) breaks numpy · Issue #230 · python-control/Slycot · GitHub

Open Graph Title: Installing Slycot (openmp) breaks numpy · Issue #230 · python-control/Slycot

X Title: Installing Slycot (openmp) breaks numpy · Issue #230 · python-control/Slycot

Description: After installing slycot in a conda environment, a kernel crash occurs when trying to solve a linear system with a singular matrix. I narrowed the issue down to the following: slycot from conda-forge depends on libflang >=5.0.0,<6.0.0.a0 ...

Open Graph Description: After installing slycot in a conda environment, a kernel crash occurs when trying to solve a linear system with a singular matrix. I narrowed the issue down to the following: slycot from conda-forg...

X Description: After installing slycot in a conda environment, a kernel crash occurs when trying to solve a linear system with a singular matrix. I narrowed the issue down to the following: slycot from conda-forg...

Opengraph URL: https://github.com/python-control/Slycot/issues/230

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Installing Slycot (openmp) breaks numpy","articleBody":"After installing slycot in a conda environment, a kernel crash occurs when trying to solve a linear system with a singular matrix.\r\n\r\nI narrowed the issue down to the following:\r\n- slycot from conda-forge depends on libflang \u003e=5.0.0,\u003c6.0.0.a0\r\n- libflang 5.0.0 depends on openmp 5.0.0\r\n- openmp 5.0.0 overwrites \"libiomp5md.dll\" that was installed by numpy. The two dlls are very different in size (2mb for the numpy one, 600kb for the openmp one)\r\n\r\nOpenmp places its \"libiomp5md.dll\" in Library\\bin.\r\nThe version from numpy is either in Library\\bin (channel main) or directly in bin (conda-forge).\r\n\r\n### Actual Behavior\r\n\r\nUsing numpy.linalg.solve on singular matrix with dimension over 149 crashes the Kernel.\r\n\r\n### Expected Behavior\r\n\r\nExpected a \"LinAlgError: Singular matrix\" as it is shown with matrices up to the dimension of 149. \r\n\r\n### Steps to Reproduce\r\n\r\n- Create a new conda environment with python 3.11, numpy (and ipython for convenience)\r\n  - `mamba create -n slycot_crash python=3.11 numpy ipython -c conda-forge`\r\n- activate the environment\r\n  - `mamba activate slycot_crash`\r\n- enter ipython\r\n  - `ipython`\r\n- paste and run the code below to confirm it works as expected (raises LinAlgError)\r\n- exit ipython\r\n  -  `exit`\r\n- install openmp=5\r\n  - `mamba install openmp=5 -c conda-forge`\r\n- enter ipython and run the code below again to confirm kernel crash\r\n- (optional) change n=149 and it only fails if the size is 150 or larger\r\n\r\n```\r\nimport numpy as np\r\n\r\nn = 150\r\nA = np.random.rand(n,n)\r\nA[-1,:] = np.zeros((1,n)) # make matrix singular\r\n\r\nb = np.random.rand(n)\r\n\r\nx = np.linalg.solve(A, b)\r\n```","author":{"url":"https://github.com/chnce","@type":"Person","name":"chnce"},"datePublished":"2024-01-26T09:32:06.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":12},"url":"https://github.com/230/Slycot/issues/230"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:6987b4aa-806c-49e8-8167-f1a2011b375a
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9502:2846F6:2B3D43E:39EBD7C:697AD309
html-safe-nonce8b1cd81eea1fedd35de252e82410dac935039d4941079c6443183fb7ec1261b6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NTAyOjI4NDZGNjoyQjNENDNFOjM5RUJEN0M6Njk3QUQzMDkiLCJ2aXNpdG9yX2lkIjoiMzg2Njk2NTQxMDA2MjE5MzQxNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac7732d8416bcad87474e10df505950cc5742d7c92aa609b6bf3de1037a4bf0dd1
hovercard-subject-tagissue:2101884350
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-control/Slycot/230/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f20d3097790342e690a0e18796e8c5a775c9859ba3357388cc954aca460eaf82/python-control/Slycot/issues/230
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f20d3097790342e690a0e18796e8c5a775c9859ba3357388cc954aca460eaf82/python-control/Slycot/issues/230
og:image:altAfter installing slycot in a conda environment, a kernel crash occurs when trying to solve a linear system with a singular matrix. I narrowed the issue down to the following: slycot from conda-forg...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamechnce
hostnamegithub.com
expected-hostnamegithub.com
None4af1ba0e68200258a80b0c5ab34f12a78bf48372a377a11e14eb668863c03b3a
turbo-cache-controlno-preview
go-importgithub.com/python-control/Slycot git https://github.com/python-control/Slycot.git
octolytics-dimension-user_id2285872
octolytics-dimension-user_loginpython-control
octolytics-dimension-repository_id66001480
octolytics-dimension-repository_nwopython-control/Slycot
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id66001480
octolytics-dimension-repository_network_root_nwopython-control/Slycot
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
release353b231ffaec2de44db15b2e82887804ede7c21e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/python-control/Slycot/issues/230#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-control%2FSlycot%2Fissues%2F230
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-control%2FSlycot%2Fissues%2F230
Sign up https://patch-diff.githubusercontent.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-control%2FSlycot
Reloadhttps://patch-diff.githubusercontent.com/python-control/Slycot/issues/230
Reloadhttps://patch-diff.githubusercontent.com/python-control/Slycot/issues/230
Reloadhttps://patch-diff.githubusercontent.com/python-control/Slycot/issues/230
python-control https://patch-diff.githubusercontent.com/python-control
Slycothttps://patch-diff.githubusercontent.com/python-control/Slycot
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-control%2FSlycot
Fork 45 https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-control%2FSlycot
Star 148 https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-control%2FSlycot
Code https://patch-diff.githubusercontent.com/python-control/Slycot
Issues 13 https://patch-diff.githubusercontent.com/python-control/Slycot/issues
Pull requests 2 https://patch-diff.githubusercontent.com/python-control/Slycot/pulls
Actions https://patch-diff.githubusercontent.com/python-control/Slycot/actions
Projects 0 https://patch-diff.githubusercontent.com/python-control/Slycot/projects
Wiki https://patch-diff.githubusercontent.com/python-control/Slycot/wiki
Security 0 https://patch-diff.githubusercontent.com/python-control/Slycot/security
Insights https://patch-diff.githubusercontent.com/python-control/Slycot/pulse
Code https://patch-diff.githubusercontent.com/python-control/Slycot
Issues https://patch-diff.githubusercontent.com/python-control/Slycot/issues
Pull requests https://patch-diff.githubusercontent.com/python-control/Slycot/pulls
Actions https://patch-diff.githubusercontent.com/python-control/Slycot/actions
Projects https://patch-diff.githubusercontent.com/python-control/Slycot/projects
Wiki https://patch-diff.githubusercontent.com/python-control/Slycot/wiki
Security https://patch-diff.githubusercontent.com/python-control/Slycot/security
Insights https://patch-diff.githubusercontent.com/python-control/Slycot/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/python-control/Slycot/issues/230
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/python-control/Slycot/issues/230
Installing Slycot (openmp) breaks numpyhttps://patch-diff.githubusercontent.com/python-control/Slycot/issues/230#top
https://github.com/chnce
https://github.com/chnce
chncehttps://github.com/chnce
on Jan 26, 2024https://github.com/python-control/Slycot/issues/230#issue-2101884350
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.