Building Paperwork on macOS

in #technology6 years ago

Following instructions at https://gitlab.gnome.org/World/OpenPaperwork/paperwork/blob/master/doc/install.devel.markdown. These instructions include nothing about installing on macOS, hence this block post.

Starting with provided CLI instructions

git clone https://github.com/jflesch/paperwork.git cd paperwork git checkout develop # or 'release-xxx'

virtualenv --system-site-packages -p python3 venv
source venv/bin/activate

you're now in a virtualenv

make install # or 'make install_py'
No problems so far. Our output looks clean (yet poorly formatted on WordPress)

Finished processing dependencies for paperwork==0.0.0

============================================================

============================================================

|| IMPORTANT||

||||

|| Please run ||

||--------------------------------------------------------||

||paperwork-shell chkdeps paperwork_backend ||

|| paperwork-shell chkdeps paperwork||

||paperwork-shell install ||

||--------------------------------------------------------||

|| to find any missing dependencies ||

|| and install Paperwork's icons and shortcuts||

============================================================

============================================================
Per the instructions, we will only run the first two commands

paperwork-shell chkdeps paperwork_backend
and
paperwork-shell chkdeps paperwork
Okay, this is where things start getting hairy. Running
paperwork-shell chkdeps paperwork_backend
yields

Traceback (most recent call last):

File "/Volumes/Home/Documents/paperwork/venv/bin/paperwork-shell", line 11, in <module>

load_entry_point('paperwork-backend==0.0.0', 'console_scripts', 'paperwork-shell')()

File "/Volumes/Home/Documents/paperwork/venv/lib/python3.6/site-packages/pkg_resources/__init__.py", line 479, in load_entry_point

return get_distribution(dist).load_entry_point(group, name)

File "/Volumes/Home/Documents/paperwork/venv/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2703, in load_entry_point

return ep.load()

File "/Volumes/Home/Documents/paperwork/venv/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2321, in load

return self.resolve()

File "/Volumes/Home/Documents/paperwork/venv/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2327, in resolve

module = __import__(self.module_name, fromlist=['__name__'], level=0)

File "<frozen importlib._bootstrap>", line 971, in _find_and_load

File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked

File "<frozen importlib._bootstrap>", line 656, in _load_unlocked

File "<frozen importlib._bootstrap>", line 626, in _load_backward_compatible

File "/Volumes/Home/Documents/paperwork/venv/lib/python3.6/site-packages/paperwork_backend-0.0.0-py3.6.egg/paperwork_backend/__init__.py", line 7, in <module>

File "<frozen importlib._bootstrap>", line 971, in _find_and_load

File "<frozen importlib._bootstrap>", line 951, in _find_and_load_unlocked

File "<frozen importlib._bootstrap>", line 894, in _find_spec

File "<frozen importlib._bootstrap_external>", line 1157, in find_spec

File "<frozen importlib._bootstrap_external>", line 1131, in _get_spec

File "<frozen importlib._bootstrap_external>", line 1112, in _legacy_get_spec

File "<frozen importlib._bootstrap>", line 441, in spec_from_loader

File "<frozen importlib._bootstrap_external>", line 544, in spec_from_file_location

File "/Volumes/Home/Documents/paperwork/venv/lib/python3.6/site-packages/paperwork_backend-0.0.0-py3.6.egg/paperwork_backend/_version.py", line 1

-n version = "

^

SyntaxError: invalid syntax

It seems that there is something going on with the version. Let us retry this whole thing...
cd ..

deactivate # leave python virtual environment

rm -r ./paperwork
Now we retry with a release version

git clone https://github.com/jflesch/paperwork.git cd paperwork git checkout 1.2.4

virtualenv --system-site-packages -p python3 venv
source venv/bin/activate

you're now in a virtualenv

make install # or 'make install_py'
...same result. Shelving this for now.


Posted from my blog with SteemPress : https://blog.coryatech.com/2018/07/15/building-paperwork-on-macos/

Sort:  

Congratulations @stevecorya! You have completed the following achievement on Steemit and have been rewarded with new badge(s) :

You got your First payout

Click on the badge to view your Board of Honor.
If you no longer want to receive notifications, reply to this comment with the word STOP

To support your work, I also upvoted your post!

Do not miss the last post from @steemitboard:
SteemitBoard World Cup Contest - Final results coming soon

Do you like SteemitBoard's project? Then Vote for its witness and get one more award!

Coin Marketplace

STEEM 0.30
TRX 0.12
JST 0.032
BTC 63701.54
ETH 3092.31
USDT 1.00
SBD 3.87