Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not run after install #497

Closed
sonichy opened this issue Feb 28, 2020 · 8 comments
Closed

Can not run after install #497

sonichy opened this issue Feb 28, 2020 · 8 comments

Comments

@sonichy
Copy link

sonichy commented Feb 28, 2020

1.pip3 install ReText

Collecting ReText
Collecting docutils (from ReText)
  Downloading http://mirrors.aliyun.com/pypi/packages/81/44/8a15e45ffa96e6cf82956dd8d7af9e666357e16b0d93b253903475ee947f/docutils-0.16-py2.py3-none-any.whl (548kB)
    100% |████████████████████████████████| 552kB 439kB/s 
Collecting Markups>=2.0 (from ReText)
  Downloading http://mirrors.aliyun.com/pypi/packages/56/c0/d77c6af4f43c00268372fcbaee715dc798ce70c6c6a93ae30bec32af94ed/Markups-3.0.0-py2.py3-none-any.whl
Collecting chardet>=2.3 (from ReText)
  Downloading http://mirrors.aliyun.com/pypi/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB)
    100% |████████████████████████████████| 143kB 9.1MB/s 
Collecting Pygments (from ReText)
  Downloading http://mirrors.aliyun.com/pypi/packages/be/39/32da3184734730c0e4d3fa3b2b5872104668ad6dc1b5a73d8e477e5fe967/Pygments-2.5.2-py2.py3-none-any.whl (896kB)
    100% |████████████████████████████████| 901kB 36.6MB/s 
Collecting Markdown (from ReText)
  Downloading http://mirrors.aliyun.com/pypi/packages/ab/c4/ba46d44855e6eb1770a12edace5a165a0c6de13349f592b9036257f3c3d3/Markdown-3.2.1-py2.py3-none-any.whl (88kB)
    100% |████████████████████████████████| 92kB 6.7MB/s 
Collecting python-markdown-math (from Markups>=2.0->ReText)
  Downloading http://mirrors.aliyun.com/pypi/packages/7c/81/2c86570437821d77b90a6d939d54e11b507b71785850840a5e56d8febeca/python_markdown_math-0.6-py2.py3-none-any.whl
Collecting setuptools>=36 (from Markdown->ReText)
  Downloading http://mirrors.aliyun.com/pypi/packages/3d/72/1c1498c1e908e0562b1e1cd30012580baa7d33b5b0ffdbeb5fde2462cc71/setuptools-45.2.0-py3-none-any.whl (584kB)
    100% |████████████████████████████████| 593kB 12.1MB/s 
Installing collected packages: docutils, python-markdown-math, Markups, chardet, Pygments, setuptools, Markdown, ReText
Successfully installed Markdown-3.2.1 Markups-3.0.0 Pygments-2.5.2 ReText-7.0.4 chardet-3.0.4 docutils-0.16 python-markdown-math-0.6 setuptools-45.2.0

2.~/.local/share/applications/me.mitya57.ReText.desktop

...
Exec=ReText-7.0.4.data/scripts/retext %F
...

No such file or directory

3.pip3 freeze

...
ReText==7.0.4
...

4.pip3 show Retext

Name: ReText
Version: 7.0.4
Summary: Simple editor for Markdown and reStructuredText
Home-page: https://github.com/retext-project/retext
Author: Dmitry Shachnev
Author-email: mitya57@gmail.com
License: GPL 2+
Location: /home/sonichy/.local/lib/python3.6/site-packages
Requires: docutils, Markups, chardet, Markdown, Pygments

@mitya57
Copy link
Member

mitya57 commented Feb 28, 2020

Thanks for the report! I will see what I can do about this. In the meantime please see #452 (comment).

@sonichy
Copy link
Author

sonichy commented Feb 29, 2020

pip3 install ReText --no-cache-dir is useless.
But I find retext in ~/.local/bin
python3 retext
ModuleNotFoundError: No module named 'PyQt5'
sudo apt-get install python3-pyqt5

Depends: python3 (< 3.6) but 3.6.5-3 is to be installed
Depends: sip-py3api-11.3
E: Unable to correct problems, you have held broken packages.

And then I find icon in ~/.local/share/icons/hicolor/scalable/apps/retext.svg
OS: Deepin 15.11 stable
I think AppImage package is the solution.

@mitya57
Copy link
Member

mitya57 commented Feb 29, 2020

Well, you have broken OS. Deepin 15.11 is based on Debian 9 (stretch), so your version of python3 should be 3.5.3-1 (and I see the same version here). Somehow you have 3.6.5-3. You should fix your system and revert python3 to the OS version.

@sonichy
Copy link
Author

sonichy commented Mar 3, 2020

sudo apt-get install python3.5
python3.5 is the latest version (3.5.5-1+b1).
sudo apt-get install python3.6
python3.6 is the latest version (3.6.5-9).

And python3.6 is system dependent, can not uninstall.
How to set python-pyqt5 depend python3.5 ?

@mitya57
Copy link
Member

mitya57 commented Mar 3, 2020

Can you please show me the output of apt-cache policy python3?

@sonichy
Copy link
Author

sonichy commented Mar 4, 2020

apt-cache policy python3

python3:
  已安装:3.6.5-3
  候选: 3.6.5-3
  版本列表:
 *** 3.6.5-3 100
        100 /var/lib/dpkg/status
     3.5.3-1 500
        500 http://packages.deepin.com/deepin lion/main amd64 Packages

@mitya57
Copy link
Member

mitya57 commented Mar 4, 2020

So this confirms my hypothesis. You have installed a package not from repo.

Try this:

sudo apt install --reinstall python3/lion

@sonichy
Copy link
Author

sonichy commented Mar 5, 2020

Finally, success, thank you !

sudo apt install --reinstall python3/lion
sudo apt install --reinstall python3-pip/lion
pip3 install ReText
    ImportError: No module named 'setuptools'
wget https://bootstrap.pypa.io/ez_setup.py
sudo python ez_setup.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants