Mayan EDMS 3.2.8 natively running on OSX High Sierra python 3.7

Questions, comments, discussions. Over time certain topics might be moved to their own category.
Post Reply
pleblancq
Posts: 3
Joined: Sat Oct 26, 2019 2:09 pm

Mayan EDMS 3.2.8 natively running on OSX High Sierra python 3.7

Post by pleblancq » Sat Oct 26, 2019 2:27 pm

Hi, just want to tell everybody that you can run mayan on OSX natively without Docker. I installed all the required packages with brew.

What I had to modify:
- kombu.async to kombu.asynchronous directory
- changed all the async variables to asynchronous

Python 3 uses the async as a reserved keyword.

- all imports from celery to kombu.synchronous.x
- changed fcntl.lockf to fcntl.flock in check_sources function for watching files

- all paths from /usr/bin to /usr/local/bin

Works like a charm!

User avatar
rosarior
Posts: 406
Joined: Tue Aug 21, 2018 3:28 am

Re: Mayan EDMS 3.2.8 natively running on OSX High Sierra python 3.7

Post by rosarior » Mon Oct 28, 2019 12:24 am

Hi,

Thanks for the feedback and instruction! Very appreciated. Mayan 3.3 includes an updated Celery and Kombu.

pleblancq
Posts: 3
Joined: Sat Oct 26, 2019 2:09 pm

Re: Mayan EDMS 3.2.8 natively running on OSX High Sierra python 3.7

Post by pleblancq » Tue Oct 29, 2019 1:52 pm

You're welcome.

When OSX Catalina will be more mature, I will upgrade my OS and do a full step by step installation guide for people that prefers using native installation instead of Docker.

Good for the 2 upgraded packages.

For the difference between lockf and flock, I looked on the net and for an unknown reason, lockf should work on OSX but doesn't works.

with lockf (default), I get "Error processing source: [Errno 45] Operation not supported" while using flock works flawlessly.

I tried both scenario, local watch directory or SMB/CIFS watch directory, same error with lockf and flockf works in both case.

Post Reply