Clean Install Issue with Run_All_Benchmarks

Aperta Adatta ai principianti
#1,376 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 7 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
78/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python

Direzione di ricerca

Inizia da aviary/utils/functions.py, dove get_aviary_resource_path accede a importlib.resources, e poi leggi aviary/interface/test/test_cmd_entry_points.py, dove i tre test non riusciti lo importano. Riproduci il problema con python aviary/run_all_benchmarks.py nell’ambiente Python 3.14 pulito segnalato. La modifica è completa quando la ricerca delle risorse funziona in tale ambiente e tutti e tre i test indicati sui punti di ingresso dei comandi superano.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Description

I performed a clean install using CONDA, but I am failing 3 Tests of Run_All_Benchmarks, although Aviary passes it's self check and can run analyses successfully.

Example

(base) PS C:\Users\cmattenb\Desktop\Test\Aviary\aviary> & 'C:\Users\cmattenb\AppData\Local\Programs\Python\Python314\python.exe' 'c:/Users/cmattenb/Desktop/Test/Aviary/aviary/run_all_benchmarks.py'

Error Message

C:\Users\cmattenb\Desktop\Test\Aviary\aviary\interface\test\test_cmd_entry_points.py:run_missionTestCases.bench_test_IPOPT_cmd ... FAIL (00:00:0.00, 0 MB)
Traceback (most recent call last):
File "C:\Users\cmattenb\AppData\Local\miniforge3\Lib\site-packages\testflo\test.py", line 63, in testcontext
yield
File "C:\Users\cmattenb\AppData\Local\miniforge3\Lib\site-packages\testflo\test.py", line 248, in run
, mod = get_module(testpath)
~~~~~~~~~~^^^^^^^^^^
File "C:\Users\cmattenb\AppData\Local\miniforge3\Lib\site-packages\testflo\util.py", line 429, in get_module
mod = try_import(fname, modpath)
File "C:\Users\cmattenb\AppData\Local\miniforge3\Lib\site-packages\testflo\util.py", line 371, in try_import
mod = import_module(modpath)
File "C:\Users\cmattenb\AppData\Local\miniforge3\Lib\importlib_init
.py", line 88, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1406, in _gcd_import
File "", line 1371, in _find_and_load
File "", line 1342, in _find_and_load_unlocked
File "", line 938, in _load_unlocked
File "", line 763, in exec_module
File "", line 491, in _call_with_frames_removed
File "C:\Users\cmattenb\Desktop\Test\Aviary\aviary\interface\test\test_cmd_entry_points.py", line 7, in
from aviary.utils.functions import get_aviary_resource_path
File "C:\Users\cmattenb\Desktop\Test\Aviary\aviary\utils\functions.py", line 36, in
top_dir = Path(get_aviary_resource_path(''))
~~~~~~~~~~~~~~~~~~~~~~~~^^^^
File "C:\Users\cmattenb\Desktop\Test\Aviary\aviary\utils\functions.py", line 31, in get_aviary_resource_path
ref = importlib.resources.files('aviary')
^^^^^^^^^^^^^^^^^^^
AttributeError: module 'importlib' has no attribute 'resources'

