Tag Archives: problem solved

Solve the error when installing apk after compiling Android Studio: Error while Installing APK

1. Error description
Today, when installing APK after compiling the application with Android Studio, an error was reported, as shown below:

The APK file build\outputs\apk\OYP_2.3.4_I2Base_6476_official_debug.apk does not exist on disk.
Error while Installing APK

1 2

as shown in the figure below
2. Solutions
1. Tried build-& GT; Clean Project recompiled, still invalid
2, try to restart Android Studio invalid
Then I went to open build\outputs\apk\ directory, and found that the apk file was compiled, but the file name was exactly:
oyp_2.3.4 _i2base_6478_official_debug.apk
looks like the following:

Therefore, the APK file compiled by Android Studio is
OYP_2. 3.4 _I2Base_6478_official_debug. Apk
And it wants to install the APK filename exactly
Oyp_2.3.4 _i2base_6476_official_debug.apk
will therefore report an error. Google checked the error, on the http://stackoverflow.com website has an article about the solution of the error, the link as shown below:
http://stackoverflow.com/questions/34039834/the-apk-file-does-not-exist-on-disk
Solution:
as shown in the following figure:
Step 1: Click the Gradle button in the Android Studio sidebar, as shown below

Step 2: Refresh the Gradle configuration

Step 3: Recompile can, will not report an error.

ERROR 1524 (HY000): Plugin ‘auth_socket’ is not loaded How to Fix

Mysql was installed in Ubuntu and this error occurred when I opened it:

mysql -uroot -p
enter password:
ERROR 1524 (HY000): Plugin ‘auth_socket’ is not loaded

A face overwhelmed
baidu to only on stackoverflow. It’s a little weird to find something that says’ unix_socket ‘
https://stackoverflow.com/questions/37879448/mysql-fails-on-mysql-error-1524-hy000-plugin-auth-socket-is-not-loaded
And twice, every time I want to use the database, this problem always comes up.
solution:

sudo /etc/init.d/mysql stop
sudo /etc/init.d/mysql start

Just restart it and you can use it

pygobject pip3 upgrade problem: ERROR: Failed building wheel for pycairo

The problem
This question is cut from a long paragraph and the full text is as follows, it is a problem encountered using pip3 or pip-review upgrade

pygobject==3.34.0 is available (you have 3.26.1)
Defaulting to user installation because normal site-packages is not writeable
Processing /home/thinszx/.cache/pip/wheels/78/4f/f8/35219d6282fc7d90d6713924a12fd05bb0f7eef0fa12bef507/distro_info-0.0.0-py3-none-any.whl
Collecting pygobject==3.34.0
  Using cached PyGObject-3.34.0.tar.gz (699 kB)
  Installing build dependencies ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 /home/thinszx/.local/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-pbwzvrms/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel pycairo
       cwd: None
  Complete output (50 lines):
  Collecting setuptools
    Using cached setuptools-45.2.0-py3-none-any.whl (584 kB)
  Collecting wheel
    Using cached wheel-0.34.2-py2.py3-none-any.whl (26 kB)
  Collecting pycairo
    Using cached pycairo-1.19.0.tar.gz (200 kB)
  Building wheels for collected packages: pycairo
    Building wheel for pycairo (setup.py): started
    Building wheel for pycairo (setup.py): finished with status 'error'
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-sa57e6b8/pycairo/setup.py'"'"'; __file__='"'"'/tmp/pip-install-sa57e6b8/pycairo/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-pgit5hrh
         cwd: /tmp/pip-install-sa57e6b8/pycairo/
    Complete output (12 lines):
    running bdist_wheel
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.6
    creating build/lib.linux-x86_64-3.6/cairo
    copying cairo/__init__.py -> build/lib.linux-x86_64-3.6/cairo
    copying cairo/__init__.pyi -> build/lib.linux-x86_64-3.6/cairo
    copying cairo/py.typed -> build/lib.linux-x86_64-3.6/cairo
    running build_ext
    'pkg-config' not found.
    Command ['pkg-config', '--print-errors', '--exists', 'cairo >= 1.13.1']
    ----------------------------------------
    ERROR: Failed building wheel for pycairo
    Running setup.py clean for pycairo
  Failed to build pycairo
  Installing collected packages: setuptools, wheel, pycairo
      Running setup.py install for pycairo: started
      Running setup.py install for pycairo: finished with status 'error'
      ERROR: Command errored out with exit status 1:
       command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-sa57e6b8/pycairo/setup.py'"'"'; __file__='"'"'/tmp/pip-install-sa57e6b8/pycairo/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-y2i60oh4/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-pbwzvrms/overlay --compile --install-headers /tmp/pip-build-env-pbwzvrms/overlay/include/python3.6m/pycairo              cwd: /tmp/pip-install-sa57e6b8/pycairo/
      Complete output (12 lines):
      running install
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-3.6
      creating build/lib.linux-x86_64-3.6/cairo
      copying cairo/__init__.py -> build/lib.linux-x86_64-3.6/cairo
      copying cairo/__init__.pyi -> build/lib.linux-x86_64-3.6/cairo
      copying cairo/py.typed -> build/lib.linux-x86_64-3.6/cairo
      running build_ext
      'pkg-config' not found.
      Command ['pkg-config', '--print-errors', '--exists', 'cairo >= 1.13.1']
      ----------------------------------------
  ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-sa57e6b8/pycairo/setup.py'"'"'; __file__='"'"'/tmp/pip-install-sa57e6b8/pycairo/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-y2i60oh4/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-pbwzvrms/overlay --compile --install-headers /tmp/pip-build-env-pbwzvrms/overlay/include/python3.6m/pycairo Check the logs for full command output.
  ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 /home/thinszx/.local/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-pbwzvrms/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel pycairo Check the logs for full command output. 

The solution
As for the package upgrade problem – V2EX, it is said that the PIP or pip3 upgrade will have problems, because the dependency of libgirepository1.0-dev is missing, install

sudo apt-get install libgirepository1.0-dev

And then one less than code>, cario less than /code>

sudo apt-get install python-cairo
sudo apt-get install libcairo2

To solve the running error of eclipse for C / C + +: launch failed binary not found

sometimes we don’t like to use vs. Dear friends, like to use the eclipse practice c/c + + code, the construction of the environment, portal: http://jingyan.baidu.com/article/17bd8e523d7b9185ab2bb8f2.html

and then you might follow all the above steps and still hang when you run, and then you need to check the following two places:

1. If you haven’t built the project, click on the following position to build it and run it again. If not, scroll down to see

2. Change one setting :



Solve the problem of copy failed: stat / var / lib / docker / TMP / docker builder 455335933 / opt: no such file or directory

1. Error reporting

2. Dockerfile file

3. The reasons for

Dockerfile lines beginning with # are treated as comments. If a # comment is used after a valid instruction, it will be treated as a parameter, resulting in an error

4. Solution: just remove the comment, or put the comment on a separate line

The solution to the problem is different from other solutions

java-jdk13 Error opening registry key ‘software\Javasoft\Java Runtime Environment’ problem solution differs from other solutions

to find other online solutions, found the first few pages of baidu solutions are the same. It’s disgusting. They tried all their ways to no avail, and then found a solution here.
C: \ ProgramData \ Oracle \ Java \ javapath. All Java files under this path are deleted.
later I thought maybe it was because I had installed java8 before and deleted it.
in addition, I recommend that you try other people’s solutions if they fail and try mine again.

Error: LTO wrapper failed collect2: error: LD returned 1 exit status

run the command

pip install uwsgi

error:

a big red error warning, the main error is:

error: lto – wrapper failed

collect2: error: ld returned 1 exit status

after the reason is that GCC version is high

#查看当前系统安装所有版本的gcc
ls /usr/bin/gcc* -l 
#如果gcc有5以下的版本,则不用在安装
sudo apt-get  install gcc-4.8
#更改gcc系统默认版本
sudo rm /usr/bin/gcc #删除已有软连接
sudo ln -s /usr/bin/gcc-4.8 /usr/bin/gcc #创建指向gcc4.8的软连接

run PIP install uwsgi again successfully

reference:

https://blog.csdn.net/weixin_33127753/article/details/84874147

Problem solving: failed to connect to github.com port 443: Operation timed out(2020.06.04)

1. Problem description

time: Thursday, June 4, 2020 15:19:26

today, when I was using git push original master command, the following error occurred suddenly:

why would Failed to connect to github.com port 443: Operation timed out, previously I could push to the far end of GitHub

2. Solution

toss around for a long time, found a solution

  • enter the command sudo vim /etc/hosts on the terminal (you must use sudo, as the administrator, or you cannot modify the hosts file)

  • , comment out the lines related to Github, save the hosts file, and then you can push to the remote Github

    0

  • 1 2


    Saturday, June 13, 2020 18:14:30 update

    if you comment out all GitHub related content, you may have a problem accessing GitHub images will not load, the solution please move to here

    How to solve the problem of creating notebook failed

    this paper refer to the https://stackoverflow.com/questions/54833906/permission-denied-untitled-ipynb-windows-10-aws-workspaces.

    after we open the jupyter notebook, a new notebook sometimes appears the following error,

    if you have a similar command on your terminal,

    [I <some timestamp> NotebookApp] Serving notebooks from local directory: C:\

    shows the cause of the problem is jupyter open path is C disk root directory, but this is not allowed. You need to change it to another path, such as the username folder in Disk C for users.

    use the jupyter –paths instruction on the terminal to find the path where the config file is stored. After entering the path, open the config file and find the following sentence,

    c.NotebookApp.notebook_dir = ''

    uncomments it and puts the desired path inside the quotes, such as the username folder in disk C for users.

    after changing the terminal to try again, the problem can be solved.

    Python 3 install pyqt5

    Python3.8
    version: Python3.8
    PyQt5 5.15.1
    Anaconda has been installed
    finds the article by following the steps:
    pip3 install Sip
    pip3 install PyQt5
    pip install PyQt5-tools -i http://pypi.douban.com/simple –trusted-host=pypi.douban.com

    adds pyqt5-tools to the global environment variable (Path). Mine is:
    C:\Users**\AppData\Local\Programs\Python\ python38-32 \Lib\site-packages\pyqt5_tools

    test code

    import sys
    from PyQt5 import QtWidgets
    app = QtWidgets.QApplication(sys.argv)
    widget = QtWidgets.QWidget()
    widget.resize(360, 360)
    widget.setWindowTitle("hello, pyqt5")
    widget.show()
    sys.exit(app.exec())
    
    

    :
    : this application failed to start because no Qt platform plugincould be initialized may fix thisproblem

    reinstalled PyQt5 also not

    qt_qqpa_platform_plugin_path
    C:\Users**\AppData\Local\Programs\Python\ python38-32 \Lib\site-packages\PyQt5\Qt\plugins

    and then restart the computer, to take effect, appear successful problem solving


    reference articles:
    https://www.cnblogs.com/yclizq/p/11192128.html
    https://blog.csdn.net/zjm12343/article/details/79707275?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-3.channel_param& depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-3.channel_param