Tag Archives: Error reporting

[Solved] Python Error: asyncio RuntimeError: This event loop is already running

In case of an error, the following diagram is given:

Solution:

# download nest_asyncio
pip3 install nest_asyncio

Add the following two lines at the beginning of the asynchronous collaboration code, or in the code:

import nest_asyncio

nest_asyncio.apply()

After consulting the data, it is found that using the Jupiter notebook environment, it is connected to the IPython kernel, and the IPython kernel itself runs on the event loop, while asyncio does not allow nesting of its event loop, so the error message as shown in the above figure will appear.

nest_asyncio exists as a patch for asynchronous operations.

[Solved] LaTeX Error: \Url Error ->\url used in a moving argument.

LaTeX error: \Url Error ->\url used in a moving argument.

Error Messages:

\Url Error ->\url used in a moving argument.

Causes and Solutions

To use \url{…} in footnotes, images, table titles, etc. and other commands, you need to use \protect before.

For example:

\thanks{
  I would thank to Xovee Xu (\url{https://xovee.cn/})
}%

// or 

\caption{
  Please refer to \url{https://xovee.cn/}
}

Change to

\thanks{
  I would thank to Xovee Xu (\protect\url{https://xovee.cn/}). 
}%

// or 

\caption{
  Please refer to \protect\url{https://xovee.cn/}. 
}

[Solved] fbprophet Install Error: command ‘x86_64-apple-darwin13.4.0-clang‘ failed with exit status 254

There are several different errors in the process of installing prophet. Record them

1) Error: ModuleNotFoundError: No module named ‘pystan’

Please install pystan before installing prophet

2) Error: command ‘x86_64-apple-darwin13.4.0-clang’ failed with exit status 254

To execute the following two sentences on the command line

export CC=gcc
export CXX=g++

3) Error: command ‘x86_64-apple-darwin13.4.0-clang’ failed with exit status 1

export CXX=clang