Error Updating Python3 pip AttributeError: module ‘lib’ has no attribute ‘OpenSSL_add_all_algorithms’

As version 39.0.0 presented this bug, downgrading the cryptography package solves this, without purging or touching your OS. pip install cryptography==38.0.4 to downgrade from 39.0.0 which presented this error EDIT per @thomas, The error is a result of incompatibility between cryptography and pyopenssl, so if possible, also upgrading to openssl>22.1.0 should work: pip install -U … Read more

Docker Image Taking up Space After Deletion

I have used these commands to shrink desktop image from 35GB to 1GB (in windows 10, docker version 19.03.13) Remove unused images and other resources docker system prune -a Remove more resources docker volume rm $(docker volume ls -q -f dangling=true) Stop docker desktop, optimize image Make sure HyperV turned on %windir%\System32\mmc.exe “%windir%\System32\virtmgmt.msc” or type … Read more

Connecting to WSL2 server via local network [closed]

See this video, it helped me: netsh interface portproxy add v4tov4 listenport=<port-to-listen> listenaddress=0.0.0.0 connectport=<port-to-forward> connectaddress=<forward-to-this-IP-address> for example netsh interface portproxy add v4tov4 listenport=3000 listenaddress=0.0.0.0 connectport=3000 connectaddress=172.30.16.3 Microsoft has published a little bit of information about this on their WSL1 to WSL2 comparison page

Memory allocation to docker containers after moving to WSL 2 in Windows

The Memory and CPU settings were removed for WSL2 integration. However, starting in Windows Build 18945, there is a workaround to limit WSL2 memory usage. Create a %UserProfile%\.wslconfig file for configuring WSL2 settings: [wsl2] memory=6GB # Any size you feel like (must be an integer!) swap=0 localhostForwarding=true Run Get-Service LxssManager | Restart-Service in an admin … Read more

Access a localhost running in Windows from inside WSL2? [closed]

Short answer for most recent Windows versions mDNS has been a feature of WSL2 for a while now. Concatenating your WSL2 hostname (or the equivalent command/function in your programming/language environment) with “.local” should get you access. For example, from Bash, try: ping “$(hostname).local” For instance, if your hostname is “MyComputer”, then the mDNS should be … Read more

Where are the files inside wsl2 physically stored? [closed]

All the files are stored in a ext4.vhd files in the installation directory, which you can’t mount directly onto windows as it is in ext4 (obv) There’s two ways to change the location of the above mentioned vhd file the official, tedious way and an unofficial quick and dirty way The official tedious way Export … Read more

Running graphical Linux desktop applications from WSL 2 – “Error E233: cannot open display” [closed]

The networking subsystem in WSL2 is different than the used in WSL1. You must consider the differences to access networking apps running on Windows and on Linux: In WSL1, Linux uses the same IP addresses than the Windows host, then, you can access the applications using localhost or 127.0.0.1 In WSL2, Linux runs on a … Read more

Why am I getting a “Cannot connect to the Docker daemon” error in WSL2?

I know this may be outdated for the present question, but this should save us precious time, especially when Windows 20H1=2004 is going to Production this month (May 2020).   Operating System Version: Windows 10 Education (Same as Enterprise and a superset of Pro).   Version: 2004   Build (Version OS): 19041.264   Others: Windows Feature Experience Pack 120.2202.130.0. … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)