alphageometry icon indicating copy to clipboard operation
alphageometry copied to clipboard

"ModuleNotFoundError: No module named 'transformer'"

Open Pedro-Enrique opened this issue 1 year ago • 4 comments

"from transformer import decoder_stack" lead to the above error. I tried deactivating and then reactivating my virtual environment without success. I tried 'pip3 install transformers' without success. I get "Python 3.11.3 (v3.11.3:f3909b8bc8, Apr 4 2023, 20:12:10) [Clang 13.0.0 (clang-1300.0.29.30)] on darwin" if I run 'python. I am running a script that needs to import 'alphageometry.py' but not run 'run.sh' in the folder where every AlphaGeometry Github files lie. I use Mac with VScode.

Pedro-Enrique avatar Sep 11 '24 21:09 Pedro-Enrique

I have same issue here. If you solved this error, please help me out. Thank you.

Holy-moly-cow avatar Sep 26 '24 06:09 Holy-moly-cow

Has it been solved?

zhaoyurui avatar Nov 28 '24 12:11 zhaoyurui

Same error here.

pyscriptor avatar Mar 01 '25 08:03 pyscriptor

The reason for this error is that you have to install meliad. Just follow the README.md to install it and this "transformer" will show in the meliad folder.

MELIAD_PATH=meliad_lib/meliad
mkdir -p $MELIAD_PATH
git clone https://github.com/google-research/meliad $MELIAD_PATH
export PYTHONPATH=$PYTHONPATH:$MELIAD_PATH

ddd-kx avatar Mar 08 '25 15:03 ddd-kx