Error installing CPA from source

cellprofiler-analyst

#1

Hi

I am trying to install CPA from source in Mac with Python 2.7. I installed with the dependencies as required and cloned the git. When I run python setup.py py2app I get the following error:

Traceback (most recent call last):
File “setup.py”, line 48, in
name = APPNAME,
File “/Users/CairnBio/anaconda2/lib/python2.7/site-packages/setuptools/init.py”, line 143, in setup
return distutils.core.setup(**attrs)
File “/Users/CairnBio/anaconda2/lib/python2.7/distutils/core.py”, line 151, in setup
dist.run_commands()
File “/Users/CairnBio/anaconda2/lib/python2.7/distutils/dist.py”, line 953, in run_commands
self.run_command(cmd)
File “/Users/CairnBio/anaconda2/lib/python2.7/distutils/dist.py”, line 972, in run_command
cmd_obj.run()
File “/Users/CairnBio/Documents/CPAgit/CellProfiler-Analyst/.eggs/py2app-0.18-py2.7.egg/py2app/build_app.py”, line 838, in run
self._run()
File “/Users/CairnBio/Documents/CPAgit/CellProfiler-Analyst/.eggs/py2app-0.18-py2.7.egg/py2app/build_app.py”, line 1053, in _run
self.run_normal()
File “/Users/CairnBio/Documents/CPAgit/CellProfiler-Analyst/.eggs/py2app-0.18-py2.7.egg/py2app/build_app.py”, line 1266, in run_normal
o = import(m1, fromlist=[m2])
File “/Users/CairnBio/anaconda2/lib/python2.7/site-packages/PyQt5/uic/port_v3/ascii_upper.py”, line 24, in
_ascii_trans_table = bytes.maketrans(b’abcdefghijklmnopqrstuvwxyz’,
AttributeError: type object ‘str’ has no attribute ‘maketrans’

Any idea of how I can fix this?


#2

When doing pip freeze I get this:
alabaster==0.7.12

anaconda-client==1.7.1

anaconda-navigator==1.9.2

anaconda-project==0.8.2

appnope==0.1.0

appscript==1.0.1

asn1crypto==0.24.0

astroid==1.6.5

astropy==2.0.8

atomicwrites==1.2.1

attrs==18.2.0

Babel==2.6.0

backports-abc==0.5

backports.functools-lru-cache==1.5

backports.lzma==0.0.13

backports.os==0.1.1

backports.shutil-get-terminal-size==1.0.0

backports.ssl-match-hostname==3.5.0.1

beautifulsoup4==4.6.3

bitarray==0.8.3

bkcharts==0.2

blaze==0.11.3

bleach==3.0.2

blinker==1.4

bokeh==1.0.2

boto==2.49.0

boto3==1.9.59

botocore==1.12.59

Bottleneck==1.2.1

bz2file==0.98

cdecimal==2.3

CellProfiler-Analyst==2.2.1

certifi==2018.11.29

cffi==1.11.5

chardet==3.0.4

Click==7.0

cloudpickle==0.6.1

clyent==1.2.2

colorama==0.4.0

conda==4.5.11

conda-build==3.17.1

conda-verify==3.1.1

configparser==3.5.0

contextlib2==0.5.5

cryptography==2.3.1

cryptography-vectors==2.3.1

cycler==0.10.0

Cython==0.29.1

cytoolz==0.9.0.1

dask==1.0.0

datashape==0.5.4

decorator==4.3.0

distributed==1.25.0

docutils==0.14

entrypoints==0.2.3

enum34==1.1.6

et-xmlfile==1.0.1

fastcache==1.0.2

filelock==3.0.10

Flask==1.0.2

Flask-Cors==3.0.6

funcsigs==1.0.2

functools32==3.2.3.post2

future==0.17.1

futures==3.2.0

gensim==3.4.0

gevent==1.3.7

glob2==0.6

gmpy2==2.0.8

greenlet==0.4.13

grin==1.2.1

h5py==2.8.0

heapdict==1.0.0

html5lib==1.0.1

idna==2.7

imageio==2.4.1

imagesize==1.1.0

importlib-metadata==0.6

ipaddress==1.0.22

ipykernel==4.10.0

ipython==5.8.0

ipython-genutils==0.2.0

ipywidgets==7.4.2

isort==4.3.4

itsdangerous==1.1.0

javabridge==1.0.18

jdcal==1.4

jedi==0.13.1

Jinja2==2.10

jmespath==0.9.3

jsonschema==3.0.0a3

jupyter==1.0.0

jupyter-client==5.2.3

jupyter-console==5.2.0

jupyter-core==4.4.0

jupyterlab==0.33.12

jupyterlab-launcher==0.11.2

keyring==17.0.0

kiwisolver==1.0.1

lazy-object-proxy==1.3.1

libarchive-c==2.8

lief==0.9.0

linecache2==1.0.0

llvmlite==0.26.0

locket==0.2.0

lxml==4.2.5

MarkupSafe==1.1.0

matplotlib==2.2.3

mccabe==0.6.1

mistune==0.8.4

mock==2.0.0

more-itertools==4.3.0

mpmath==1.0.0

msgpack==0.6.0

multipledispatch==0.6.0

mysql-connector-python==8.0.13

navigator-updater==0.2.1

nbconvert==5.3.1

nbformat==4.4.0

nd2reader==3.1.0

networkx==2.2

nltk==3.2.5

nose==1.3.7

notebook==5.7.2

numba==0.41.0

numexpr==2.6.8

numpy==1.15.1

numpydoc==0.8.0

oauthlib==2.1.0

odo==0.5.1

olefile==0.46

openpyxl==2.5.12

packaging==18.0

pandas==0.23.4

pandocfilters==1.4.2

parso==0.3.1

partd==0.3.9

path.py==11.5.0

pathlib==1.0.1

pathlib2==2.3.3

patsy==0.5.1

pbr==5.1.1

pep8==1.7.1

pexpect==4.6.0

pickleshare==0.7.5

Pillow==5.3.0

PIMS==0.4.1

pkginfo==1.4.2

pluggy==0.8.0

ply==3.11

prometheus-client==0.4.2

prompt-toolkit==1.0.15

protobuf==3.6.1

psutil==5.4.8

ptyprocess==0.6.0

py==1.7.0

PyAudio==0.2.11

pycodestyle==2.4.0

pycosat==0.6.3

pycparser==2.19

pycrypto==2.6.1

pycurl==7.43.0.2

pyflakes==2.0.0

Pygments==2.3.0

PyJWT==1.6.4

pylint==1.9.2

pyodbc==4.0.24

pyOpenSSL==18.0.0

pyparsing==2.3.0

Pypubsub==4.0.0

pyrsistent==0.14.7

PySocks==1.6.8

pytest==4.0.1

python-bioformats==1.5.2

python-crfsuite==0.9.6

python-dateutil==2.7.5

pytz==2018.7

PyWavelets==1.0.1

PyYAML==3.13

pyzmq==17.1.2

QtAwesome==0.5.3

qtconsole==4.4.3

QtPy==1.5.2

requests==2.20.1

requests-oauthlib==1.0.0

rope==0.10.7

ruamel-yaml==0.15.71

s3transfer==0.1.13

scandir==1.9.0

scikit-image==0.14.1

scikit-learn==0.19.2

scipy==1.1.0

seaborn==0.9.0

Send2Trash==1.5.0

simplegeneric==0.8.1

singledispatch==3.4.0.3

six==1.11.0

sklearn==0.0

slicerator==0+unknown

smart-open==1.7.1

snowballstemmer==1.2.1

sortedcollections==1.0.1

sortedcontainers==2.1.0

Sphinx==1.8.2

sphinxcontrib-websupport==1.1.0

spyder==3.3.2

spyder-kernels==0.3.0

SQLAlchemy==1.2.14

statsmodels==0.9.0

subprocess32==3.5.3

sympy==1.3

tables==3.4.4

tblib==1.3.2

terminado==0.8.1

testpath==0.4.2

tifffile==0.15.1

toolz==0.9.0

tornado==5.1.1

tqdm==4.28.1

traceback2==1.4.0

traitlets==4.3.2

twython==3.7.0

typing==3.6.6

unicodecsv==0.14.1

unittest2==1.1.0

urllib3==1.23

verlib==0.1

wcwidth==0.1.7

webencodings==0.5.1

Werkzeug==0.14.1

widgetsnbextension==3.4.2

wrapt==1.10.11

wurlitzer==1.0.2

wxPython==4.0.3

wxPython-common==3.0.2.0

xlrd==1.1.0

XlsxWriter==1.1.2

xlwings==0.15.1

xlwt==1.3.0

xmltodict==0.11.0

zict==0.1.3