[GH-ISSUE #658] function issue #511

Closed
opened 2026-02-25 21:32:05 +03:00 by kerem · 5 comments
Owner

Originally created by @simple0123 on GitHub (May 5, 2025).
Original GitHub issue: https://github.com/ciur/papermerge/issues/658

Originally assigned to: @ciur on GitHub.

Description
configula/configula.py does not have function get_var,but in base.py use cfg_papermerge.get_var as following:
PAPERMERGE_FILES_MIN_UNMODIFIED_DURATION = cfg_papermerge.get_var(
"FILES_MIN_UNMODIFIED_DURATION",
1
)

PAPERMERGE_IMPORTER_LOOP_TIME = cfg_papermerge.get_var(
"IMPORTER_LOOP_TIME",
5
)

, causing some errors

Info:

  • Papermerge Version [e.g. 3.5]
Originally created by @simple0123 on GitHub (May 5, 2025). Original GitHub issue: https://github.com/ciur/papermerge/issues/658 Originally assigned to: @ciur on GitHub. **Description** configula/configula.py does not have function get_var,but in base.py use cfg_papermerge.get_var as following: PAPERMERGE_FILES_MIN_UNMODIFIED_DURATION = cfg_papermerge.get_var( "FILES_MIN_UNMODIFIED_DURATION", 1 ) PAPERMERGE_IMPORTER_LOOP_TIME = cfg_papermerge.get_var( "IMPORTER_LOOP_TIME", 5 ) , causing some errors **Info:** - Papermerge Version [e.g. 3.5]
kerem 2026-02-25 21:32:05 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@ciur commented on GitHub (May 5, 2025):

What Papermerge version are you using?

<!-- gh-comment-id:2851539954 --> @ciur commented on GitHub (May 5, 2025): What Papermerge version are you using?
Author
Owner

@simple0123 commented on GitHub (May 5, 2025):

3.5 and 3.4.1 both have this issue,as following:
[papermerge\config\settings\base.py] :The method "cfg_papermerge.get_var" was called, but the "cfg_papermerge.get_var" method is not defined in Configula.configula.py.

PAPERMERGE_FILES_MIN_UNMODIFIED_DURATION = cfg_papermerge.get_var(
"FILES_MIN_UNMODIFIED_DURATION",
1
)

PAPERMERGE_IMPORTER_LOOP_TIME = cfg_papermerge.get_var(
"IMPORTER_LOOP_TIME",
5
)

PAPERMERGE_LANGUAGE_FROM_AGENT = cfg_papermerge.get_var(
'language_from_agent', False
)

LANGUAGE_CODE = cfg_papermerge.get_var(
'language_code',
default='en'
)

PAPERMERGE_TASK_QUEUE_DIR = cfg_papermerge.get_var(
'TASK_QUEUE_DIR',
default=os.path.join(PROJ_ROOT, 'queue')
)

<!-- gh-comment-id:2852653256 --> @simple0123 commented on GitHub (May 5, 2025): 3.5 and 3.4.1 both have this issue,as following: [papermerge\config\settings\base.py] :The method "cfg_papermerge.get_var" was called, but the "cfg_papermerge.get_var" method is not defined in [Configula.configula.py](http://configula.configula.py/). PAPERMERGE_FILES_MIN_UNMODIFIED_DURATION = cfg_papermerge.get_var( "FILES_MIN_UNMODIFIED_DURATION", 1 ) PAPERMERGE_IMPORTER_LOOP_TIME = cfg_papermerge.get_var( "IMPORTER_LOOP_TIME", 5 ) PAPERMERGE_LANGUAGE_FROM_AGENT = cfg_papermerge.get_var( 'language_from_agent', False ) LANGUAGE_CODE = cfg_papermerge.get_var( 'language_code', default='en' ) PAPERMERGE_TASK_QUEUE_DIR = cfg_papermerge.get_var( 'TASK_QUEUE_DIR', default=os.path.join(PROJ_ROOT, 'queue') )
Author
Owner

@ciur commented on GitHub (May 6, 2025):

Could you please provide the docker compose file, with the configurations, so that I can reproduce the problem you've encountered?

<!-- gh-comment-id:2853198066 --> @ciur commented on GitHub (May 6, 2025): Could you please provide the docker compose file, with the configurations, so that I can reproduce the problem you've encountered?
Author
Owner

@ciur commented on GitHub (May 8, 2025):

3.5 and 3.4.1 both have this issue,as following

That's surprising as neither of above versions does not use configula package.
configula package is deprecated in favour of pydantic settings. So I have no idea how you got that error. Maybe you can provide more context.

Just make sure you are using latest version, which as of today, is 3.5.

<!-- gh-comment-id:2861762097 --> @ciur commented on GitHub (May 8, 2025): ``` 3.5 and 3.4.1 both have this issue,as following ``` That's surprising as neither of above versions does not use [configula](https://pypi.org/project/configula/) package. [configula](https://pypi.org/project/configula/) package is deprecated in favour of [pydantic settings](https://pypi.org/project/pydantic-settings/). So I have no idea how you got that error. Maybe you can provide more context. Just make sure you are using latest version, which as of today, is 3.5.
Author
Owner

@ciur commented on GitHub (May 29, 2025):

Closing because of lack o activity

<!-- gh-comment-id:2918240583 --> @ciur commented on GitHub (May 29, 2025): Closing because of lack o activity
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/papermerge#511
No description provided.