Tag Archives: Hair loss bug

Android reports failed linking file resources

, written in the evening, the next morning the wrong report.

has been poked more than once. I finally thought about it.

failed to find the resource file linking file resources.

for a number of reasons, but let me write down what I encountered:

1. The file referenced in the XML file does not exist

was later checked and the original reference was deleted, but the XML file did not report an error of T_T

results reopen the next day and need to be recompiled, which is why the error was reported.

if there’s something else that’s going to be recorded later.

Numpy error: oserror: failed to interpret file as a pickle

first understand the definition of pickle:

  • pickling: types and python data types used in python special conversion between
  • pickling provides four functions: dumps, dump, loads, the load
  • pickling can store all the python support of primitive types (Boolean, int, float, string, byte, none, etc.), made up of any native type lists and tuples, dictionaries, and collection, function, class, class instances.

so the error is essentially data file inconsistency, numpy difference between loadtxt() and load()

  • load() stands for saving data in Numpy’s proprietary binary format, which automatically processes information such as element types and shapes. Load usually reads.nPY or.npz files.
  • loadtxt() is mainly used to read TXT and other files

Following is the general use of loadtxt(), the most common is loadtxt(” filename. TXT “)

numpy.loadtxt(fname, dtype=, comments='#', delimiter=None, converters=None, skiprows=0, usecols=None, unpack=False, ndmin=0)

error is due to load() directly read the TXT file caused by unread. Use loadtxt() instead.