Error "LoadLibrary failed with error 126: The module could not be found" when launching Spyder IDE through VPN - spyder

Here's what happens:
Using a Macbook Pro, I use the Microsoft Remote Desktop Connection application to connect to my work computer, which is a Windows 10 machine
If I try to launch Spyder on my work computer, I get this error:
Load Library Error
However:
If I am at my work computer (i.e. physically at work instead of logging in remotely), I can launch Spyder successfully
If I leave Spyder open on my work computer, then go home and do a remote log-in to my work computer, I can use Spyder without issue. The problem/error described above arises only if I try to open Spyder through the remote connection.
This error only seems to affect Spyder and I can use all other programs without issue through a remote connection. As a workaround I've been using other IDEs and successfully running scripts, but I strongly prefer Spyder.
What I have tried so far (without success):
The 4 troubleshooting steps posted by Fazil M. to this Microsoft thread
Uninstalling/reinstalling Spyder using Conda
Restarting my work computer
System Information:
Work Computer OS: Windows 10, 64-bit
OS of computer through which I'm logging in to work computer: Mac OS X El Capitan 10.11.6
Spyder version: 4.1.1
Any thoughts as to what could be going on?
Update--More information and trials:
I checked out Issue #3736 on Spyder's GitHub. It says to download and add a file called opengl32sw.dll to the folder ~\Lib\site-packages\PyQt5\Qt\bin. But when I go to the PyQt5 folder, I do not see a subfolder for Qt. I tried placing it into the PyQt5 main folder, but that did not fix the problem.
I've heard this can be a graphics card issue too. On my machine I have two graphics cards: AMD RadeonT R5 430 and Intel(R) HD Graphics 630.

Darren's answer did not work for me. What did work was to:
First option: go into the device manager and disable the Intel HD Graphics card under "display adapters."
Second option:
run "Gpedit.msc"
navigate to Computer Configuration->Administrative
Templates->Windows Components->Remote Desktop Services->Remote
Desktop Session Host->Remote Session Environment
Disable "use WDDM graphics display driver for remote desktop
connections"
Restart the computer
See https://answers.microsoft.com/en-us/windows/forum/all/windows-10-1903-may-update-black-screen-with/23c8a740-0c79-4042-851e-9d98d0efb539

It took help from my organization's IT contractor, but I fixed the issue by doing the following:
Run a file called "gpedit.msc", which will open up a window for Local Group Policy Editor
In the tree menu on the left, navigate to Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Remote Session Environment, and open the Remote Session Environment folder (not the subfolder within it)
Make sure the following are set to "Enabled":
"Use hardware graphics adapters for all Remote Desktop Services"
"Prioritize H.265/AVC444 graphics mode for Remote Desktop Connections"
"Configure H.264/AVC hardware encoding for Remote Desktop Connections"
Then restart the computer.

Since I was unable to get pass LoadLibrary 126 error using the solutions provided online and on here, I stepped back and realized the obvious workaround. The errors occurs when you open the program while you're using a remote session, right? The obvious solution is to launch the program while a remote session is not in progress. To do this while you're remoting, you should create a batch script to launch the program but make sure to include to a time delay before that (I used 'timeout 10 /nobreak' to do so). Run the batch script and, before your program launchs, disconnect from RDP. After enough time passes for the program to launch, you can reconnect to RDP and your program will be up and ready

Related

Unable to install Docker on windows 10

I am trying to install docker on windows machine but it doesn't get install and stop its process in the middle of installation.I have checked for all prerequisite,and my machine fulfills all.
I have NP AV antivirus and it gives me warning like C:\PROGRAM FILES\Docker\RES...\bin\DOCKER_COMPOSE.EXE is a threat after aborting the installation
It can depend on your Windows version (type winver in a CMD)
With 1903, there are reports of freeze or BSOD, with docker/for-win/issue 3815.
The main issue regarding the installation is docker/for-win/issue 1172,
This assumes that you have Windows Pro at least, with Hyper-V activated (and possibly the antivirus off during installation).
This thread includes:
Adding the downloaded installer .exe file to the Controlled Folder Access allowed apps list fixed the problem for me.
Start | Settings | and click on Controlled Folder Access
T hen click on “Allow an app through Controlled folder access”
Click on the big + beside “Add an allowed app” and choose Recently Blocked Apps.
Then you can choose the "Docker for Windows Installer.exe".
Re-run the installer as admin and it works.

RubyMine on Windows with rails code on OS X server

