[GH-ISSUE #344] Installation on Ubuntu 20.04 fails #271

Closed
opened 2026-02-25 21:31:35 +03:00 by kerem · 4 comments
Owner

Originally created by @rolikeusch on GitHub (Mar 12, 2021).
Original GitHub issue: https://github.com/ciur/papermerge/issues/344

Originally assigned to: @ciur on GitHub.

I'm not able to install papermerge on fresh Ubuntu 20.04 Server, i see always the following error when i invoke manage.py and have no idea how i can fix this:

(.venv) me@papermerge:/opt/papermerge$ ./manage.py migrate Traceback (most recent call last): File "./manage.py", line 24, in <module> execute_from_command_line(sys.argv) File "/opt/papermerge/.venv/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line utility.execute() File "/opt/papermerge/.venv/lib/python3.8/site-packages/django/core/management/__init__.py", line 395, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/opt/papermerge/.venv/lib/python3.8/site-packages/django/core/management/base.py", line 330, in run_from_argv self.execute(*args, **cmd_options) File "/opt/papermerge/.venv/lib/python3.8/site-packages/django/core/management/base.py", line 371, in execute output = self.handle(*args, **options) File "/opt/papermerge/.venv/lib/python3.8/site-packages/django/core/management/base.py", line 85, in wrapped res = handle_func(*args, **kwargs) File "/opt/papermerge/.venv/lib/python3.8/site-packages/django/core/management/commands/migrate.py", line 75, in handle self.check(databases=[database]) File "/opt/papermerge/.venv/lib/python3.8/site-packages/django/core/management/base.py", line 392, in check all_issues = checks.run_checks( File "/opt/papermerge/.venv/lib/python3.8/site-packages/django/core/checks/registry.py", line 70, in run_checks new_errors = check(app_configs=app_configs, databases=databases) File "/opt/papermerge/.venv/lib/python3.8/site-packages/papermerge/core/checks.py", line 110, in binaries_check binary = os.path.basename(binary_path) File "/usr/lib/python3.8/posixpath.py", line 142, in basename p = os.fspath(p) TypeError: expected str, bytes or os.PathLike object, not NoneType

I followed the Installation guide found here. Any Ideas what is missing here?

Info:

  • Distributor ID: Ubuntu
    Description: Ubuntu 20.04.2 LTS
    Release: 20.04
    Codename: focal
  • Papermerge Version v2.0.0rc48
Originally created by @rolikeusch on GitHub (Mar 12, 2021). Original GitHub issue: https://github.com/ciur/papermerge/issues/344 Originally assigned to: @ciur on GitHub. I'm not able to install papermerge on fresh Ubuntu 20.04 Server, i see always the following error when i invoke manage.py and have no idea how i can fix this: `(.venv) me@papermerge:/opt/papermerge$ ./manage.py migrate Traceback (most recent call last): File "./manage.py", line 24, in <module> execute_from_command_line(sys.argv) File "/opt/papermerge/.venv/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line utility.execute() File "/opt/papermerge/.venv/lib/python3.8/site-packages/django/core/management/__init__.py", line 395, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/opt/papermerge/.venv/lib/python3.8/site-packages/django/core/management/base.py", line 330, in run_from_argv self.execute(*args, **cmd_options) File "/opt/papermerge/.venv/lib/python3.8/site-packages/django/core/management/base.py", line 371, in execute output = self.handle(*args, **options) File "/opt/papermerge/.venv/lib/python3.8/site-packages/django/core/management/base.py", line 85, in wrapped res = handle_func(*args, **kwargs) File "/opt/papermerge/.venv/lib/python3.8/site-packages/django/core/management/commands/migrate.py", line 75, in handle self.check(databases=[database]) File "/opt/papermerge/.venv/lib/python3.8/site-packages/django/core/management/base.py", line 392, in check all_issues = checks.run_checks( File "/opt/papermerge/.venv/lib/python3.8/site-packages/django/core/checks/registry.py", line 70, in run_checks new_errors = check(app_configs=app_configs, databases=databases) File "/opt/papermerge/.venv/lib/python3.8/site-packages/papermerge/core/checks.py", line 110, in binaries_check binary = os.path.basename(binary_path) File "/usr/lib/python3.8/posixpath.py", line 142, in basename p = os.fspath(p) TypeError: expected str, bytes or os.PathLike object, not NoneType` I followed the Installation guide found [here](https://papermerge.readthedocs.io/en/latest/setup/manual_way.html#detailed-version). Any Ideas what is missing here? **Info:** - Distributor ID: Ubuntu Description: Ubuntu 20.04.2 LTS Release: 20.04 Codename: focal - Papermerge Version v2.0.0rc48
kerem 2026-02-25 21:31:35 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@ciur commented on GitHub (Mar 12, 2021):

Thanks for quick heads up!

It is a nasty bug. Here is workaround:

1.First install dependencies:

$ pip3 install -r requirements/base.txt
  1. Check installation path of stapler utility with
$ which stapler
  1. Add that path (absolute path to stapler utility) to papermerge.conf.py:
BINARY_STAPLER = "/home/eugen/Lab/DMS/.venv/bin/stapler"
<!-- gh-comment-id:797612632 --> @ciur commented on GitHub (Mar 12, 2021): Thanks for quick heads up! It is a nasty bug. Here is workaround: 1.First install dependencies: ``` $ pip3 install -r requirements/base.txt ``` 2. Check installation path of ``stapler`` utility with ``` $ which stapler ``` 3. Add that path (absolute path to stapler utility) to papermerge.conf.py: ``` BINARY_STAPLER = "/home/eugen/Lab/DMS/.venv/bin/stapler" ```
Author
Owner

@ciur commented on GitHub (Mar 12, 2021):

Fixed. I added default value for stapler.
If you will get latest source code (via git pull command), it should work without workaround.

<!-- gh-comment-id:797631188 --> @ciur commented on GitHub (Mar 12, 2021): Fixed. I added [default value for stapler](https://github.com/ciur/papermerge/commit/3da0f26274d5e0a0f6e6c7be0171c550d929b9f5). If you will get latest source code (via ``git pull`` command), it should work without workaround.
Author
Owner

@rolikeusch commented on GitHub (Mar 13, 2021):

This was it! With the new Version it works!
Thanks for the fast support.

<!-- gh-comment-id:798415082 --> @rolikeusch commented on GitHub (Mar 13, 2021): This was it! With the new Version it works! Thanks for the fast support.
Author
Owner

@AxelGanter commented on GitHub (May 25, 2023):

Thanks for quick heads up!

It is a nasty bug. Here is workaround:

1.First install dependencies:

$ pip3 install -r requirements/base.txt
  1. Check installation path of stapler utility with
$ which stapler
  1. Add that path (absolute path to stapler utility) to papermerge.conf.py:
BINARY_STAPLER = "/home/eugen/Lab/DMS/.venv/bin/stapler"

I use docker (want to test papermerge for the first time)

  1. should your solution work for me?
  2. where can I see error.log?
  3. where is the requirements folder?
  4. where is papermerge.conf.py?

Thank you.

<!-- gh-comment-id:1563099597 --> @AxelGanter commented on GitHub (May 25, 2023): > Thanks for quick heads up! > > It is a nasty bug. Here is workaround: > > 1.First install dependencies: > > ``` > $ pip3 install -r requirements/base.txt > ``` > > 2. Check installation path of `stapler` utility with > > ``` > $ which stapler > ``` > > 3. Add that path (absolute path to stapler utility) to papermerge.conf.py: > > ``` > BINARY_STAPLER = "/home/eugen/Lab/DMS/.venv/bin/stapler" > ``` I use docker (want to test papermerge for the first time) 1) should your solution work for me? 2) where can I see error.log? 3) where is the requirements folder? 4) where is papermerge.conf.py? Thank you.
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#271
No description provided.