Opened 5 months ago

Closed 5 months ago

#17813 closed defect (fixed)

Building add_charge fails with metadata error

Reported by: Greg Couch Owned by: Zach Pearson
Priority: blocker Milestone:
Component: Infrastructure Version:
Keywords: Cc: pett, Tom Goddard
Blocked By: Blocking:
Notify when closed: Platform: Windows 10
Project: ChimeraX

Description

Building the develop branch of ChimeraX from scratch fails with:

make -C add_charge build
make[5]: Entering directory '/home/gregc/src/chimerax/src/bundles/add_charge'
if [ -z "../../../ChimeraX.app/bin/python.exe" ]; then \
        echo "missing ChimeraX application's python"; exit 1; \
else \
        PYTHONNOUSERSITE=1 ../../../ChimeraX.app/bin/python.exe -I -m chimerax.core --nogui --exit --safemode --cmd "devel build . exit true   "
; \
fi
Executing: devel build . exit true   
Traceback (most recent call last):
  File "A:\cygwin64\home\gregc\src\chimerax\ChimeraX.app\bin\Lib\importlib\metadata\__init__.py", line 563, in from_name
    return next(cls.discover(name=name))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "A:\cygwin64\home\gregc\src\chimerax\ChimeraX.app\bin\Lib\site-packages\chimerax\core\__main__.py", line 852, in init
    run(sess, cmd)
  File "A:\cygwin64\home\gregc\src\chimerax\ChimeraX.app\bin\Lib\site-packages\chimerax\core\commands\run.py", line 49, in run
    results = command.run(text, log=log, return_json=return_json)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "A:\cygwin64\home\gregc\src\chimerax\ChimeraX.app\bin\Lib\site-packages\chimerax\core\commands\cli.py", line 3219, in run
    result = ci.function(session, **kw_args)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "A:\cygwin64\home\gregc\src\chimerax\ChimeraX.app\bin\Lib\site-packages\chimerax\core\commands\devel.py", line 110, in devel_build       
    _run(path, session.logger, exit, BundleBuilder.make_wheel, debug=debug, release=release)
  File "A:\cygwin64\home\gregc\src\chimerax\ChimeraX.app\bin\Lib\site-packages\chimerax\core\commands\devel.py", line 175, in _run
    bb = _get_builder(logger, path)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "A:\cygwin64\home\gregc\src\chimerax\ChimeraX.app\bin\Lib\site-packages\chimerax\core\commands\devel.py", line 221, in _get_builder      
    bb = BundleBuilder.from_path(logger=logger, bundle_path=path)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "A:\cygwin64\home\gregc\src\chimerax\ChimeraX.app\bin\Lib\site-packages\chimerax\bundle_builder\bundle_builder.py", line 75, in from_path
    return cls(logger, bundle_path)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "A:\cygwin64\home\gregc\src\chimerax\ChimeraX.app\bin\Lib\site-packages\chimerax\bundle_builder\bundle_builder.py", line 68, in __init__ 
    self._read_bundle_info(info_file)
  File "A:\cygwin64\home\gregc\src\chimerax\ChimeraX.app\bin\Lib\site-packages\chimerax\bundle_builder\bundle_builder.py", line 246, in _read_bu
ndle_info
    self._get_dependencies(bi)
  File "A:\cygwin64\home\gregc\src\chimerax\ChimeraX.app\bin\Lib\site-packages\chimerax\bundle_builder\bundle_builder.py", line 443, in _get_dep
endencies
    installed_version = parse(version(req.name))
                              ^^^^^^^^^^^^^^^^^
  File "A:\cygwin64\home\gregc\src\chimerax\ChimeraX.app\bin\Lib\importlib\metadata\__init__.py", line 1008, in version
    return distribution(distribution_name).version
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "A:\cygwin64\home\gregc\src\chimerax\ChimeraX.app\bin\Lib\importlib\metadata\__init__.py", line 981, in distribution
    return Distribution.from_name(distribution_name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "A:\cygwin64\home\gregc\src\chimerax\ChimeraX.app\bin\Lib\importlib\metadata\__init__.py", line 565, in from_name
    raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: No package metadata was found for ChimeraX-Atomic

Change History (6)

comment:1 by Greg Couch, 5 months ago

Platform: allWindows 10

Compiled on Linux. So just a problem on Windows 10.

comment:2 by Greg Couch, 5 months ago

src/bundles/Makefile.dependencies is missing add_charge

comment:3 by Greg Couch, 5 months ago

correction, src/bundles/Makefile.dependencies is correctly missing add_charge. Building add_charge is not supposed to depend on atomic.

comment:4 by Greg Couch, 5 months ago

correction, linux failed too.

Tempoarily fixed by removing last bundle builder commit.

comment:5 by pett, 5 months ago

Cc: Tom Goddard added

Guessing this interests T.G. too

comment:6 by Zach Pearson, 5 months ago

Resolution: fixed
Status: assignedclosed

Should be fixed

Note: See TracTickets for help on using tickets.