There is a problem with the 64-bit client program connecting to the 32-bit server device

The solution is super simple, don't spray after reading it. I don't know what I was thinking

 The general environment of the computer:

platform : win-64
             user-agent : conda/4.10.3 requests/2.18.4 CPython/3.6.5 Windows/10 Windows/10.0.19041

Error log:


  File "D:\anaconda\lib\site-packages\msl\loadlib\utils.py", line 283, in wait_for_server
    'Timeout after {:.1f} seconds. Could not connect to {}:{}'.format(timeout, host, port)

ConnectionTimeoutError: Timeout after 10.0 seconds. Could not connect to 127.0.0.1:63144
Instantiating the 32-bit server raised the following exception:
  UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa1 in position 4: invalid start byte
Cannot start the 32-bit server.

Running background:

Execute the program content, import the class function file, and instantiate the function. Then something went wrong.

Solution:

Add the library file directory of the driver device. The library file directory of the server device.

Other methods to try:

Method one (failure)

Tried to extend the timeout time. The result is still an error.

Method 2 (Failure)

Install 32-bit anaconda and 32-bit python3.8.8. Use the 32-bit python compiler to compile and execute the program. Ummm, still not working.

Method three (failure)

Changes in utf-8 and latin-1 encodings. ummmmm, still not working.

Method four (failure)

In 32-bit anaconda, create a 32-bit virtual python3.8.8 environment in the 32-bit python environment. Try to compile the program. fail.

Method five (failed)

In 64-bit anaconda, create a 64-bit python3.8.11 environment, run the program, and still get an error.

64-bit anaconda, 64-bit python3.7.10. 64-bit anaconda, 32-bit python3.7.10. Two different environments. fail

Methods not tried:

Change the system language to English. (All tears computers come with win10 home Chinese version, it seems that other languages ​​are not supported. You need to change the system or upgrade the system) After upgrading to the home version, the language still cannot be changed. Tears collapse.

Change the default server address. The original default server address is 127.0.0.1

Change to a computer win10, 64-bit, and rebuild the environment to test the device.

In short, it took 3 days because of a directory problem.

Guess you like

Origin blog.csdn.net/huachuchengzhang/article/details/120631299
Recommended