I've appreciated FLExTools in the past, and had a go installing v2 on Windows 10. I followed the windows setup instructions but I got an error before it had completed. Output is below. Also, just to confirm that it hasn't installed; nothing happens when I open FlexTools.vbs and when I open FlexTools_Debug.bat the response is ModuleNotFoundError: No module named 'clr'. I'm not an expert on Python. Any thoughts on what might be going wrong?
$ pip install -r requirements.txt
Collecting git+https://github.com/cdfarrow/cdfutils.git (from -r requirements.txt (line 2))
Cloning https://github.com/cdfarrow/cdfutils.git to c:\users\username\appdata\local\temp\pip-req-build-s_gcq4sw
Requirement already satisfied (use --upgrade to upgrade): cdfutils==1.0.2 from git+https://github.com/cdfarrow/cdfutils.git in c:\users\username\appdata\local\programs\python\python39\lib\site-packages (from -r requirements.txt (line 2))
Collecting git+https://github.com/cdfarrow/flexlibs.git (from -r requirements.txt (line 3))
Cloning https://github.com/cdfarrow/flexlibs.git to c:\users\username\appdata\local\temp\pip-req-build-8mse8dzd
Requirement already satisfied: configparser in c:\users\username\appdata\local\programs\python\python39\lib\site-packages (from -r requirements.txt (line 1)) (5.1.0)
Collecting pythonnet>=2.0.0
Using cached pythonnet-2.5.2.tar.gz (1.9 MB)
Collecting sphinx
Using cached Sphinx-4.3.0-py3-none-any.whl (3.1 MB)
Requirement already satisfied: pycparser in c:\users\username\appdata\local\programs\python\python39\lib\site-packages (from pythonnet>=2.0.0->flexlibs==1.0.3->-r requirements.txt (line 3)) (2.20)
Collecting snowballstemmer>=1.1
Using cached snowballstemmer-2.2.0-py2.py3-none-any.whl (93 kB)
Requirement already satisfied: requests>=2.5.0 in c:\users\username\appdata\local\programs\python\python39\lib\site-packages (from sphinx->flexlibs==1.0.3->-r requirements.txt (line 3)) (2.25.1)
Collecting sphinxcontrib-devhelp
Using cached sphinxcontrib_devhelp-1.0.2-py2.py3-none-any.whl (84 kB)
Collecting sphinxcontrib-jsmath
Using cached sphinxcontrib_jsmath-1.0.1-py2.py3-none-any.whl (5.1 kB)
Collecting sphinxcontrib-applehelp
Using cached sphinxcontrib_applehelp-1.0.2-py2.py3-none-any.whl (121 kB)
Collecting sphinxcontrib-serializinghtml>=1.1.5
Using cached sphinxcontrib_serializinghtml-1.1.5-py2.py3-none-any.whl (94 kB)
Requirement already satisfied: babel>=1.3 in c:\users\username\appdata\local\programs\python\python39\lib\site-packages (from sphinx->flexlibs==1.0.3->-r requirements.txt (line 3)) (2.9.0)
Requirement already satisfied: Pygments>=2.0 in c:\users\username\appdata\local\programs\python\python39\lib\site-packages (from sphinx->flexlibs==1.0.3->-r requirements.txt (line 3)) (2.7.3)
Requirement already satisfied: colorama>=0.3.5; sys_platform == "win32" in c:\users\username\appdata\local\programs\python\python39\lib\site-packages (from sphinx->flexlibs==1.0.3->-r requirements.txt (line 3)) (0.4.4)
Collecting imagesize
Using cached imagesize-1.3.0-py2.py3-none-any.whl (5.2 kB)
Requirement already satisfied: packaging in c:\users\username\appdata\local\programs\python\python39\lib\site-packages (from sphinx->flexlibs==1.0.3->-r requirements.txt (line 3)) (20.8)
Collecting sphinxcontrib-htmlhelp>=2.0.0
Using cached sphinxcontrib_htmlhelp-2.0.0-py2.py3-none-any.whl (100 kB)
Requirement already satisfied: setuptools in c:\users\username\appdata\local\programs\python\python39\lib\site-packages (from sphinx->flexlibs==1.0.3->-r requirements.txt (line 3)) (49.2.1)
Collecting docutils<0.18,>=0.14
Using cached docutils-0.17.1-py2.py3-none-any.whl (575 kB)
Collecting sphinxcontrib-qthelp
Using cached sphinxcontrib_qthelp-1.0.3-py2.py3-none-any.whl (90 kB)
Requirement already satisfied: Jinja2>=2.3 in c:\users\username\appdata\local\programs\python\python39\lib\site-packages (from sphinx->flexlibs==1.0.3->-r requirements.txt (line 3)) (2.11.2)
Collecting alabaster<0.8,>=0.7
Using cached alabaster-0.7.12-py2.py3-none-any.whl (14 kB)
Requirement already satisfied: idna<3,>=2.5 in c:\users\username\appdata\local\programs\python\python39\lib\site-packages (from requests>=2.5.0->sphinx->flexlibs==1.0.3->-r requirements.txt (line 3)) (2.10)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\users\username\appdata\local\programs\python\python39\lib\site-packages (from requests>=2.5.0->sphinx->flexlibs==1.0.3->-r requirements.txt (line 3)) (1.26.2)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\username\appdata\local\programs\python\python39\lib\site-packages (from requests>=2.5.0->sphinx->flexlibs==1.0.3->-r requirements.txt (line 3)) (2020.12.5)
Requirement already satisfied: chardet<5,>=3.0.2 in c:\users\username\appdata\local\programs\python\python39\lib\site-packages (from requests>=2.5.0->sphinx->flexlibs==1.0.3->-r requirements.txt (line 3)) (4.0.0)
Requirement already satisfied: pytz>=2015.7 in c:\users\username\appdata\local\programs\python\python39\lib\site-packages (from babel>=1.3->sphinx->flexlibs==1.0.3->-r requirements.txt (line 3)) (2020.5)
Requirement already satisfied: pyparsing>=2.0.2 in c:\users\username\appdata\local\programs\python\python39\lib\site-packages (from packaging->sphinx->flexlibs==1.0.3->-r requirements.txt (line 3)) (2.4.7)
Requirement already satisfied: MarkupSafe>=0.23 in c:\users\username\appdata\local\programs\python\python39\lib\site-packages (from Jinja2>=2.3->sphinx->flexlibs==1.0.3->-r requirements.txt (line 3)) (1.1.1)
Using legacy 'setup.py install' for cdfutils, since package 'wheel' is not installed.
Using legacy 'setup.py install' for flexlibs, since package 'wheel' is not installed.
Using legacy 'setup.py install' for pythonnet, since package 'wheel' is not installed.
Installing collected packages: pythonnet, snowballstemmer, sphinxcontrib-devhelp, sphinxcontrib-jsmath, sphinxcontrib-applehelp, sphinxcontrib-serializinghtml, imagesize, sphinxcontrib-htmlhelp, docutils, sphinxcontrib-qthelp, alabaster, sphinx, flexlibs
Running setup.py install for pythonnet: started
Running setup.py install for pythonnet: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: 'c:\users\username\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Username\\AppData\\Local\\Temp\\pip-install-wj70spsk\\pythonnet\\setup.py'"'"'; __file__='"'"'C:\\Users\\Username\\AppData\\Local\\Temp\\pip-install-wj70spsk\\pythonnet\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Username\AppData\Local\Temp\pip-record-_haocoog\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\username\appdata\local\programs\python\python39\Include\pythonnet'
cwd: C:\Users\Username\AppData\Local\Temp\pip-install-wj70spsk\pythonnet\
Complete output (6 lines):
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: option --single-version-externally-managed not recognized
Hi, thanks for reporting this. Unfortunately the pythonnet library doesn't support beyond Python 3.8 yet, so it looks like you are running a later version and will need to downgrade to 3.8 to run FlexTools. (See this issue)
I've appreciated FLExTools in the past, and had a go installing v2 on Windows 10. I followed the windows setup instructions but I got an error before it had completed. Output is below. Also, just to confirm that it hasn't installed; nothing happens when I open FlexTools.vbs and when I open FlexTools_Debug.bat the response is
ModuleNotFoundError: No module named 'clr'
. I'm not an expert on Python. Any thoughts on what might be going wrong?