This is a weird question, so bear with me while I try to explain it properly.
I have a Ruby on Rails app running on Heroku, with source code on Git. In my home, I have a Mac small laptop, and a Windows 7 Desktop PC.
What I want is to be able to work the code on RubyMine on my Windows machine. Because of many many shenanigans, working on Windows and then uploading to heroku just doesn't work.
Instead, I would like to download my code on my Mac, open it somehow from Windows (on LAN), and be able to run it on the Mac (from RubyMine on Windows), and open it in a browser from Windows.
I've been trying for several weeks now. Have anyone done this before? I know it sounds bizarre, but I really wish to work on my 3 monitors Windows setup.
You can let RubyMine use an SDK over SSH.
go to: File => Settings
select: Languages & Frameworks => Ruby SDK and gems
click the add icon (plus symbol)
choose: New remote...
select: SSH Credentials
fill in the host, username, password and path
After adding the remote SDK make sure it is selected as your project SDK.
edit
As #GujMil pointed out in the comments below, when running the application the Windows path is send as parameter to the Ruby SDK. After some fiddling I found that you can map the local path to the remote path in the SDK Configuration or Run/Debug Configurations.
go back to the SDK configuration (step 1 & 2 previous list)
click the Edit Path Mappings icon for your remote Ruby SDK (img)
add your path maps
For me the following was enough (using Linux instead of OS X):
+----------------+-------------+
| Local path | Remote path |
+----------------+-------------+
| //192.168.0.96 | /home |
+----------------+-------------+
For further info see: https://www.jetbrains.com/help/ruby/configuring-remote-interpreters-via-ssh.html
If your question sounds bizarre, so does my answer. I have experimented a similar setup with Linux servers.
Set up a shared folder to host the code on the Mac: Apple
instructions here
Access the folder over your LAN and edit the code in RubyMine.
Open an SSH terminal to your Mac so that you can remotely run the
Rails server, run necessary commands and view the logs (easy with
your multi-monitor setup)
Note: RubyMine will likely complain about missing gems.

how to fix linux kernel bugs without upgrading kernel?

i am installing hostapd in CentOS6.7 with two methods:
1) via rpm command using hostapd-2.0-7.el6.x86_64.rpm
2) by compiling tar.gz file following this tutorial
in both cases after editing hostapd.conf in /etc/hostapd/ directory, when i run 'service hostapd start' i get following error:
Starting hostapd: /etc/hostapd/hostapd.confConfiguration file: /etc/hostapd/hostapd.conf
nl80211: Could not add multicast membership for scan events: -2 (No such file or directory)
Failed to initialize driver 'nl80211'
after searching google i found out that its a kernal bug (kernel2.6.32-573.el6x86_64 for CentOS6.7 final release) and to fix it i have to upgrade my kernel. my requirenment is, not to upgrade whole kernal rather just to modify only the error-related file so that other kernal files remain intact. is it enough to fix the problem if so than anyone who can guide me how to do that?
[EDIT]: i am working on a server with specific OS and Software versions in a company. i want to make my own small similar network(infrastructure) at home with one of my laptop acting as server that should have same OS and Software versions so that i can work on the issues at home as well. to create network my server laptop should act as an access point for which i am using 'hostapd' open source package(mostly used). but my OS kernel version has a bug for hostapd. if i upgrade my kernel then at least some packages will also get updated that may change the type of issues i will have at home and in my office.
thanks

Issues Getting Intel XDK to run - hangs on startup

I've checked googles and stacks and cannot find an answer for my issue, so I'm asking here.
I've installed Intel XDK 2 on my system (Win 7 64b Pro) but cannot get it to start up. I've uninstalled and reinstalled.
I have it installed in the default directory \users\\AppData\Intel\XDK (I think that was it) so there shouldn't be an issue with permissions.
It comes up with the "Initializing page" but nothing else. I've left it be for about 1 hour while I worked on something else, but the window never changes and the app doesn't start. If I kill it and reopen it says that it didn't close properly and asks if I want a normal or safe start; I've tried both options.
Anyone have any issue with this?
(and please don't suggest phonegap / cordova... I've tried to install that on Eclipse and Visual Studio and both have failed miserably to simply work, even with the googles assisting me).
Two things to try:
-- Make sure you have a valid hosts file, for some folks this has been a problem getting the XDK to start, for unknown reasons, some systems either are missing their hosts file or have invalid entries which can sometimes cause trouble. On Windows, your hosts file is located here:
\Windows\System32\drivers\etc
-- Uninstall the XDK and then completely remove these two directories from your system:
%AppData%\..\Local\XDK
%AppData%\..\Local\Intel\XDK

Who loads the code in BIOS during booting?

I am studying the boot process in Linux. I am looking through this html page http://www.tldp.org/HOWTO/Bootdisk-HOWTO/x88.html. The first line under the section 3.1 "The boot process" says that "All PC systems start the boot process by executing code in ROM (specifically, the BIOS)".
My doubts are
Who loads the code in BIOS ?
Where is this code in BIOS located ?
To where is the code in BIOS loaded and executed ?
Kindly tell me references where i can get more information
Thanks,
LinuxPenseur
The code is already there in memory when the computer is powered on. It is in non volatile memory, meaning it doesn't disappear when the computer is turned off.
So the code is already there in a specific memory address, and the processor starts by running it.
More info here
A good question! Actually you do not need to reformat the HDD or even reinstall the OS on it unless the new PC is unable to run the existing OS on the drive.
Commonly, if you did a simple install of a Linux distribution, you would have no trouble moving the HDD to a new system and just running it. But if the OS is a version of Windows, the chances of this being the case are nearly zero: hardware vendors nearly always tune their device drivers for Windows so you cannot even use the same driver for two versions of Windows on the same machine (upgrading from XP to Windows 7 for example, often requires that you redownload at least a few hardware drivers).
And the problem often arises even with Linux if you have installed any high performance drivers. Sometimes you can perform a "recovery boot" from GRUB or LILO and get into a text mode screen with internet access, though. And if you can do that, often you can install the drivers for the new PC on the Linux HDD without doing a complete reinstall of Linux.
In fact, this is actually what that install CD or DVD is actually doing. It boots to a very vanilla flavor of the OS (Windows or Linux), then installs drivers for the hardware it detects, reboots (hopefully with functioning drivers) and wraps up the install process.

Resources