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

Installation failure on Python 3.9.5 (RHEL 8.8, fresh environment) #11

Open
warrickball opened this issue Sep 12, 2024 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@warrickball
Copy link

warrickball commented Sep 12, 2024

To test the installation process, I just created a fresh Python 3.9.5 environment and ran

$ pip install git+https://github.com/athob/py-ananke@main

which eventually errored out with

Collecting git+https://github.com/athob/py-ananke@main
  Cloning https://github.com/athob/py-ananke (to revision main) to /tmp/pip-req-build-_v05__rf
  Running command git clone -q https://github.com/athob/py-ananke /tmp/pip-req-build-_v05__rf
  Running command git submodule update --init --recursive -q
Checking submodules, running git... Processing /tmp/pip-req-build-_v05__rf/py-EnBiD-ananke
  DEPRECATION: A future pip version will change local packages to be built in-place without first copying to a temporary directory. We recommend you use --use-feature=in-tree-build to test your packages with this new behavior before it becomes the default.
   pip 21.3 will remove support for this functionality. You can find discussion regarding this at https://github.com/pypa/pip/issues/7555.
    ERROR: Command errored out with exit status 1:
     command: /rds/homes/b/ballwh/work/pyananke/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-l0t1_g7z/enbid-ananke_032fa6dcedae4d11a75fa62510bcd565/setup.py'"'"'; __file__='"'"'/tmp/pip-install-l0t1_g7z/enbid-ananke_032fa6dcedae4d11a75fa62510bcd565/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-j8latto8
         cwd: /tmp/pip-install-l0t1_g7z/enbid-ananke_032fa6dcedae4d11a75fa62510bcd565/
    Complete output (7 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-l0t1_g7z/enbid-ananke_032fa6dcedae4d11a75fa62510bcd565/setup.py", line 7, in <module>
        from src.__metadata__ import *
      File "/tmp/pip-install-l0t1_g7z/enbid-ananke_032fa6dcedae4d11a75fa62510bcd565/src/__metadata__.py", line 38, in <module>
        __date__: datetime = datetime.fromisoformat(f"{__date__[:-2]}:{__date__[-2:]}")
    TypeError: 'NoneType' object is not subscriptable
    ----------------------------------------
WARNING: Discarding file:///tmp/pip-req-build-_v05__rf/py-EnBiD-ananke. Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

My guess is that this is coming up because the function get_versions in py-EnBiD-ananke (though I think the same function is used in py-ananke and py-Galaxia-ananke) is returning one of the dictionaries with date = None.

This is RHEL 8.8. pip freeze returns nothing, presumably because I'm in a fresh virtual environment.

Related to openjournals/joss-reviews#6234.

@athob athob self-assigned this Sep 15, 2024
@athob athob added the bug Something isn't working label Sep 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants