wxHaskell not find module `Distribution.Compat.Exception' - cabal

I am trying install wxhaskell on ubuntu
(and I have already installed wxwidget and it works well in codeblock)
I run cabal install wxc in terminal
and here is output
/tmp/wxc-0.92.1.1-2711/wxc-0.92.1.1/Setup.hs:25:8:
Could not find module Distribution.Compat.Exception
It is a member of the hidden package Cabal-1.22.5.0.
it is a hidden module in the package Cabal-1.16.0
Use -v to see a list of the files searched for.
Failed to install wxc-0.92.1.1
cabal: Error: some packages failed to install:
wxc-0.92.1.1 failed during the configure step. The exception was:
ExitFailure 1
actually, I can find Distribution.Compat.Exception
and I tried sudo ghc-pkg expose Cabal-1.16.0
sudo ghc-pkg expose Cabal-1.22.5.0 but nothing changed
someone help me out, great thanks!

If you are using ubuntu I think I have a solution. If you install GHC in ubuntu via "apt-get install ghc", all ghc packages are installed in /usr/lib/ghc/xyz. If you have installed ghc manually, not with a package manager, I don't know a solution.
Try this:
sudo cabal install cabal-install --global
Then do all the wxHaskell specific cabal installs the same way. So:
sudo cabal install wxdirect --global
sudo cabal install wxc --global
...
If this doesn't work, try this:
rm -rf ~/.ghc

Related

How to install allure on ubuntu 20 using selenium with python?

I have tried this
sudo apt-add-repository ppa:qameta/allure
sudo apt-get update
sudo apt-get install allure
and get the following results
Reading package lists... Done
Building dependency tree
Reading state information... Done
allure is already the newest version (0.8.3.0-3build3).
The following packages were automatically installed and are no longer required:
gir1.2-dee-1.0 gnome-software-common libaec0 libappstream-glib8 libapt-pkg5.90 libenchant1c2a libfprint0 libgfortran5 libgpod4 libgspell-1-1 libisl21 liblouis17 liboauth0 libqt5script5 librsync2
libwxgtk3.0-0v5 libx265-176 libxmlb1 python3-markupsafe python3-monotonic shim syslinux-legacy
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 28 not upgraded.
version of allure it gives no command found
allure --version
allure: command not found
I had the exact same problem and this solved it for me:
Credit -> allure: command not found on linux
The solution in just three steps:
sudo apt-get install default-jre
wget https://github.com/allure-framework/allure2/releases/download/2.18.1/allure_2.18.1-1_all.deb
sudo dpkg -i allure_2.18.1-1_all.deb

wxPython Installation failure

I am trying to install wxPython on a new installation of Ubuntu 18.04 using the command
pip3 install wxPython
The build fails with
error: [Errno 2] No such file or directory: 'build/lib.linux-x86_64-3.6/wx/libwx_baseu-3.0.so'
----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-30uqzd2e/wxPython/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-hynl659w-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-30uqzd2e/wxPython/
I have no idea where to look for a solution. Can someone please suggest where I might start
[EDIT 20200424 08:06]
I looked in
/usr/lib/x86_64-linux-gnu/
and
libwx_baseu-3.0.so.0
was absent. I have installed it from this site
It is now present, but the install fails with the same message
I have managed to install wxPython.
I reinstalled Ubuntu 18.04 and performed the following:
sudo apt install make gcc libgtk-3-dev libwebkitgtk-dev libwebkitgtk-3.0-dev libgstreamer-gl1.0-0 freeglut3 freeglut3-dev python-gst-1.0 python3-gst-1.0 libglib2.0-dev ubuntu-restricted-extras libgstreamer-plugins-base1.0-dev
pip3 install wxpython
I guess that when it was failing I had tried many fixes and somewhere along the line something was corrupted or there was a mismatch somewhere.
My solution was based on this answer
I Installed wx.python 4.1.0 yesterday with:
URL=https://extras.wxpython.org/wxPython4/extras/linux/gtk2/ubuntu-18.04
pip install -U -f $URL wxPython
See: https://extras.wxpython.org/wxPython4/extras/ for details.
For gtk3 simply replace gtk2 in the url above.

How to install ROS on Ubuntu 18.04?

Im running Ubuntu 18.04 and trying to install ROS for the first time on my machine. I have tried to follow the instructions at: http://wiki.ros.org/melodic/Installation/Ubuntu
I get stuck at this part.
sudo apt-get install ros-melodic-desktop-full
My attempts:
sudo apt -f install
sudo apt update --fix-missing
sudo dpkg --configure -a
sudo dpkg --remove --force-remove--reinstreq
sudo apt clean
sudo apt update
sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
Nothing has worked so far.
Terminal commands:
$sudo apt-get install ros-melodic-desktop-full
Reading package lists… Finished
Builds dependency trees
Reading state information ... Finished
Some packages could not be installed. It may mean that you have requested
an impossible situation or, if you use the unstable distribution
that some necessary packages have not yet been created or moved
from "Incoming".
The following information may help to resolve the situation:
The following packages have dependencies that cannot be satisfied:
rose-melodic-desktop-full: Dependent on: rose-melodic-desktop but it will not be installed
Depending on: rose-melodic-perception but it will not be installed
Depending on: rose-melodic-simulators but it will not be installed
Depending on: ros-melodic-urdf-sim-tutorial but it will not be installed
E: Could not correct the problems, you have withheld broken packages.
Please help me install ROS
1 - After following ROS melodic Installation first steps (see link below), Try to install it with the link "click here" below the "sudo apt install ros-melodic-desktop-full" line
ROS melodic Installation page
If it's doesn't work
2 - check, "Software & Update" parameters
(if you cannot find it: launch "Ubuntu Software Center" and in the menu bar, on top, select "Software & Update")
In "Other Sofware" tab, the link
"http://pacckage.ros.org/ros/ubuntu bionic main"
is printed, and in "Autentication" tab a key from Open Robotics is printed
3 - Try to do 1- again, if it doesn't work, follow 4-
4 - In "Updates" tab, check "recommanded Updates", launch "Update Manager" and install updates (I don't do it properly on my PC)
5 - And finally you need to install manually rosdep with:
"sudo apt-get install python-rosdep"
Ubuntu (apt) does NOT allow packages with the same name but different versions to be installed.
Remove other versions first. For example: apt remove ros-desktop*
first of all install program on ubuntu.
sudo apt-get update
sudo apt-get upgrade
after update packet try follow the instructions at: enter link description here again
I got it working like so:
Install deps:
sudo apt install gazebo9-common libgazebo9-dev gazebo9 ros-melodic-gazebo-ros-pkgs ros-melodic-gazebo-dev ros-melodic-gazebo-ros-control ros-melodic-gazebo-ros ros-melodic-urdf-sim-tutorial ros-melodic-simulators
Install ros melodic
sudo apt-get install ros-melodic-desktop-full

Unable to locate package matlab-psychtoolbox-3

I am trying to install the matlab-psychtoolbox-3 and I recieve this error:
$ sudo apt-get install matlab-psychtoolbox-3
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package matlab-psychtoolbox-3
Can anybody tell me how to solve the problem?
I guess this is old, but for anyone struggling with this error while installing psych-toolbox this is how to solve it. Basically, the error is because the neurodebian package is not installed in your system. To do so, run: sudo apt-get install neurodebian
Once you do this, then follow the next step, i.e., sudo apt-get install matlab-psychtoolbox-3
Then you are all set.
assuming that you've added the neurodebian ppa to your system witch is the easyest way to get the psychtoolbox to ubuntu
try to update your packet list with sudo apt-get update and then try to install again with sudo apt-get install matlab-psychtoolbox-3
if that doesn’t help check your software sources and see if the neurodebian nonfree ppa is installed (all matlab stuff is part of the nonfree branch).
if you got the free branch installed remove it put add the non free branch:
wget -O- http://neuro.debian.net/lists/trusty.de-md.full | sudo tee /etc/apt/sources.list.d/neurodebian.sources.list
sudo apt-key adv --recv-keys --keyserver hkp://pgp.mit.edu:80 2649A5A9
that should do the trick

Install rst2man failed for varnish agent [fix]

I'm trying install varnish agent on ubuntu server using virtual box. There is a message in the middle installation process that say "you need rst2man installed to make dist".
When I tried install rst2man using "sudo apt-get install rst2man" another message come in :
Reading package list....done
Building dependecy tree
Reading state information....done
E: unable to locate package rst2man
"unable to locate package rst2man" what does it mean ? anyone know ? please help.
Problem fix:
I tried to install python-docutils for the rst2man.
rst2man is a virtual package, then you need install python-docutils package than provide rst2man and utilities for the documentation of Python modules.
sudo apt-get install python-docutils
After install this package, try the command:
sudo which rst2man
python-docutils wasn't working for me
I had to install the package docutils-common
sudo apt-get install docutils-common
In case if you installing varnish-agent-2 - after
sudo apt-get install python-docutils
you should execute again
./configure
Working on CentOS and likely RHEL as well:
yum install python-docutils

Resources