Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'UnencryptedCookieSessionFactoryConfig' from 'pyramid.session' (unknown location) #23

Closed
yhangchen opened this issue Mar 23, 2021 · 4 comments

Comments

@yhangchen
Copy link

Hi, by executing this

python3 train.py --name cifar10-100_500 --dataset cifar10 --model_type ViT-B_16 --pretrained_dir checkpoint/ViT-B_16.npz

I encounter the error:

Traceback (most recent call last):
  File "train.py", line 17, in <module>
    from apex import amp
  File "/home/tiger/.local/lib/python3.7/site-packages/apaex/__init__.py", line 13, in <module>
    from pyramid.session import UnencryptedCookieSessionFactoryConfig
ImportError: cannot import name 'UnencryptedCookieSessionFactoryConfig' from 'pyramid.session' (unknown location)
@zhoufengfan
Copy link

I think you have install the wrong apex.
I have installed apex through the source code. You can refer to the official website and try again.

@airsimonhan
Copy link

git clone https://github.com/NVIDIA/apex
cd apex
python setup.py install

@jhq1234
Copy link

jhq1234 commented Nov 1, 2023

git clone https://github.com/NVIDIA/apex cd apex python setup.py install

it works for me!
Thanks!

@luomi16
Copy link

luomi16 commented Jan 5, 2024

!git clone https://github.com/NVIDIA/apex
%cd apex
!pip install -v --disable-pip-version-check --no-cache-dir --no-build-isolation ./

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants