error while installing pythia

Asked by pengshijie

Collecting pythia
  Using cached pythia-0.8.1.11.tar.gz (146 kB)
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-2jqo7ch9/pythia/setup.py'"'"'; __file__='"'"'/tmp/pip-install-2jqo7ch9/pythia/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-2jqo7ch9/pythia/pip-egg-info
         cwd: /tmp/pip-install-2jqo7ch9/pythia/
    Complete output (15 lines):
    Traceback (most recent call last):
      File "/tmp/pip-install-2jqo7ch9/pythia/setup.py", line 3, in <module>
        from merlin import setup, find_packages
    ModuleNotFoundError: No module named 'merlin'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-2jqo7ch9/pythia/setup.py", line 6, in <module>
        from ez_setup import use_setuptools
      File "/tmp/pip-install-2jqo7ch9/pythia/ez_setup/__init__.py", line 110
        except pkg_resources.VersionConflict, e:
                                            ^
    SyntaxError: invalid syntax
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Question information

Language:
English Edit question
Status:
Answered
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#1

Hi,

I was not aware that you could install pythia via pip...
I would suggest to contact pythia author about this (if they are the one maintening the repo related to the pip command)

Cheers,

Olivier

Revision history for this message
pengshijie (pengshijie) said :
#2

err, GPT teach me to do like this,,so pip command is not used widely, right?

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#3

pip command is widely used for installing python package.
A python package pythia does exists:
https://pypi.org/project/pythia/
with description:
An extensible, object-oriented framework for specifying and staging complex, multi-physics simulations.
but the website associated is:
https://geodynamics.org//cig/software/packages/cs/pythia/
(and is returning error 404)

So GPT is giving you instruction to install a geodynamics program (likely not maintained anymre) and not the instruction to install the High Energy Physics tool (which is a C++ code).

One option that you can try is to do (within mg5aMC terminal) is to type install pythia8

Cheers,

Olivier

Can you help with this problem?

Provide an answer of your own, or ask pengshijie for more information if necessary.

To post a message you must log in.