File "/opt/ros/kinetic/lib/python2.7/dist-packages/cv_bridge/core.py", line 91, in encoding_to_cvtype2 from cv_bridge.boost.cv_bridge_boost import getCvType ImportError: dynamic module does not define module export function (PyInit_cv_bridge_boost)
CMake Error at /usr/share/cmake-3.5/Modules/FindBoost.cmake:1677 (message): Unable to find the requested Boost libraries.
Boost version: 1.58.0
Boost include path: /usr/include
Could not find the following Boost libraries:
boost_python3
No Boost libraries were found. You may need to set BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT to the location of Boost. Call Stack (most recent call first): CMakeLists.txt:11 (find_package)
> **References**:<br>
> **在ROS中使用Python3**: [https://community.bwbot.org/topic/499/%E5%9C%A8ros%E4%B8%AD%E4%BD%BF%E7%94%A8python3](https://community.bwbot.org/topic/499/%E5%9C%A8ros%E4%B8%AD%E4%BD%BF%E7%94%A8python3)
> **Unable to use cv_bridge with ROS Kinetic and Python3**: [https://stackoverflow.com/questions/49221565/unable-to-use-cv-bridge-with-ros-kinetic-and-python3?rq=1](https://stackoverflow.com/questions/49221565/unable-to-use-cv-bridge-with-ros-kinetic-and-python3?rq=1)
需要注意的是,scripts文件夹下的文件必须具有执行权限,如果遇到形如ERROR: cannot launch node of type [<packagename>/<filename>]: can't locate node [<filename>.py] in package [<packagename>]的错误,且可以确认scripts目录下确实有这一文件,那么很有可能就是因为该文件失去了执行权限,可以通过下面的指令为其赋予权限:
alias cnpm="npm --registry=https://registry.npm.taobao.org \ --cache=$HOME/.npm/.cache/cnpm \ --disturl=https://npm.taobao.org/dist \ --userconfig=$HOME/.cnpmrc"
# Or alias it in .bashrc or .zshrc $ echo'\n#alias for cnpm\nalias cnpm="npm --registry=https://registry.npm.taobao.org \ --cache=$HOME/.npm/.cache/cnpm \ --disturl=https://npm.taobao.org/dist \ --userconfig=$HOME/.cnpmrc"' >> ~/.zshrc && source ~/.zshrc
# set size to absolute value, leaving empty (default) then uses computed value # you most likely don't want this, unless you have an special disk situation # CONF_SWAPSIZE=100 CONF_SWAPSIZE=1024
笔者在安装tushare库时,其必要依赖lxml在编译过程中报出一系列错误,形如Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?,但事实上libxml2库在系统中已经安装了。查找资料,这个问题可以通过安装下列库解决。
MMM-Facial-Recognition插件在配置完成被MagicMirror调用时发生如下错误TypeError: PythonShell is not a constructor at Class.python_start (/home/pi/MagicMirror/modules/MMM-Facial-Recognition/node_helper.js:11:21)。造成这个错误的原因是npm包python_shell的后续版本相较于作者使用的包版本在接口上有差异,而作者在package.json中并没有指定特定的版本,安装一个较低版本的包即可。
You may be receiving the “Attempted to access JTAG server –internal error code 82 occurred” if you have a firewall or anti-virus program running when you installed Quartus® II and the Altera® JTAG Server. To resolve this you will have to disable/uninstall your firewall or anti-virus program then start the JTAG server. Once you have started the Altera JTAG Server then you may enable/reinstall the firewall or anti-virus program.
To Start, Stop, or Restart the Altera JTAG Server.
Open the “Control Panel”
Select “Adminstrative Tools”
Select “Services”
Highlight “Altera JTAG Server” then select Start, Stop, or Restart
简单地说就是:关闭防火墙和杀毒软件,将JTAG Server服务打开。
实际操作中遇到的问题
笔者在实际操作中发现服务中并没有JTAG Server这个选项,故而无法启动服务。在Quartus的安装目录的bin文件夹下有一个可执行文件jtagserver.exe,在这一目录下打开命令行,执行命令jtagserver.exe --install,尔后使用命令jtagserver.exe --status查看服务器状态,出现Server is running字样即可,此时回到Quartus中就可以正常使用JTAG来编程和调试了。
Xilinx FPGA
What is PYNQ?
例行在开始正题之前介绍一下文章主角来凑字数~PYNQ 是什么,官方给出的介绍是这样的:
PYNQ is an open-source project from Xilinx® that makes it easy to design embedded systems with Xilinx Zynq® Systems on Chips (SoCs).
Using the Python language and libraries, designers can exploit the benefits of programmable logic and microprocessors in Zynq to build more capable and exciting embedded systems.
PYNQ users can now create high performance embedded applications with
# 默认注释了源码仓库,如有需要可自行取消注释 deb https://mirrors.ustc.edu.cn/ubuntu-ports/ xenial main restricted universe multiverse # deb-src https://mirrors.ustc.edu.cn/ubuntu-ports/ xenial main main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-updates main restricted universe multiverse # deb-src https://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-updates main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-backports main restricted universe multiverse # deb-src https://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-backports main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-security main restricted universe multiverse # deb-src https://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-security main restricted universe multiverse
# 预发布软件源,不建议启用 # deb https://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-proposed main restricted universe multiverse # deb-src https://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-proposed main restricted universe multiverse