Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can't install the package on python2.7 or python 3.11 #378

Open
Khaled-w-Elzend-2001 opened this issue Aug 18, 2024 · 2 comments
Open

Comments

@Khaled-w-Elzend-2001
Copy link

┌──(kali㉿kali)-[~/montepython_public]
└─$ python setup.py install --user

/home/kali/.local/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

    ********************************************************************************
    Please avoid running ``setup.py`` directly.
    Instead, use pypa/build, pypa/installer or other
    standards-based tools.

    See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
    ********************************************************************************

!!
self.initialize_options()
/home/kali/.local/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:66: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!

    ********************************************************************************
    Please avoid running ``setup.py`` and ``easy_install``.
    Instead, use pypa/build, pypa/installer or other
    standards-based tools.

    See https://github.com/pypa/setuptools/issues/917 for details.
    ********************************************************************************

!!
self.initialize_options()
Sorry: TabError: inconsistent use of tabs and spaces in indentation (init.py, line 26)
Sorry: TabError: inconsistent use of tabs and spaces in indentation (init.py, line 41)
Sorry: TabError: inconsistent use of tabs and spaces in indentation (init.py, line 41)
Sorry: TabError: inconsistent use of tabs and spaces in indentation (init.py, line 26)
error: can't copy 'montepython/likelihoods/kids450_cf_likelihood_public/CUT_VALUES': doesn't exist or not a regular file

@Khaled-w-Elzend-2001
Copy link
Author

python2.7 setup.py install --user
error: can't copy 'montepython/likelihoods/kids450_cf_likelihood_public/CUT_VALUES': doesn't exist or not a regular file

@brinckmann
Copy link
Owner

Hi Khaled,

Apologies for the very late reply, you opened this during the summer break. In case others have a similar issue, I'll just state here that MontePython does not need to be installed and should be possible to run out of the box with minimal changes just to set up a conf file either as default.conf in the directory or passed with --conf filename . The setup file is deprecated and should probably just be removed, although I've left it in case anyone found it useful. Let me know if you're having problems running the code itself.

Best,
Thejs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants