Giter Club home page Giter Club logo

Comments (4)

jiegec avatar jiegec commented on August 18, 2024

建议用 pip3 install vitables 享受最新版本的 vitables

from faq.

heroxbd avatar heroxbd commented on August 18, 2024

解决方案:

  1. 创建 /etc/apt/apt.conf.d/07repo,内容为
APT {   
        Default-Release "buster";
}
  1. /etc/apt/sources.list 里加入 Debian Sid
...
deb http://mirrors.tuna.tsinghua.edu.cn/debian/ sid main non-free contrib
...
  1. apt install vitables/sid

注意,此时安装的 vitables 是来自 Debian Sid 的 3.0 版本,并非 Debian Buster 中的 2.1 版本。会有如下输出:

...
Selected version '3.0.0-1.1' (Debian:unstable [all]) for 'vitables'
  1. 确认 vitables 的版本
$ vitables --version
vitables 3.0.0
  1. 需要把动态链接库的 ABI-tag 去掉,Qt5 才能正常运行
strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so.5

参考:microsoft/WSL#3023
https://superuser.com/questions/1347723/arch-on-wsl-libqt5core-so-5-not-found-despite-being-installed

from faq.

heroxbd avatar heroxbd commented on August 18, 2024

Ubuntu 用户需要把系统升级到 20.04 LTS 版本。再安装 vitables 就是 3.0 版本了。

但是升级过程可能出问题,丢失数据,一定先做好备份。

需要重复 Debian 方案的第 5 步,把动态链接库的 ABI-tag 去掉,Qt5 才能正常运行

strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so.5

from faq.

Dragon-of-nature avatar Dragon-of-nature commented on August 18, 2024

Ubuntu 可能的解决方案:
首先卸载掉qtpy PyQt5 vitables

sudo apt remove vitables

一般来说这个时候qtpy PyQt5 pyside已经一同卸载掉了,如果不放心,可以使用如下命令尝试:

sudo apt remove python3-pyside2
sudo apt remove python3-qtpy
sudo apt remove python3-pyqt5

注意PyQt5那一行的命令,是小写
一般你会得到已经无事可做的反馈,也就是在卸载vitables的时候已经一同卸载掉了
接下来重新安装vitables,一定先用pip3安装,再使用apt安装

pip3 install vitables
sudo apt install vitables

经过以上流程,经历过
Module ... 'Pyside'

cannot import name 'loadUiType' from 'qtpy.uic'
我的电脑能够成功运行vitables

from faq.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.