I cannot generate my setup with pyInstaller. When I type command "pyinstaller -w -F myfile.py" here is error below:
app/env/lib/python3.8/site-packages/PyQt5/Qt5/lib/QtNetwork.framework/Versions/5/QtNetwork)
12552 ERROR: Can not find path /usr/lib/libSystem.B.dylib (needed by /Users/macbookpro/Desktop/app/env/lib/python3.8/site-packages/PyQt5/Qt5/lib/QtNetwork.framework/Versions/5/QtNetwork)
12552 ERROR: Can not find path /usr/lib/libz.1.dylib (needed by /Users/macbookpro/Desktop/app/env/lib/python3.8/site-packages/PyQt5/Qt5/lib/QtNetwork.framework/Versions/5/QtNetwork)
12552 ERROR: Can not find path /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork (needed by /Users/macbookpro/Desktop/app/env/lib/python3.8/site-packages/PyQt5/Qt5/lib/QtNetwork.framework/Versions/5/QtNetwork)
12552 ERROR: Can not find path /System/Library/Frameworks/Security.framework/Versions/A/Security (needed by /Users/macbookpro/Desktop/app/env/lib/python3.8/site-packages/PyQt5/Qt5/lib/QtNetwork.framework/Versions/5/QtNetwork)
12553 ERROR: Can not find path /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (needed by /Users/macbookpro/Desktop/app/env/lib/python3.8/site-packages/PyQt5/Qt5/lib/QtNetwork.framework/Versions/5/QtNetwork)
12554 ERROR: Can not find path /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration (needed by /Users/macbookpro/Desktop/app/env/lib/python3.8/site-packages/PyQt5/Qt5/lib/QtQmlModels.framework/Versions/5/QtQmlModels)
12554 ERROR: Can not find path /usr/lib/libc++.1.dylib (needed by /Users/macbookpro/Desktop/app/env/lib/python3.8/site-packages/PyQt5/Qt5/lib/QtQmlModels.framework/Versions/5/QtQmlModels)
12554 ERROR: Can not find path /usr/lib/libSystem.B.dylib (needed by /Users/macbookpro/Desktop/app/env/lib/python3.8/site-packages/PyQt5/Qt5/lib/QtQmlModels.framework/Versions/5/QtQmlModels)
12554 ERROR: Can not find path /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (needed by /Users/macbookpro/Desktop/app/env/lib/python3.8/site-packages/PyQt5/Qt5/lib/QtQmlModels.framework/Versions/5/QtQmlModels)
12557 ERROR: Can not find path /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (needed by /Users/macbookpro/Desktop/app/env/lib/python3.8/site-packages/PyQt5/Qt5/lib/QtQuick.framework/Versions/5/QtQuick)
12557 ERROR: Can not find path /System/Library/Frameworks/Metal.framework/Versions/A/Metal (needed by /Users/macbookpro/Desktop/app/env/lib/python3.8/site-packages/PyQt5/Qt5/lib/QtQuick.framework/Versions/5/QtQuick)
12557 ERROR: Can not find path /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration (needed by /Users/macbookpro/Desktop/app/env/lib/python3.8/site-packages/PyQt5/Qt5/lib/QtQuick.framework/Versions/5/QtQuick)
12557 ERROR: Can not find path /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (needed by /Users/macbookpro/Desktop/app/env/lib/python3.8/site-packages/PyQt5/Qt5/lib/QtQuick.framework/Versions/5/QtQuick)
12558 ERROR: Can not find path /System/Library/Frameworks/AGL.framework/Versions/A/AGL (needed by /Users/macbookpro/Desktop/app/env/lib/python3.8/site-packages/PyQt5/Qt5/lib/QtQuick.framework/Versions/5/QtQuick)
12558 ERROR: Can not find path /usr/lib/libc++.1.dylib (needed by /Users/macbookpro/Desktop/app/env/lib/python3.8/site-packages/PyQt5/Qt5/lib/QtQuick.framework/Versions/5/QtQuick)
12558 ERROR: Can not find path /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (needed by /Users/macbookpro/Desktop/app/env/lib/python3.8/site-packages/PyQt5/Qt5/lib/QtQuick.framework/Versions/5/QtQuick)
12558 ERROR: Can not find path /usr/lib/libSystem.B.dylib (needed by
Try running this command to make your installer: pyinstaller -w -F myfile.py --hidden-import=PyQt5
If that doesn't work, you could try adding this line: import PyQt5 at the start of the file.
This may make PyInstaller detect the PyQt5 dependency.
Related
I get the problem. Error: can't find or link to hdf5 file
I install netcdf 4.9.0 file in linux
I cannot find the solution to my problem. I installed easy ocr. But cannot import it in my project. Only this error shows up:
[WinError 126] "The specified module could not be found"
i have a error in python that put this with ssl
Traceback (most recent call last):
File "wss.txt", line 9, in <module>
ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
AttributeError: module 'ssl' has no attribute 'PROTOCOL_TLS_CLIENT'
so i look on stack, in this link Python AttributeError: 'module' object has no attribute 'SSL_ST_INIT' and found this command to execute
sudo python -m easy_install --upgrade pyOpenSSL
but i get this error on linux
Searching for pyOpenSSL
Reading https://pypi.python.org/simple/pyOpenSSL/
Downloading https://files.pythonhosted.org/packages/0d/1d/6cc4bd4e79f78be6640fab268555a11af48474fac9df187c3361a1d1d2f0/pyOpenSSL-19.1.0.tar.gz#sha256=9a24494b2602aaf402be5c9e30a0b82d4a5c67528fe8fb475e3f3bc00dd69507
Best match: pyOpenSSL 19.1.0
Processing pyOpenSSL-19.1.0.tar.gz
Writing /tmp/easy_install-DPnzRZ/pyOpenSSL-19.1.0/setup.cfg
Running pyOpenSSL-19.1.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-DPnzRZ/pyOpenSSL-19.1.0/egg-dist-tmp-i8UJJ1
warning: no previously-included files found matching 'leakcheck'
warning: no previously-included files found matching 'codecov.yml'
warning: no previously-included files matching '*.py' found under directory 'leakcheck'
warning: no previously-included files matching '*.pem' found under directory 'leakcheck'
no previously-included directories found matching 'doc/_build'
no previously-included directories found matching '.travis'
zip_safe flag not set; analyzing archive contents...
Moving pyOpenSSL-19.1.0-py2.7.egg to /usr/local/lib/python2.7/dist-packages
Adding pyOpenSSL 19.1.0 to easy-install.pth file
Installed /usr/local/lib/python2.7/dist-packages/pyOpenSSL-19.1.0-py2.7.egg
Processing dependencies for pyOpenSSL
Searching for cryptography>=2.8
Reading https://pypi.python.org/simple/cryptography/
Downloading https://files.pythonhosted.org/packages/56/3b/78c6816918fdf2405d62c98e48589112669f36711e50158a0c15d804c30d/cryptography-2.9.2.tar.gz#sha256=a0c30272fb4ddda5f5ffc1089d7405b7a71b0b0f51993cb4e5dbb4590b2fc229
Best match: cryptography 2.9.2
Processing cryptography-2.9.2.tar.gz
Writing /tmp/easy_install-I6fgSb/cryptography-2.9.2/setup.cfg
Running cryptography-2.9.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-I6fgSb/cryptography-2.9.2/egg-dist-tmp-s1DZx6
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
c/_cffi_backend.c:15:10: fatal error: ffi.h: Aucun fichier ou dossier de ce type
#include <ffi.h>
^~~~~~~
compilation terminated.
error: Setup script exited with error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
do you know how can i resolbe this error
Thanks
Running the bdist_egg through PyCharm fails with the error -
error: package directory
'venv\Lib\site-packages\pip-10\0\1-py3\6\egg\pip' does not exist
I noticed that the setup.py contains venv.Lib.site-packages.pip-10.0.1-py3.6.egg.pip
However, I find the following package available in path venv/Lib/site-packages/pip-10.0.1-py3.egg/pip.
I am installing new kernel 3.12.x on redhat 6 machine. Below is my steps which I followed to install the new kernel.
extract kernel in /usr/src/ directory
Switch to cd /usr/src/linux-3.12.x
make menuconfig
saved defaults to config file
make
make modules_install
make install
In this process I am getting the following error:
ERROR: modinfo: could not find module fuse
ERROR: modinfo: could not find module autofs4
ERROR: modinfo: could not find module target_core_iblock
ERROR: modinfo: could not find module target_core_file
ERROR: modinfo: could not find module target_core_pscsi
ERROR: modinfo: could not find module target_core_mod
ERROR: modinfo: could not find module configfs
ERROR: modinfo: could not find module 8021q
ERROR: modinfo: could not find module bnx2fc
ERROR: modinfo: could not find module fcoe
ERROR: modinfo: could not find module libfcoe
ERROR: modinfo: could not find module libfc
ERROR: modinfo: could not find module scsi_transport_fc
ERROR: modinfo: could not find module scsi_tgt
ERROR: modinfo: could not find module garp
ERROR: modinfo: could not find module stp
ERROR: modinfo: could not find module llc
ERROR: modinfo: could not find module sunrpc
ERROR: modinfo: could not find module be2iscsi
ERROR: modinfo: could not find module iscsi_boot_sysfs
ERROR: modinfo: could not find module bnx2i
ERROR: modinfo: could not find module cnic
ERROR: modinfo: could not find module uio
ERROR: modinfo: could not find module ib_iser
ERROR: modinfo: could not find module rdma_cm
ERROR: modinfo: could not find module ib_cm
ERROR: modinfo: could not find module iw_cm
ERROR: modinfo: could not find module ib_sa
ERROR: modinfo: could not find module ib_mad
ERROR: modinfo: could not find module ib_core
ERROR: modinfo: could not find module ib_addr
ERROR: modinfo: could not find module iscsi_tcp
ERROR: modinfo: could not find module libiscsi_tcp
ERROR: modinfo: could not find module libiscsi
ERROR: modinfo: could not find module scsi_transport_iscsi
ERROR: modinfo: could not find module cachefiles
ERROR: modinfo: could not find module fscache
ERROR: modinfo: could not find module ipv6
ERROR: modinfo: could not find module dm_mirror
ERROR: modinfo: could not find module dm_region_hash
ERROR: modinfo: could not find module dm_log
ERROR: modinfo: could not find module uinput
ERROR: modinfo: could not find module iTCO_wdt
ERROR: modinfo: could not find module iTCO_vendor_support
ERROR: modinfo: could not find module sg
ERROR: modinfo: could not find module coretemp
ERROR: modinfo: could not find module kvm_intel
ERROR: modinfo: could not find module kvm
ERROR: modinfo: could not find module microcode
ERROR: modinfo: could not find module serio_raw
ERROR: modinfo: could not find module pcspkr
ERROR: modinfo: could not find module i2c_i801
ERROR: modinfo: could not find module i2c_core
ERROR: modinfo: could not find module lpc_ich
ERROR: modinfo: could not find module mfd_core
ERROR: modinfo: could not find module shpchp
ERROR: modinfo: could not find module dm_mod
ERROR: modinfo: could not find module e1000e
ERROR: modinfo: could not find module i5400_edac
ERROR: modinfo: could not find module edac_core
ERROR: modinfo: could not find module i5k_amb
ERROR: modinfo: could not find module ioatdma
ERROR: modinfo: could not find module dca
ERROR: modinfo: could not find module floppy
ERROR: modinfo: could not find module ext4
ERROR: modinfo: could not find module mbcache
Can you guys please help me to resolve this issue?
Create a link like this :
ln -s /usr/src/linux-3.12.x /usr/src/linux
and then proceed with the steps
Check this link : https://unix.stackexchange.com/questions/147478/error-installinig-kernel-on-centos-from-source
2.
Also if 1 doesnt work before your Step 3 copy the .config_XX file from the /boot directory of redhat6 to /usr/src/linux-3.12.x/.config. Then give your step 3 as make oldconfig. Say no to the new features added in the new kernel. Then proceed with step 5.