C:\Users\cmattenb\Desktop\Test\Aviary\aviary\interface\test\test_cmd_entry_points.py:run_missionTestCases.bench_test_phase_info_cmd ... FAIL (00:00:0.00, 0 MB)
Traceback (most recent call last):
File "C:\Users\cmattenb\AppData\Local\miniforge3\Lib\site-packages\testflo\test.py", line 63, in testcontext
yield
File "C:\Users\cmattenb\AppData\Local\miniforge3\Lib\site-packages\testflo\test.py", line 248, in run
, mod = get_module(testpath)
~~~~~~~~~~^^^^^^^^^^
File "C:\Users\cmattenb\AppData\Local\miniforge3\Lib\site-packages\testflo\util.py", line 429, in get_module
mod = try_import(fname, modpath)
File "C:\Users\cmattenb\AppData\Local\miniforge3\Lib\site-packages\testflo\util.py", line 371, in try_import
mod = import_module(modpath)
File "C:\Users\cmattenb\AppData\Local\miniforge3\Lib\importlib_init
.py", line 88, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1406, in _gcd_import
File "", line 1371, in _find_and_load
File "", line 1342, in _find_and_load_unlocked
File "", line 938, in _load_unlocked
File "", line 763, in exec_module
File "", line 491, in _call_with_frames_removed
File "C:\Users\cmattenb\Desktop\Test\Aviary\aviary\interface\test\test_cmd_entry_points.py", line 7, in
from aviary.utils.functions import get_aviary_resource_path
File "C:\Users\cmattenb\Desktop\Test\Aviary\aviary\utils\functions.py", line 36, in
top_dir = Path(get_aviary_resource_path(''))
~~~~~~~~~~~~~~~~~~~~~~~~^^^^
File "C:\Users\cmattenb\Desktop\Test\Aviary\aviary\utils\functions.py", line 31, in get_aviary_resource_path
ref = importlib.resources.files('aviary')
^^^^^^^^^^^^^^^^^^^
AttributeError: module 'importlib' has no attribute 'resources'

C:\Users\cmattenb\Desktop\Test\Aviary\aviary\interface\test\test_cmd_entry_points.py:run_missionTestCases.bench_test_SNOPT_cmd ... FAIL (00:00:0.00, 0 MB)
Traceback (most recent call last):
File "C:\Users\cmattenb\AppData\Local\miniforge3\Lib\site-packages\testflo\test.py", line 63, in testcontext
yield
File "C:\Users\cmattenb\AppData\Local\miniforge3\Lib\site-packages\testflo\test.py", line 248, in run
, mod = get_module(testpath)
~~~~~~~~~~^^^^^^^^^^
File "C:\Users\cmattenb\AppData\Local\miniforge3\Lib\site-packages\testflo\util.py", line 429, in get_module
mod = try_import(fname, modpath)
File "C:\Users\cmattenb\AppData\Local\miniforge3\Lib\site-packages\testflo\util.py", line 371, in try_import
mod = import_module(modpath)
File "C:\Users\cmattenb\AppData\Local\miniforge3\Lib\importlib_init
.py", line 88, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1406, in _gcd_import
File "", line 1371, in _find_and_load
File "", line 1342, in _find_and_load_unlocked
File "", line 938, in _load_unlocked
File "", line 763, in exec_module
File "", line 491, in _call_with_frames_removed
File "C:\Users\cmattenb\Desktop\Test\Aviary\aviary\interface\test\test_cmd_entry_points.py", line 7, in
from aviary.utils.functions import get_aviary_resource_path
File "C:\Users\cmattenb\Desktop\Test\Aviary\aviary\utils\functions.py", line 36, in
top_dir = Path(get_aviary_resource_path(''))
~~~~~~~~~~~~~~~~~~~~~~~~^^^^
File "C:\Users\cmattenb\Desktop\Test\Aviary\aviary\utils\functions.py", line 31, in get_aviary_resource_path
ref = importlib.resources.files('aviary')
^^^^^^^^^^^^^^^^^^^
AttributeError: module 'importlib' has no attribute 'resources'

...

The following tests failed:
test_cmd_entry_points.py:run_missionTestCases.bench_test_IPOPT_cmd
test_cmd_entry_points.py:run_missionTestCases.bench_test_SNOPT_cmd
test_cmd_entry_points.py:run_missionTestCases.bench_test_phase_info_cmd

Passed: 8
Failed: 3
Skipped: 20

Ran 31 tests using 12 processes
Wall clock time: 00:01:41.43

Aviary Version

1.0.3-dev

Environment Information

This file may be used to create an environment using:

$ conda create --name --file

platform: win-64

created-by: conda 26.10.0

_python_abi3_support=1.0=hd8ed1ab_3
accessible-pygments=0.0.5=pypi_0
alabaster=0.7.16=pypi_0
ampl-asl=1.0.0=he0c23c2_2
annotated-types=0.8.0=pyhd8ed1ab_0
anyio=4.16.0=pyh5ded981_1
archspec=0.2.6=pyhd8ed1ab_0
attrs=26.1.0=pypi_0
aviary=1.0.3-dev=pypi_0
babel=2.18.0=pypi_0
backports.zstd=1.8.0=py314h723298c_1
beautifulsoup4=4.15.0=pypi_0
bokeh=3.10.2=pypi_0
boltons=26.2.0=pyhd8ed1ab_0
brotli-python=1.2.1=py314h85cf176_0
bzip2=1.0.8=h0ad9c76_10
ca-certificates=2026.10.23=h4c7d964_0
cached-property=2.0.1=pyhcf101f3_0
cached_property=2.0.1=pyhcf101f3_0
certifi=2026.10.23=pyhd8ed1ab_3
cfgv=3.5.0=pypi_0
charset-normalizer=3.5.2=h308a848_0
click=8.5.1=pypi_0
colorama=0.4.6=pyhd8ed1ab_1
colorcet=3.2.1=pypi_0
conda=26.10.0=py314hb821551_1
conda-index=0.13.0=pyh5ded981_0
conda-launchers=24.7.1=74da2fe_gcc_5
conda-libmamba-solver=26.10.0=pyh5ded981_0
conda-lockfiles=0.2.2=pyhd8ed1ab_0
conda-package-handling=2.6.0=pyh5ded981_0
conda-package-streaming=0.13.0=pyhd8ed1ab_0
conda-pycosat-solver=26.10.0=pyh5ded981_0
conda-pypi=0.13.0=pyh5ded981_1
conda-rattler-solver=26.10.2=pyh5ded981_0
conda-self=0.3.0=pyhd8ed1ab_0
contourpy=1.4.0=pypi_0
coverage=7.17.3=pypi_0
cpp-expected=1.3.1=h477610d_1
cpython=3.14.10=py314hd8ed1ab_100
cycler=0.12.1=pypi_0
cyipopt=1.7.0=py314hc4cab8e_2
distlib=0.4.4=pypi_0
distro=1.9.0=pyhd8ed1ab_1
docutils=0.21.2=pypi_0
dymos=1.16.0=pypi_0
fastjsonschema=2.22.3=pypi_0
filelock=4.2.11=pypi_0
fmt=12.1.0=h1ced75a_1
fonttools=4.68.0=pypi_0
frozendict=2.5.0=pyhb5810a6_0
h11=0.16.0=pyhcf101f3_1
h2=4.4.1=pyhcf101f3_0
holoviews=1.23.2=pypi_0
hpack=4.2.0=pyhd8ed1ab_0
httpcore2=2.16.0=pyh5ded981_0
httpx2=2.16.0=pyh4fe4dc5_0
hvplot=0.13.0=pypi_0
hyperframe=6.1.0=pyhd8ed1ab_0
icu=78.3=h5112557_2
identify=2.6.20=pypi_0
idna=3.20=pyh5ded981_0
imagesize=2.0.1=pypi_0
importlib-metadata=10.0.0=pyh5ded981_0
ipopt=3.14.20=he5a0f77_0
itables=2.9.1=pypi_0
jinja2=3.1.6=pyhcf101f3_1
jsonschema=4.26.0=pypi_0
jsonschema-specifications=2025.9.1=pypi_0
jupyter-book=1.0.4.post1=pypi_0
jupyter-cache=1.0.1=pypi_0
kiwisolver=1.5.1=pypi_0
krb5=1.22.2=h719d79b_2
latexcodec=3.0.1=pypi_0
libarchive=3.8.11=gpl_h8fdc8af_100
libblas=3.11.0=12_h8455456_mkl
libcblas=3.11.0=12_h2a3cdd5_mkl
libcurl=8.23.0=hdb0ef4a_0
libexpat=2.9.0=hac47afa_0
libffi=3.7.0=h3d046cb_1
libhwloc=2.15.0=default_hae90fe0_1001
libiconv=1.18=hc1393d2_3
liblapack=3.11.0=12_hf9ab0e9_mkl
liblzma=5.8.3=hfd05255_1
libmamba=2.9.0=py314h08176f6_3
libmamba-spdlog=2.9.0=h346c09a_3
libmambapy=2.9.0=py314hcc743ca_3
libmpdec=4.0.0=hfd05255_2
libmsgpack-c=6.1.0=h5112557_7
libpsl=0.23.1=h9b16d47_1
libpython=3.14.10=hc6187dd_100_cp314
libsolv=0.7.41=h8883371_0
libsqlite=3.54.1=hf5d6505_101
libssh2=1.11.1=h734d217_1
libwinpthread=12.0.0.r688.g6b2176247.1=h57928b3_0
libxml2=2.15.4=he095d88_1
libxml2-16=2.15.4=h3cfd58e_1
libzlib=1.3.2=hfd05255_3
linkify-it-py=2.2.0=pypi_0
llvm-openmp=23.1.5=h49e36cd_0
lz4-c=1.10.0=h6a83c73_2
lzo=2.10=h6a83c73_1003
mamba=2.9.0=h2f21d21_3
markdown=3.11.3=pypi_0
markdown-it-py=3.0.0=pypi_0
markupsafe=3.0.4=py314h9aa99d3_4
matplotlib=3.11.2=pypi_0
mdit-py-plugins=0.7.0=pypi_0
mdolab-baseclasses=1.9.0=pyh5ded981_0
mdurl=0.1.2=pypi_0
menuinst=2.5.2=py314hb98de8c_4
miniforge_console_shortcut=3.0=h7428d3b_1
mkl=2026.1.0=hac47afa_235
msgpack-python=1.2.4=py314hf309875_0
mumps-seq=5.8.2=flang_h3fd9f6e_3
myst-nb=1.4.0=pypi_0
myst-parser=3.0.1=pypi_0
narwhals=2.29.0=pypi_0
nbclient=0.11.0=pypi_0
nbformat=5.11.1=pypi_0
networkx=3.7=pypi_0
nh3=0.3.8=pypi_0
nlohmann_json-abi=3.12.0=h0f90c79_2
nodeenv=1.12.0=pypi_0
numpy=2.5.5=py314h02f10f6_1
openaerostruct=2.12.1=pypi_0
openmdao=3.45.2=pypi_0
openssl=3.6.5=hf411b9b_0
packaging=26.3=pyhc364b38_0
pandas=3.1.1=pypi_0
panel=1.10.0=pypi_0
panel-material-ui=0.16.7=pypi_0
param=2.4.2=pypi_0
parameterized=0.9.0=pypi_0
pillow=13.0.0=pypi_0
pip=26.2.2=pyh145f28c_2
pkgconf=3.0.11=pkg_config_hb996661_0
platformdirs=4.14.5=pyh5ded981_0
pluggy=1.7.0=pyh5ded981_0
pre-commit=4.7.0=pypi_0
py-rattler=0.28.1=py311h66afae6_0
pybind11-abi=11=hc364b38_1
pybtex=0.26.1=pypi_0
pybtex-docutils=1.0.3=pypi_0
pycosat=0.6.6=py314h5a2d7ad_6
pydantic=2.14.3=pyh5ded981_0
pydantic-core=2.50.4=py314h9f07db2_0
pydata-sphinx-theme=0.17.1=pypi_0
pyoptsparse=2.17.0=np2py314h2ae53d3_0
pyparsing=3.3.3=pypi_0
pyproject_hooks=1.3.3=pyhd8ed1ab_0
pysocks=1.7.1=pyh09c184e_7
python=3.14.10=h53f6dd8_100_cp314
python-build=1.6.1=pyhc364b38_0
python-discovery=1.9.5=pypi_0
python-gil=3.14.10=h4df99d1_100
python-installer=1.1.0=pyhe730653_0
python_abi=3.14=9_cp314
pyviz-comms=3.0.6=pypi_0
pyyaml=6.0.3=pypi_0
referencing=0.37.0=pypi_0
reproc=14.2.8.post0=h5112557_0
reproc-cpp=14.2.8.post0=hf5d2508_0
requests=2.34.2=pyhcf101f3_0
rpds-py=2026.9.1=pypi_0
ruamel.yaml=0.19.1=pyhcf101f3_0
ruamel.yaml.clib=0.2.15=py314hc5dbbe4_5
scipy=1.18.1=py314h8c99b21_3
setuptools=84.2.1=pyhe730653_0
simdjson=5.0.6=h477610d_0
snowballstemmer=3.1.1=pypi_0
soupsieve=4.1.1=pypi_0
spdlog=1.17.0=hd227c35_2
sphinx=7.4.7=pypi_0
sphinx-book-theme=1.3.0=pypi_0
sphinx-comments=0.0.3=pypi_0
sphinx-copybutton=0.5.2=pypi_0
sphinx-design=0.8.0=pypi_0
sphinx-external-toc=1.1.0=pypi_0
sphinx-jupyterbook-latex=1.0.0=pypi_0
sphinx-multitoc-numbering=0.1.3=pypi_0
sphinx-thebe=0.3.1=pypi_0
sphinx-togglebutton=0.4.5=pypi_0
sphinxcontrib-applehelp=2.0.0=pypi_0
sphinxcontrib-bibtex=2.7.0=pypi_0
sphinxcontrib-devhelp=2.0.0=pypi_0
sphinxcontrib-htmlhelp=2.1.0=pypi_0
sphinxcontrib-jsmath=2.0.0=pypi_0
sphinxcontrib-qthelp=2.0.0=pypi_0
sphinxcontrib-serializinghtml=2.0.0=pypi_0
sqlalchemy=2.1.9=pypi_0
sqlitedict=2.1.0=pyhd8ed1ab_1
tabulate=0.10.0=pypi_0
tbb=2023.1.0=h272cf33_4
testflo=1.4.22=pypi_0
tk=8.6.13=h967ab96_4
tomli=2.5.0=pyh5ded981_0
tomli-w=1.2.0=pyhd8ed1ab_0
tqdm=4.70.1=pyh6be1c34_0
truststore=0.10.5=pyh5ded981_0
typing-extensions=4.16.0=h69aa097_0
typing-inspection=0.4.5=pyh5ded981_0
typing_extensions=4.16.0=pyhcf101f3_0
tzdata=2026.6=pypi_0
ucrt=10.0.26100.0=h57928b3_0
unearth=0.19.0=pyhd8ed1ab_0
urllib3=2.8.0=pyhd8ed1ab_0
vc=14.5=ha367084_42
vc14_runtime=14.51.36247=habf1de7_42
vcomp14=14.51.36247=habf1de7_42
virtualenv=21.15.8=pypi_0
wheel=0.48.0=pypi_0
win_inet_pton=1.1.0=pyh7428d3b_8
xyzservices=2026.9.1=pypi_0
yaml-cpp=0.8.0=h5112557_1
zipp=4.1.2=pyh5ded981_0
zstd=1.5.7=h534d264_7

Lingua principale
Python
Stelle
303
Fork
152
Merge medio
7g 14h
PR unite (30g)
10

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di OpenMDAO/Aviary

Tutte le issue di OpenMDAO/Aviary

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.