You are not logged in.

#1 2020-01-16 10:58:57

nausicaa
Member
Registered: 2019-11-18
Posts: 4

[SOLVED] grass 7.8.2 AUR conflict python-wxpython

Hi there,

I need to install GRASS 7.8.2 or another version of GRASS 7. I am aware of the risk of installing AUR packages, but I need the software.

I tried to install it from AUR repo, but it was reported an error "Wrong python version inside this grass package (symbolic link). It couldn't work like this. Python2 is deprecated in grass 7.8 Line 55 in PKGBUILD should be deleted, it's a nonsense to link python2 inside grass 7.8 ... Install some extension and you will see some problems!"

This is the outcome:


$ yaourt -S grass

==> Downloading grass PKGBUILD from AUR...
x .SRCINFO
x .gitignore
x PKGBUILD
Scimmia commented on <a href="#comment-715874" class="date">2019-11-12 15:08</a> 

loganj commented on <a href="#comment-717710" class="date">2019-11-22 21:48</a> 
grass78 
Starting GRASS GIS...
Traceback (most recent call last):
File "/opt/grass/gui/wxpython/core/globalvar.py", line 49, in CheckWxVersion
parsed_version = list(map(int, split_ver))
ValueError: invalid literal for int() with base 10: 'post2'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/opt/grass/gui/wxpython/gis_set.py", line 34, in module
from core import globalvar
File "/opt/grass/gui/wxpython/core/globalvar.py", line 237, in module
hasAgw = CheckWxVersion([2, 8, 11, 0])
File "/opt/grass/gui/wxpython/core/globalvar.py", line 55, in CheckWxVersion
parsed_version = list(map(int, split_ver[:-1])) + [int(split_ver[-1][:i])]
ValueError: invalid literal for int() with base 10: ''
ERROR: Error in GUI startup. See messages above (if any) and if necessary, please report this error to the GRASS developers.
On systems with package manager, make sure you have the right GUI package, probably named grass-gui, installed.
To run GRASS GIS in text mode use the --text flag.
Use '--help' for further options
grass78 --help
See also: [url]https://grass.osgeo.org/grass78/manuals/helptext.html[/url]
Exiting...

kikislater commented on <a href="#comment-720797" class="date">2019-12-15 08:13</a>			 

Scimmia commented on <a href="#comment-720842" class="date">2019-12-15 15:21</a> 

kikislater commented on <a href="#comment-720858" class="date">2019-12-15 16:56</a>			 

grass 7.8.2-1  (2019-12-14 23:26)
( Unsupported package: Potentially dangerous ! )
==> Edit PKGBUILD ? [Y/n] ("A" to abort)
==> ------------------------------------
==> n

==> grass dependencies:
 - bzip2 (already installed)
 - cairo (already installed)
 - fftw (already installed)
 - fontconfig (already installed)
 - freetype2 (already installed)
 - gcc-libs (already installed)
 - gdal (already installed)
 - geos (already installed)
 - glibc (already installed)
 - glu (already installed)
 - libpng (already installed)
 - libtiff (already installed)
 - libx11 (already installed)
 - libgl (already installed)
 - netcdf (already installed)
 - pdal (already installed)
 - proj (already installed)
 - python-gdal (already installed)
 - python-numpy (already installed)
 - readline (already installed)
 - zlib (already installed)
 - zstd (already installed)
 - libxt (already installed) [makedepend]
 - python-pillow (package found)
 - python-wxpython (package found)


==> Continue building grass ? [Y/n]
==> -------------------------------
==> 
==> Building and installing package
==> Install or build missing dependencies for grass:
resolving dependencies...
looking for conflicting packages...

Packages (2) python-pillow-6.2.1-1  python-wxpython-4.0.7-1

Total Installed Size:  49.03 MiB

:: Proceed with installation? [Y/n] 
(2/2) checking keys in keyring                     [######################] 100%
(2/2) checking package integrity                   [######################] 100%
(2/2) loading package files                        [######################] 100%
(2/2) checking for file conflicts                  [######################] 100%
error: failed to commit transaction (conflicting files)
python-wxpython: /usr/bin/helpviewer exists in filesystem
python-wxpython: /usr/bin/img2png exists in filesystem
python-wxpython: /usr/bin/img2py exists in filesystem
python-wxpython: /usr/bin/img2xpm exists in filesystem
python-wxpython: /usr/bin/pycrust exists in filesystem
python-wxpython: /usr/bin/pyshell exists in filesystem
python-wxpython: /usr/bin/pyslices exists in filesystem
python-wxpython: /usr/bin/pyslicesshell exists in filesystem
python-wxpython: /usr/bin/pywxrc exists in filesystem
python-wxpython: /usr/bin/wxdemo exists in filesystem
python-wxpython: /usr/bin/wxdocs exists in filesystem
python-wxpython: /usr/bin/wxget exists in filesystem
Errors occurred, no packages were upgraded.
==> Restart building grass ? [y/N]
==> ------------------------------

Any help will be very much appreciated.

Last edited by nausicaa (2020-01-16 14:43:51)

Offline

#2 2020-01-16 12:10:14

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,403

Re: [SOLVED] grass 7.8.2 AUR conflict python-wxpython

You probably installed something with sudo pip NEVER install something with sudo pip, you will break your system.

For how to fix this particular error read https://wiki.archlinux.org/index.php/Pa … )%22_error

Offline

#3 2020-01-16 14:43:27

nausicaa
Member
Registered: 2019-11-18
Posts: 4

Re: [SOLVED] grass 7.8.2 AUR conflict python-wxpython

Thanks for your help!

As the wiki indicates, I first checked that the files listed above had no owner package

pacman -Qo /path/to/file

and then renamed them. After that I was able to install Grass 7. Thanks!

Offline

Board footer

Powered by FluxBB