Category Archives: Error

[Solved] MAC Compile Error: fatal error: ‘endian.h‘ file not found

Specific error

In file included from conf.c:427:
In file included from ../include/local.h:146:
In file included from ../include/sound/asound.h:4:
../include/alsa/sound/uapi/asound.h:31:10: fatal error: 'endian.h' file not
      found
#include <endian.h>

Solution:

Change to <machine/endian.h> Just.

Others say it should be changed to <Endian.h>, Tried, it didn’t work!

[Solved] SAP MDG Create View Error: unexpected error while activating search view ZMDG_XXX

Problem Description:
unexpected error while activating search view zmdg_XXX

SAP system version: S/4 Hana 1909 SP2

Reproduction steps:
Tcode: mdgimg



when you click generate, the following errors appear

Solution:

    1. 1. using the system user to authorize SAPHANADB


    1. 2. if there is an error after generate; You need to manually create a temporary attribute view, and then click generate to succeed

Refer to configuring SAP Hana based search for MDG

[Errno 14] curl#6 – “Could not resolve host: yum.dockerproject.org; Unknown error“

1. Commands:

sudo yum install docker-ce docker-ce-cli containerd.ioLoaded plugins: fastestmirror

2. Error Messages:

Loading mirror speeds from cached hostfile
base                                                   | 3.6 kB     00:00
docker-ce-stable                                                                                                                                                                                                          | 3.5 kB  00:00:00
docker-ce-test                                                                                                                                                                                                            | 3.5 kB  00:00:00
https://yum.dockerproject.org/repo/main/centos/7/repodata/repomd.xml: [Errno 14] curl#6 – “Could not resolve host: yum.dockerproject.org; Unknown error”
Trying other mirror.

One of the configured repositories failed (Docker Repository),
and yum doesn’t have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work “fix” this:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Run the command with the repository temporarily disabled
yum –disablerepo=dockerrepo …
4. Disable the repository permanently, so yum won’t use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use –enablerepo for temporary usage:
yum-config-manager –disable dockerrepo
or
subscription-manager repos –disable=dockerrepo
5. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager –save –setopt=dockerrepo.skip_if_unavailable=true
failure: repodata/repomd.xml from dockerrepo: [Errno 256] No more mirrors to try.
https://yum.dockerproject.org/repo/main/centos/7/repodata/repomd.xml: [Errno 14] curl#6 – “Could not resolve host: yum.dockerproject.org; Unknown error”

3. Solution:

yum-config-manager –disable dockerrepo

Could not identify launch activity: Default Activity not foundError while Launching activity

Add in activity

<intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>

When the app has multiple activities, the activity to be started is the main interface and is set to MAIN.

LAUNCHER indicates whether it is displayed in the mobile app list.

Function declare Error: Error C231: ‘delay300us’: redefinition

First of all, we know that we can’t avoid declaring sub functions when writing programs.

There was a problem during the test today:

After thinking about it, I declared the function in the previous writing, but the error “redefinition” was still reported. Later, I tried it

You need to prefix the function name with “void”.

[Solved] Could not identify launch activity: Default Activity not found Error while Launching activity

        <activity android:name=".ui.home.HomeActivity"
            android:configChanges="mcc|mnc"
            android:screenOrientation="portrait"
            android:theme="@style/Theme.Preference.DayNight"
            android:exported="true">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
<!--                <category android:name="android.intent.category.LAUNCHER" />-->
            </intent-filter>
        </activity>

The reason for this is that the < category > line was commented out in the entry activity. The default activity is not found,
Remove the comment and the problem is gone!

[Solved] ClientError.Security.Unauthorized: The client is unauthorized due to authentication failure.

Neo.ClientError.Security.Unauthorized: The client is unauthorized due to authentication failure.
the authentication of the Community Edition failed. The solution:
stop the service, find the auth file under the data/DBMS in the installation directory and delete it. (because my installation package was downloaded from the website, the former owner may have set the password, so after we delete it, the default password is neo4j). Just start the service.

In addition, the community version cannot be too high. It needs to adapt to its own java version. My java version is 1.8, so the community version needs to be version 4

[Solved] electron-builder Package mac Error: panic: runtime error: index out of range

An error is reported in the packaging mac of electron builder. The detailed error information is as follows:

goroutine 1 [running]:
github.com/develar/app-builder/pkg/icons.ConvertIcnsToPng(0xc0000ca630, 0x2d, 0x7ffd9f40874a, 0x2e, 0x2, 0x2, 0xc0000ca630, 0x2d, 0xe53320)
	/Volumes/data/Documents/app-builder/pkg/icons/icns-to-png.go:60 +0x4ab
github.com/develar/app-builder/pkg/icons.doConvertIcon(0xc00012a400, 0x5, 0x8, 0xc00025ec20, 0x2, 0x2, 0x7ffd9f4086ec, 0x3, 0x7ffd9f40874a, 0x2e, ...)
	/Volumes/data/Documents/app-builder/pkg/icons/icon-converter.go:226 +0xa0d
github.com/develar/app-builder/pkg/icons.ConvertIcon(0xc0000ad3c0, 0x97, 0x0, 0xf6400f7800000000)
	/Volumes/data/Documents/app-builder/pkg/icons/icon-converter.go:56 +0xd6
github.com/develar/app-builder/pkg/icons.ConfigureCommand.func1(0xc0002375f0, 0x40b705, 0xc2b0e0)
	/Volumes/data/Documents/app-builder/pkg/icons/icon-converter.go:33 +0x7f
github.com/alecthomas/kingpin.(*actionMixin).applyActions(0xc000124d98, 0xc0002375f0, 0x0, 0x0)
	/Volumes/data/go/pkg/mod/github.com/alecthomas/[email protected]+incompatible/actions.go:28 +0x6d
github.com/alecthomas/kingpin.(*Application).applyActions(0xc0000e8780, 0xc0002375f0, 0x0, 0x0)
	/Volumes/data/go/pkg/mod/github.com/alecthomas/[email protected]+incompatible/app.go:557 +0xdc
github.com/alecthomas/kingpin.(*Application).execute(0xc0000e8780, 0xc0002375f0, 0xc00021b150, 0x1, 0x1, 0x0, 0x0, 0x0, 0x904545)
	/Volumes/data/go/pkg/mod/github.com/alecthomas/[email protected]+incompatible/app.go:390 +0x90
github.com/alecthomas/kingpin.(*Application).Parse(0xc0000e8780, 0xc0000ae010, 0xf, 0xf, 0xc0000e8780, 0xc00008a058, 0x0, 0x0)
	/Volumes/data/go/pkg/mod/github.com/alecthomas/[email protected]+incompatible/app.go:222 +0x213

Solution:
put 512×512 in the icons directory of the icon Png icon to complete packaging
for example:
dist/icons/512x512.png

RuntimeError: Exporting the operator uniform to ONNX opset version 12 is not supported.

Pt to onnx error:

RuntimeError: Exporting the operator uniform to ONNX opset version 12 is not supported. 
Please open a bug to request ONNX export support for the missing operator.

The reason is that during conversion, you can’t dynamically obtain the value in forward for operation, but complete the corresponding operation in init..