mirror of
https://github.com/ciur/papermerge.git
synced 2026-04-25 12:05:58 +03:00
[GH-ISSUE #658] function issue #511
Labels
No labels
2.1
3.0
3.0.1
3.0.2
3.0.3
3.0.3
3.1
3.2
3.2
3.3
3.5
3.x
Fixed. Waiting for feedback.
Fixed. Waiting for feedback.
UX
Version 2.1 - alpha
XSS
announcement
beta
blocker
bug
cannot reproduce
confirmed
confirmed
critical
demo
dependencies
deployment
detchnical debt
discussion
docker
documentation
donations
duplicate
enhancement
feature request
frontend
fundraising
good first issue
good issue
help wanted
high
implemented
important
improvement
incomplete
invalid
investigation
kubernetes
low
low impact
medium
medium
medium impact
migration from 2.0
migration from 2.1
missing-language
missing-ocr-language
no-activity
note
ocr
outofscope
packaging
performance
popular request
pull-request
pypi
question
raspberry pi
roadmap
search
security
setup
status
task
technical debt
updates
user xp
version 1.4.0 - demo
will be implemented
will not be implemented
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/papermerge#511
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:
@ciur commented on GitHub (May 5, 2025):
What Papermerge version are you using?
@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')
)
@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?
@ciur commented on GitHub (May 8, 2025):
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.
@ciur commented on GitHub (May 29, 2025):
Closing because of lack o activity