Multiple issues with installation options
As of 24-Oct-2018, the currently available installation options for the software "ORG.Asm" seem to be broken to various degrees.
The installer script "get-orgasm.py" fails because it appears to require some deprecated modules and aliases:
$ python3 get-orgasm.py
get-orgasm.py:37285: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
get-orgasm.py:37319: DeprecationWarning: decodestring() is a deprecated alias since Python 3.1, use decodebytes()
fp.write(base64.decodestring(ZIPFILE))
Unable to install ORG.asm on your system
Usage:
/usr/bin/python3 -m pip install [options] <requirement specifier> [package-index-options] ...
/usr/bin/python3 -m pip install [options] -r <requirements file> [package-index-options] ...
/usr/bin/python3 -m pip install [options] [-e] <vcs project url> ...
/usr/bin/python3 -m pip install [options] [-e] <local project path> ...
/usr/bin/python3 -m pip install [options] <archive url/path> ...
no such option: --download
Usage:
/usr/bin/python3 -m pip install [options] <requirement specifier> [package-index-options] ...
/usr/bin/python3 -m pip install [options] -r <requirements file> [package-index-options] ...
/usr/bin/python3 -m pip install [options] [-e] <vcs project url> ...
/usr/bin/python3 -m pip install [options] [-e] <local project path> ...
/usr/bin/python3 -m pip install [options] <archive url/path> ...
no such option: --download
Traceback (most recent call last):
File "get-orgasm.py", line 37463, in <module>
main()
File "get-orgasm.py", line 37394, in main
filename = pypidownload()
File "get-orgasm.py", line 37380, in pypidownload
filename=pip_download_package(SOFT)
File "get-orgasm.py", line 37355, in pip_download_package
filename = glob.glob(os.path.join(tmpdir,"%s*" % package))[0]
IndexError: list index out of range
The installation via the Python Package Index (PyPI) fails due to a potential incompatibility with Python3 (despite being listed for Python3 under https://pypi.org/project/ORG.asm/):
pip3 install ORG.Asm
Collecting ORG.Asm
Using cached https://files.pythonhosted.org/packages/17/cf/87c25c5e9ec553e8e763aaefd787b60074f42715a44b21fcab9ed1f47123/ORG.asm-0.2.07.tar.gz
Complete output from command python setup.py egg_info:
Collecting pip
Using cached https://files.pythonhosted.org/packages/c2/d7/90f34cb0d83a6c5631cf71dfe64cc1054598c843a92b400e55675cc2ac37/pip-18.1-py2.py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 18.1
Uninstalling pip-18.1:
Successfully uninstalled pip-18.1
Successfully installed pip-18.1
['', '/usr/lib/python37.zip', '/usr/lib/python3.7', '/usr/lib/python3.7/lib-dynload', '/home/mi/.local/lib/python3.7/site-packages', '/usr/lib/python3.7/site-packages', '/tmp/pip-install-xag0tm0j/ORG.Asm/distutils.ext', '/tmp/pip-install-xag0tm0j/ORG.Asm/python']
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'egg_info' is not defined
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-xag0tm0j/ORG.Asm/
The manual setup.py installation from the GitLab repository works more or less, but only after the following manual changes to the package:
- Comment out the following lines in file "distutils.ext/obidistutils/serenity/checkpackage.py". Otherwise the installaer will perpetually install and uninstall pip without proceeding:
#try:
# import pip # @UnresolvedImport
# from pip.utils import get_installed_distributions # @UnresolvedImport
#except ImportError:
# from .bootstrappip import bootstrap
# bootstrap()
- Make sure that you have Sphinx version 1.4.3 installed; later versions appear to be incompatible with the installation script.
pip3 install -U sphinx==1.4.3
The manual setup.py installation works fine from then onward, but the resulting executable "oa" results in segmentation faults (which may be unrelated problems, however).
Info of system on which the above was tested:
$ uname -a
Linux user 4.18.12-arch1-1-ARCH #1 SMP PREEMPT Thu Oct 4 01:01:27 UTC 2018 x86_64 GNU/Linux