AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-959075

nickhansenrf's questions

Martin Hope
nickhansenrf
Asked: 2019-05-30 11:20:18 +0800 CST

如何赋予特定的 pyqt 程序读/写权限?

  • 0

我正在使用一个名为 gnuradio-companion 的程序。如果我在没有 root 权限的情况下启动它,我将无法保存任何内容,因为我没有读/写权限。它给:

/usr/lib/python2.7/dist-packages/gnuradio/grc/gui/FileDialogs.py:102: GtkWarning: Failed to read filechooser settings from "/home/nick/.config/gtk-2.0/gtkfilechooser.ini": Permission denied

如果我开始

sudo gnuradio-companion

然后我在滥用 sudo,我也得到了

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'

因为我丢失了运行时变量 XDG_RUNTIME_DIR。我可以用

sudo -E

保留环境变量,但后来我得到

QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0

我猜是因为我只是在借用 root 权限。使用 sudo visudo 来修改运行时环境会产生同样的效果。

我应该如何配置读/写权限和运行时环境来解决这个问题?

permissions sudo pyqt
  • 1 个回答
  • 454 Views
Martin Hope
nickhansenrf
Asked: 2019-05-24 08:44:40 +0800 CST

管理 GNU Radio 的依赖项以从源代码编译

  • 5

Ettus 研究提供了18.04的大量依赖项列表,这些依赖项几乎适用于从源代码编译 gnu radio。

cmake 给出以下配置错误:

-- Python checking for PyQt5 - found
-- Checking for module 'Qt5Qwt6'
--   No package 'Qt5Qwt6' found
-- QWT Version: 6.1.3
-- Found Qwt: /usr/lib/libqwt.so  

但是,根据我拥有的软件包(似乎每个可能的版本......也许太多了)我应该拥有它需要的东西。

apt-cache search qwt
libqwt-dev - Qt widgets library for technical applications (development, qt4)
libqwt-doc - Qt widgets library for technical applications (documentation)
libqwt-headers - Qt widgets library for technical applications (header files)
libqwt-qt5-6 - Qt widgets library for technical applications (runtime, qt5)
libqwt-qt5-dev - Qt widgets library for technical applications (development, qt5)
libqwt5-doc - Qt widgets library for technical applications (documentation)
libqwt5-qt4 - Qt4 widgets library for technical applications (runtime)
libqwt5-qt4-dev - Qt4 widgets library for technical applications (development)
libqwt6abi1 - Qt widgets library for technical applications (runtime, qt4)
libqwtmathml-dev - Text Engine for Qwt (development, qt4)
libqwtmathml-qt5-6 - Text Engine for Qwt (runtime, qt5)
libqwtmathml-qt5-dev - Text Engine for Qwt (development, qt5)
libqwtmathml6abi1 - Text Engine for Qwt (runtime, qt4)
libqwtplot3d-doc - 3D plotting library based on Qt/OpenGL (documentation)
libqwtplot3d-qt5-0 - 3D plotting library based on Qt5/OpenGL (runtime)
libqwtplot3d-qt5-dev - 3D plotting library based on Qt5/OpenGL (development)
python-guiqwt - efficient 2D data-plotting library - Python 2
python-guiqwt-doc - efficient 2D data-plotting library - Documentation
python-qwt - Pure Python implementation of Qwt - Python 2
python-qwt5-doc - Python Qwt5 technical widget library, documentation and examples
python-qwt5-qt4 - Python version of the Qwt5 technical widget library
python3-guiqwt - efficient 2D data-plotting library - Python 3
python3-qwt - Pure Python implementation of Qwt - Python 3
python-qwt-doc - Pure Python implementation of Qwt - Documentation

如何编辑 cmake 列表以正确找到它正在寻找的内容?

python compiling dependencies cmake gnuradio
  • 2 个回答
  • 1610 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve