McStasMcXtrace / McCode

The home of the McStas (neutrons) and McXtrace (x-rays) Monte-Carlo ray-tracing instrument simulation codes.
https://github.com/McStasMcXtrace/McCode/wiki
GNU General Public License v3.0
76 stars 54 forks source link

McXtrace python suite on CentOS #800

Open farhi opened 5 years ago

farhi commented 5 years ago

New job, new particle !

Installation of McXtrace 1.4 / Python on CentOS fails with unmet dependencies:

One solution is to request package:

there is very limited python3 support in CentOS7 )-:

farhi commented 5 years ago

Manual selection of any mcxtrace-python package:

brings an error from dependency miniconda:

climbcat commented 5 years ago

Congrats on the new particle!!

When I upgraded the python tools to python3, there were a few real differences in the PyQt calls. I believe we upgraded to PyQt5 and this was the main cause of the differences. Could the mcxtrace build packages/dependencies be out of date? You could try to manually run a PyQt5 tool on CentOS - starting with mcgui.

willend commented 5 years ago

I believe most issues will be resolved by building a new, complete McXtrace against the current master branch - 1.4 dates back to 2017 if I remember correctly, and many things were fixed in the meantime. (E.g. a miniconda with all python is what the rpms should depend on, not the system python packages)

I think I have a CentOS 7 VM somewhere, will try to roll a fresh set of packages to play with.

willend commented 5 years ago
willend commented 5 years ago

Hi folks,

I am currently building a set of beta packages and will post a download link here. Gives us a better idea what issues are solved or not.

(I am sure that the python stuff is solved on master, but also sure that the solution is based on python3 / miniconda3)

willend commented 5 years ago

Hi @farhi,

Try with the packages located here: http://tmp.mccode.org/McXtrace-1.5beta/

willend commented 5 years ago

(I've removed the suite packages that indeed need updating in the repo, also mcxtrace-tools-matlab-mxplot-1.5beta-rpm64.rpm which relies on iFit, so an rpm -i * should be enough)

willend commented 5 years ago

After install, everything should be in /usr/local/mcxtrace/1.5beta/ and the command mcxtrace-1.5beta-environment in /usr/local/bin

Run

sudo /usr/local/mcxtrace/1.5beta/bin/postinst set_mccode_default

to make it the default McXtrace on the system

willend commented 5 years ago

OK, everything installed here - but a number instruments don't currently compile due to recent changes "nowritefile" on the monitors...

I will create a separate issue on that after an mxrun.pl --test

farhi commented 5 years ago

Yes, all is fine when manually installing 1.5 beta:

wget -r http://tmp.mccode.org/McXtrace-1.5beta/ 
sudo rpm -i *
sudo /usr/local/mcxtrace/1.5beta/bin/postinst set_mccode_default

And I've seen before that not all instruments compile indeed #801 As far as the infrastructure is all set, that's a good start.

Still broken and minor stuff:

willend commented 5 years ago

@farhi great with this detailed input. I will formulate individual tickets for the mxgui/doc-oriented things.

@ebknudsen and I just agreed to try to do a common work-camp for McXtrace in a few weeks (meetings and conferences before)

ebknudsen commented 5 years ago

Also from here - thanks for the detailed input. We will get to work :-)