alphageometry icon indicating copy to clipboard operation
alphageometry copied to clipboard

ModuleNotFoundError: No module named 'transformer' is reported

Open pshi007 opened this issue 2 years ago • 8 comments

ModuleNotFoundError: No module named 'transformer' is reported. I reinstalled or upgraded transformers. But it keeps showing up this error: from transformer import decoder_stack ModuleNotFoundError: No module named 'transformer'

pshi007 avatar Jan 26 '24 04:01 pshi007

I have the same problem. The module 'transformer' is used in 'transformer_layer.py' too.

RightAnwser avatar Jan 26 '24 11:01 RightAnwser

Try and ensure you are within the virtual environment for python: pip3 install virtualenv or pip install virtualenv

Try running this scripts bash run.sh again

Ehisnet avatar Jan 27 '24 05:01 Ehisnet

Well, I tried to run the shell script with msys2 inside a poetry virtual environment, and 'PYTHONPATH' seems not to work. So, I have to append system paths manually.

ACGNnsj avatar Jan 27 '24 13:01 ACGNnsj

So is it now working because what you complained of is virtual environment problem

On Sat, Jan 27, 2024 at 1:23 PM Shijie Ni @.***> wrote:

Well, I tried to run the shell script with msys2 inside a poetry virtual environment, and 'PYTHONPATH' seems not to work. So, I have to append system paths manually.

— Reply to this email directly, view it on GitHub https://github.com/google-deepmind/alphageometry/issues/56#issuecomment-1913155626, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFAKDKNA5R57DIOWOHCWLIDYQT5WJAVCNFSM6AAAAABCLS7FWCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJTGE2TKNRSGY . You are receiving this because you commented.Message ID: @.***>

Ehisnet avatar Jan 28 '24 14:01 Ehisnet

I'm having the same issue, running on Linux Mint OS. running in the virtual env, tried adding all those stuff to path, honestly tried everything suggested on the github page. Thanks for any help

ilan1009 avatar Feb 11 '24 11:02 ilan1009

My best advice as am also currently having problems with AG after getting past all these major problems is to do a fresh installation.

Delete all the files and folders, Try and ensure you do a reinstallation within the virtual environments. Most of these problems are usually caused by conflicting packages.

On Sun, Feb 11, 2024, 11:57 AM ilan1009 @.***> wrote:

I'm having the same issue, running on Linux Mint OS. running in the virtual env, tried adding all those stuff to path, honestly tried everything suggested on the github page. Thanks for any help

— Reply to this email directly, view it on GitHub https://github.com/google-deepmind/alphageometry/issues/56#issuecomment-1937641773, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFAKDKKLDRGZ2WQMUUPZQDDYTCWZXAVCNFSM6AAAAABCLS7FWCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZXGY2DCNZXGM . You are receiving this because you commented.Message ID: @.***>

Ehisnet avatar Feb 11 '24 13:02 Ehisnet

I have the same problem and have solved it. It's an issue about the environment variable. meliad/meliad_lib may be not added into PYTHONPATH. Add it and try again.

Btw, if PYTHONPATH is not defined, it is better setting export PYTHONPATH=YOUR_CONDA_PATH/envs/ENV_NAME/bin:$MELIAD_PATH

jiwei08 avatar Apr 23 '24 05:04 jiwei08

AlphaGeometry is a bit difficult to set up. I made some improvements in a fork repository and have some ideas to further improve the performance of AlphaGeometry, check out AG4Masses and issue 110. I also shared my experiences with AG, including a detailed explanation of the problem definition language.

tpgh24 avatar Apr 27 '24 14:04 tpgh24