Dear CCDC Team,
I successfully installed the CCDC Python API on an earlier machine but I am now having problems installing on a new machine.
Everything seems to be working until I get to the point of running the unit tests via run_tests.bat, which generates the error message in the thread title.
I am working on Windows 7, with "vanilla" Python 2.7.12. In case it is relevant, I need to elevate my user privileges via entering the details of an ADMIN account (not the standard account I am logged into) when running things as an ADMIN. I am also able to run the Mercury version 3.8 GUI without any complaints about the license.
I provide a detailed account of the steps I took below.
Thank you in advance for your assistance.
I am trying to follow
C:\UoLeeds_work.PC\work.PC_installation\Python>pip install nose > pip_install_no
created this as a SYSTEM variable:
CCDC_ISOSTAR_DATA_DIRECTORY=C:\Program Files (x86)\CCDC\CSD_2016\isostar_files
lxml-3.6.0.win32-py2.7.exe ran as ADMIN [previously downloaed from https://pypi.python.org/pypi/lxml/3.6.0]
CSDSQLite-2016-windows-installer.exe ran as ADMIN
C:\UoLeeds_work.PC\work.PC_installation\Python>pip install csd-python-api-1.0.0-
win32-py2.7.zip > pip_install_csd-python-api-1.0.0-win32-py2.7.zip_new.pc.log 2>
Python 2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:19:22) [MSC v.1500 32 bit (
Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from ccdc.io import EntryReader as csd_ER
ccdc-1.0.0\tests>run_tests.bat > run_tests.bat.my.pc.log 2>&1
INITIALLY, THIS WAS FAILING WITH "No valid licence located. Access is available to all organisations and institutions."
I SET CSDHOME=C:\Program Files (x86)\CCDC\CSD_2016\CSD V5.37 [as a SYSTEM variable]
[as ADMIN, as before]
ccdc-1.0.0\tests>run_tests.bat > run_tests.bat.work.pc.log 2>&1
"RuntimeError: Welcome to the CSD Python API.
No valid licence located. Access is available to all organisations and institutions.
To find details for your company or university please contact email@example.com."