retext-project / retext

ReText: Simple but powerful editor for Markdown and reStructuredText
GNU General Public License v2.0
1.88k stars 196 forks source link

Doens't start on ArchLinux #386

Closed artemanufrij closed 6 years ago

artemanufrij commented 6 years ago

Installed by command: pacman -S retext

error when I try to start it:

Traceback (most recent call last):
  File "/usr/bin/retext", line 23, in <module>
    import markups
  File "/usr/lib/python3.7/site-packages/markups/__init__.py", line 5, in <module>
    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'
axionl commented 6 years ago

What is the version of this package?

artemanufrij commented 6 years ago

@axionl 7.0.3 https://www.archlinux.org/packages/?q=retext

https://www.archlinux.org/packages/community/any/retext/

mitya57 commented 6 years ago

Hi @artemanufrij!

You should report this bug to the ArchLinux package maintainer.

PyMarkups should depend on the package which provides pkg_resources module. This dependency was introduced in the last release of PyMarkups.

axionl commented 6 years ago

@artemanufrij

The python-markups>=2.0.0 has been depended, you can try to find this on /usr/lib/python3.7/site-packages . Please check your python environment, one possible reason is that you install this package or python by pip at last time.

artemanufrij commented 6 years ago

Hey guys, thank you for your feedback... I will try it tomorrow.

artemanufrij commented 6 years ago

python-markups-3.0.0-4 was already installed.

axionl commented 6 years ago

I'm also using Arch Linux too and the retext working well, you may need to check your python enviroment and make sure you can import the markups(test in ipython).

For more tips:

mitya57 commented 6 years ago

The problem is not with retext → python-markups dependency.

The problem is that python-markups should depend on python-setuptools, because that package provides /usr/lib/python3.x/site-packages/pkg_resources/ which is needed for python-markups.

I will now update upstream metadata to include setuptools dependency. (Upd: Fixed in retext-project/pymarkups@23ffdcda2d35e0a241edecf3357b1f1fa1afcb91.)

farseerfc commented 6 years ago

Just pushed a fix for dependency on archlinux community repo. https://www.archlinux.org/packages/community/any/python-markups/

artemanufrij commented 6 years ago

Now it works as expected! thank you guys!