conda-forge / admin-requests

27 stars 283 forks source link

qubovert file broken #1059

Closed henrikarhula closed 1 month ago

henrikarhula commented 1 month ago

It seems when qubovert is installed with conda it throws an error when attempting to import python-c code.

On windows:

{ "name": "ModuleNotFoundError", "message": "No module named 'qubovert.sim._canneal'", "stack": "--------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last) Cell In[1], line 1 ----> 1 from qubovert import PUBO, boolean_var

File c:\Users\h.karhula\src\mqt-qao\.pixi\envs\default\Lib\site-packages\qubovert\init.py:55 45 all = ( 46 all_qubo + 47 all_quso + (...) 51 all_pcso 52 ) 54 from . import sat ---> 55 from . import sim 56 from . import problems 59 del all_qubo, __all_quso__

File c:\Users\h.karhula\src\mqt-qao\.pixi\envs\default\Lib\site-packages\qubovert\sim\init.py:24 22 from ._anneal_temperature_range import 23 from ._anneal_results import ---> 24 from ._anneal import * 26 from ._anneal_temperature_range import all as all_tr 27 from ._anneal_results import all as all_results

File c:\Users\h.karhula\src\mqt-qao\.pixi\envs\default\Lib\site-packages\qubovert\sim\_anneal.py:30 28 import numpy as np 29 from itertools import chain ---> 30 from ._canneal import c_anneal_quso, c_anneal_puso 33 all = ( 34 'anneal_qubo', 'anneal_quso', 'anneal_pubo', 'anneal_puso', 35 'SCHEDULES' 36 ) 38 SCHEDULES = 'linear', 'geometric'

ModuleNotFoundError: No module named 'qubovert.sim._canneal'" }

Guidelines for marking packages as broken:

What will happen when a package is marked broken?

Checklist:

henrikarhula commented 1 month ago

ping @conda-forge/qubovert

henrikarhula commented 1 month ago

I am the only maintainer of qubovert for conda. Frankly, I don't know why it's not working, but it isn't working.

I've also created a new draft-PR for the recipe here, which also runs tests: https://github.com/conda-forge/staged-recipes/pull/27333

It seems to be okay, but I don't know if it will result in the same issue again.

qubovert does work locally, when installed via pip, but not via conda.

xhochy commented 1 month ago

The package has a dependency on a compiler but is marked as noarch. This should have not been merged in staged-recipes. Please fix it on the feedstock, though.