NVIDIA / NVIDIA/apex

UnencryptedCookieSessionFactoryConfig not available for newer versions of pyramid.sessions

Open
#1,063 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
9k
Forks
1.5k
Avg merge
2d 4h
Merged PRs (30d)
3

Description

Installing apex through pip in an Anaconda python 3.8 environment yields:

>>> from apex import apm
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "path/lib/python3.8/site-packages/apex/__init__.py", line 13, in <module>
    from pyramid.session import UnencryptedCookieSessionFactoryConfig
ImportError: cannot import name 'UnencryptedCookieSessionFactoryConfig' from 'pyramid.session' (unknown location)

After having a look at the API documentation of pyramid it seems that indeed that name isn't available anymore in versions pyramid > 1.9. So I suppose replacing the UnencryptedCookieSessionFactoryConfig and/or specifying the maximally allowed pyramid version should do the trick.

The installed apex version is from pypy: 0.9.10.dev0

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in apex/init.py at the import of UnencryptedCookieSessionFactoryConfig and compare it with the supported pyramid.sessions API described in the issue. Check how the package declares its Pyramid dependency. Done means installing apex in the reported Python 3.8 environment no longer fails at import time.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.