-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to install Pyiso #197
Comments
It looks like you are missing the lmxl library or its dependencies. On Windows this link may help: https://stackoverflow.com/a/30494745 |
@ajdonnison , |
I am having a nearly identical issue installing pyiso. (base) C:\Users\tedb3>pip install --user pyiso Using build configuration of libxslt Failed building wheel for lxml
Command "C:\ProgramData\Anaconda3\python.exe -u -c "import setuptools, tokenize;file='C:\Users\tedb3\AppData\Local\Temp\pip-install-yu4f0jl2\lxml\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\tedb3\AppData\Local\Temp\pip-record-f0ll4cit\install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in C:\Users\tedb3\AppData\Local\Temp\pip-install-yu4f0jl2\lxml\ |
I also have this error. Collecting pyiso Failed building wheel for lxml Failed to build lxml
Rolling back uninstall of lxml Command "/Users/camp426/anaconda3/bin/python -u -c "import setuptools, tokenize;file='/private/var/folders/xq/0txkbk490zl1y5wp5vd3bhhnpw3bp9/T/pip-install-f4u9gdu2/lxml/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /private/var/folders/xq/0txkbk490zl1y5wp5vd3bhhnpw3bp9/T/pip-record-_jo6fuvv/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/xq/0txkbk490zl1y5wp5vd3bhhnpw3bp9/T/pip-install-f4u9gdu2/lxml/ lxml is installed -- what is the problem? print(lxml.file) /Users/camp426/anaconda3/lib/python3.7/site-packages/lxml/init.py |
Easiest fix is to download the pyiso-source and then modify the following line in setup.py: Line 68 in 4e7bbc6
to: 'pandas', and then run: python setup.py install pyiso then gets successfully installed. Here are my results: (base) C:\pyiso-master>conda list pyiso # packages in environment at C:\Users\XXXX\AppData\Local\Continuum\anaconda3: # Name Version Build Channel pyiso 0.4.0 pypi_0 pypi (base) C:\pyiso-master>python Python 3.7.3 (default, Mar 27 2019, 17:13:21) [MSC v.1915 64 bit (AMD64)] :: Anaconda, Inc. on win32 Type "help", "copyright", "credits" or "license" for more information. >>> from pyiso import client_factory >>> isone = client_factory('CAISO') >>> data = caiso.get_load(latest=True) >>> df = pd.DataFrame(data) >>> df ba_name freq load_MW market timestamp 0 CAISO 5m 31149.0 RT5M 2019-08-26 17:30:00+00:00 >>>
|
i have been trying to install pyiso. I am using Python 3.7 in PTVS.
I am using the following pip command to install PYISO
pip install pyiso
I keep getting the following error. Can anyone kindly guide me ?
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
----- Installing 'pyiso==0.4.0' -----
Collecting pyiso==0.4.0
Requirement already satisfied, skipping upgrade: python-dateutil in c:\users\xxxxxxxxxxxxx\appdata\local\continuum\anaconda2\envs\mypython3_7_0\lib\site-packages (from pyiso==0.4.0) (2.7.5)
Requirement already satisfied, skipping upgrade: xlrd in c:\users\xxxxxxxxxxxxx\appdata\local\continuum\anaconda2\envs\mypython3_7_0\lib\site-packages (from pyiso==0.4.0) (1.1.0)
Collecting html5lib (from pyiso==0.4.0)
Using cached https://files.pythonhosted.org/packages/a5/62/bbd2be0e7943ec8504b517e62bab011b4946e1258842bc159e5dfde15b96/html5lib-1.0.1-py2.py3-none-any.whl
Requirement already satisfied, skipping upgrade: mock in c:\users\xxxxxxxxxxxxx\appdata\local\continuum\anaconda2\envs\mypython3_7_0\lib\site-packages (from pyiso==0.4.0) (2.0.0)
Collecting lxml==3.6.4 (from pyiso==0.4.0)
Using cached https://files.pythonhosted.org/packages/4f/3f/cf6daac551fc36cddafa1a71ed48ea5fd642e5feabd3a0d83b8c3dfd0cb4/lxml-3.6.4.tar.gz
Requirement already satisfied, skipping upgrade: pandas>=0.18 in c:\users\xxxxxxxxxxxxx\appdata\local\continuum\anaconda2\envs\mypython3_7_0\lib\site-packages (from pyiso==0.4.0) (0.23.4)
Requirement already satisfied, skipping upgrade: certifi in c:\users\xxxxxxxxxxxxx\appdata\local\continuum\anaconda2\envs\mypython3_7_0\lib\site-packages (from pyiso==0.4.0) (2018.10.15)
Requirement already satisfied, skipping upgrade: requests in c:\users\xxxxxxxxxxxxx\appdata\local\continuum\anaconda2\envs\mypython3_7_0\lib\site-packages (from pyiso==0.4.0) (2.20.0)
Requirement already satisfied, skipping upgrade: pytz in c:\users\xxxxxxxxxxxxx\appdata\local\continuum\anaconda2\envs\mypython3_7_0\lib\site-packages (from pyiso==0.4.0) (2018.7)
Requirement already satisfied, skipping upgrade: celery>=3.1 in c:\users\xxxxxxxxxxxxx\appdata\local\continuum\anaconda2\envs\mypython3_7_0\lib\site-packages (from pyiso==0.4.0) (4.2.1)
Requirement already satisfied, skipping upgrade: beautifulsoup4==4.5.0 in c:\users\xxxxxxxxxxxxx\appdata\local\continuum\anaconda2\envs\mypython3_7_0\lib\site-packages (from pyiso==0.4.0) (4.5.0)
Requirement already satisfied, skipping upgrade: six>=1.5 in c:\users\xxxxxxxxxxxxx\appdata\local\continuum\anaconda2\envs\mypython3_7_0\lib\site-packages (from python-dateutil->pyiso==0.4.0) (1.11.0)
Collecting webencodings (from html5lib->pyiso==0.4.0)
Using cached https://files.pythonhosted.org/packages/f4/24/2a3e3df732393fed8b3ebf2ec078f05546de641fe1b667ee316ec1dcf3b7/webencodings-0.5.1-py2.py3-none-any.whl
Requirement already satisfied, skipping upgrade: pbr>=0.11 in c:\users\xxxxxxxxxxxxx\appdata\local\continuum\anaconda2\envs\mypython3_7_0\lib\site-packages (from mock->pyiso==0.4.0) (5.1.0)
Requirement already satisfied, skipping upgrade: numpy>=1.9.0 in c:\users\xxxxxxxxxxxxx\appdata\local\continuum\anaconda2\envs\mypython3_7_0\lib\site-packages (from pandas>=0.18->pyiso==0.4.0) (1.15.3)
Requirement already satisfied, skipping upgrade: urllib3<1.25,>=1.21.1 in c:\users\xxxxxxxxxxxxx\appdata\local\continuum\anaconda2\envs\mypython3_7_0\lib\site-packages (from requests->pyiso==0.4.0) (1.24)
Requirement already satisfied, skipping upgrade: chardet<3.1.0,>=3.0.2 in c:\users\xxxxxxxxxxxxx\appdata\local\continuum\anaconda2\envs\mypython3_7_0\lib\site-packages (from requests->pyiso==0.4.0) (3.0.4)
Requirement already satisfied, skipping upgrade: idna<2.8,>=2.5 in c:\users\xxxxxxxxxxxxx\appdata\local\continuum\anaconda2\envs\mypython3_7_0\lib\site-packages (from requests->pyiso==0.4.0) (2.7)
Requirement already satisfied, skipping upgrade: billiard<3.6.0,>=3.5.0.2 in c:\users\xxxxxxxxxxxxx\appdata\local\continuum\anaconda2\envs\mypython3_7_0\lib\site-packages (from celery>=3.1->pyiso==0.4.0) (3.5.0.4)
Requirement already satisfied, skipping upgrade: kombu<5.0,>=4.2.0 in c:\users\xxxxxxxxxxxxx\appdata\local\continuum\anaconda2\envs\mypython3_7_0\lib\site-packages (from celery>=3.1->pyiso==0.4.0) (4.2.1)
Requirement already satisfied, skipping upgrade: amqp<3.0,>=2.1.4 in c:\users\xxxxxxxxxxxxx\appdata\local\continuum\anaconda2\envs\mypython3_7_0\lib\site-packages (from kombu<5.0,>=4.2.0->celery>=3.1->pyiso==0.4.0) (2.3.2)
Requirement already satisfied, skipping upgrade: vine>=1.1.3 in c:\users\xxxxxxxxxxxxx\appdata\local\continuum\anaconda2\envs\mypython3_7_0\lib\site-packages (from amqp<3.0,>=2.1.4->kombu<5.0,>=4.2.0->celery>=3.1->pyiso==0.4.0) (1.1.4)
Building wheels for collected packages: lxml
Running setup.py bdist_wheel for lxml: started
Running setup.py bdist_wheel for lxml: finished with status 'error'
Complete output from command C:\Users\xxxxxxxxxxxxx\AppData\Local\Continuum\anaconda2\envs\MyPython3_7_0\python.exe -u -c "import setuptools, tokenize;file='C:\Users\xxxxxxxxxxxxx\AppData\Local\Temp\pip-install-xxc0f4fe\lxml\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d C:\Users\xxxxxxxxxxxxx\AppData\Local\Temp\pip-wheel-hiz5h6h0 --python-tag cp37:
Building lxml version 3.6.4.
Building without Cython.
ERROR: b"'xslt-config' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n"
** make sure the development packages of libxml2 and libxslt are installed **
Using build configuration of libxslt
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.7
creating build\lib.win-amd64-3.7\lxml
copying src\lxml\builder.py -> build\lib.win-amd64-3.7\lxml
copying src\lxml\cssselect.py -> build\lib.win-amd64-3.7\lxml
copying src\lxml\doctestcompare.py -> build\lib.win-amd64-3.7\lxml
copying src\lxml\ElementInclude.py -> build\lib.win-amd64-3.7\lxml
copying src\lxml\pyclasslookup.py -> build\lib.win-amd64-3.7\lxml
copying src\lxml\sax.py -> build\lib.win-amd64-3.7\lxml
copying src\lxml\usedoctest.py -> build\lib.win-amd64-3.7\lxml
copying src\lxml_elementpath.py -> build\lib.win-amd64-3.7\lxml
copying src\lxml_init_.py -> build\lib.win-amd64-3.7\lxml
creating build\lib.win-amd64-3.7\lxml\includes
copying src\lxml\includes_init_.py -> build\lib.win-amd64-3.7\lxml\includes
creating build\lib.win-amd64-3.7\lxml\html
copying src\lxml\html\builder.py -> build\lib.win-amd64-3.7\lxml\html
copying src\lxml\html\clean.py -> build\lib.win-amd64-3.7\lxml\html
copying src\lxml\html\defs.py -> build\lib.win-amd64-3.7\lxml\html
copying src\lxml\html\diff.py -> build\lib.win-amd64-3.7\lxml\html
copying src\lxml\html\ElementSoup.py -> build\lib.win-amd64-3.7\lxml\html
copying src\lxml\html\formfill.py -> build\lib.win-amd64-3.7\lxml\html
copying src\lxml\html\html5parser.py -> build\lib.win-amd64-3.7\lxml\html
copying src\lxml\html\soupparser.py -> build\lib.win-amd64-3.7\lxml\html
copying src\lxml\html\usedoctest.py -> build\lib.win-amd64-3.7\lxml\html
copying src\lxml\html_diffcommand.py -> build\lib.win-amd64-3.7\lxml\html
copying src\lxml\html_html5builder.py -> build\lib.win-amd64-3.7\lxml\html
copying src\lxml\html_setmixin.py -> build\lib.win-amd64-3.7\lxml\html
copying src\lxml\html_init_.py -> build\lib.win-amd64-3.7\lxml\html
creating build\lib.win-amd64-3.7\lxml\isoschematron
copying src\lxml\isoschematron_init_.py -> build\lib.win-amd64-3.7\lxml\isoschematron
copying src\lxml\lxml.etree.h -> build\lib.win-amd64-3.7\lxml
copying src\lxml\lxml.etree_api.h -> build\lib.win-amd64-3.7\lxml
copying src\lxml\includes\c14n.pxd -> build\lib.win-amd64-3.7\lxml\includes
copying src\lxml\includes\config.pxd -> build\lib.win-amd64-3.7\lxml\includes
copying src\lxml\includes\dtdvalid.pxd -> build\lib.win-amd64-3.7\lxml\includes
copying src\lxml\includes\etreepublic.pxd -> build\lib.win-amd64-3.7\lxml\includes
copying src\lxml\includes\htmlparser.pxd -> build\lib.win-amd64-3.7\lxml\includes
copying src\lxml\includes\relaxng.pxd -> build\lib.win-amd64-3.7\lxml\includes
copying src\lxml\includes\schematron.pxd -> build\lib.win-amd64-3.7\lxml\includes
copying src\lxml\includes\tree.pxd -> build\lib.win-amd64-3.7\lxml\includes
copying src\lxml\includes\uri.pxd -> build\lib.win-amd64-3.7\lxml\includes
copying src\lxml\includes\xinclude.pxd -> build\lib.win-amd64-3.7\lxml\includes
copying src\lxml\includes\xmlerror.pxd -> build\lib.win-amd64-3.7\lxml\includes
copying src\lxml\includes\xmlparser.pxd -> build\lib.win-amd64-3.7\lxml\includes
copying src\lxml\includes\xmlschema.pxd -> build\lib.win-amd64-3.7\lxml\includes
copying src\lxml\includes\xpath.pxd -> build\lib.win-amd64-3.7\lxml\includes
copying src\lxml\includes\xslt.pxd -> build\lib.win-amd64-3.7\lxml\includes
copying src\lxml\includes\etree_defs.h -> build\lib.win-amd64-3.7\lxml\includes
copying src\lxml\includes\lxml-version.h -> build\lib.win-amd64-3.7\lxml\includes
creating build\lib.win-amd64-3.7\lxml\isoschematron\resources
creating build\lib.win-amd64-3.7\lxml\isoschematron\resources\rng
copying src\lxml\isoschematron\resources\rng\iso-schematron.rng -> build\lib.win-amd64-3.7\lxml\isoschematron\resources\rng
creating build\lib.win-amd64-3.7\lxml\isoschematron\resources\xsl
Failed building wheel for lxml
copying src\lxml\isoschematron\resources\xsl\RNG2Schtrn.xsl -> build\lib.win-amd64-3.7\lxml\isoschematron\resources\xsl
copying src\lxml\isoschematron\resources\xsl\XSD2Schtrn.xsl -> build\lib.win-amd64-3.7\lxml\isoschematron\resources\xsl
creating build\lib.win-amd64-3.7\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_abstract_expand.xsl -> build\lib.win-amd64-3.7\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_dsdl_include.xsl -> build\lib.win-amd64-3.7\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schematron_message.xsl -> build\lib.win-amd64-3.7\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schematron_skeleton_for_xslt1.xsl -> build\lib.win-amd64-3.7\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_svrl_for_xslt1.xsl -> build\lib.win-amd64-3.7\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\readme.txt -> build\lib.win-amd64-3.7\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
running build_ext
building 'lxml.etree' extension
creating build\temp.win-amd64-3.7
creating build\temp.win-amd64-3.7\Release
creating build\temp.win-amd64-3.7\Release\src
creating build\temp.win-amd64-3.7\Release\src\lxml
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Isrc\lxml\includes -IC:\Users\xxxxxxxxxxxxx\AppData\Local\Continuum\anaconda2\envs\MyPython3_7_0\include -IC:\Users\xxxxxxxxxxxxx\AppData\Local\Continuum\anaconda2\envs\MyPython3_7_0\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\cppwinrt" /Tcsrc\lxml\lxml.etree.c /Fobuild\temp.win-amd64-3.7\Release\src\lxml\lxml.etree.obj -w
cl : Command line warning D9025 : overriding '/W3' with '/w'
lxml.etree.c
src\lxml\includes\etree_defs.h(14): fatal error C1083: Cannot open include file: 'libxml/xmlversion.h': No such file or directory
Compile failed: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\bin\HostX86\x64\cl.exe' failed with exit status 2
creating Users
creating Users\xxxxxxxxxxxxx
creating Users\xxxxxxxxxxxxx\AppData
creating Users\xxxxxxxxxxxxx\AppData\Local
creating Users\xxxxxxxxxxxxx\AppData\Local\Temp
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -I/usr/include/libxml2 "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\cppwinrt" /TcC:\Users\xxxxxxxxxxxxx\AppData\Local\Temp\xmlXPathInitcz17hnof.c /FoUsers\xxxxxxxxxxxxx\AppData\Local\Temp\xmlXPathInitcz17hnof.obj
xmlXPathInitcz17hnof.c
C:\Users\xxxxxxxxxxxxx\AppData\Local\Temp\xmlXPathInitcz17hnof.c(1): fatal error C1083: Cannot open include file: 'libxml/xpath.h': No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\bin\HostX86\x64\cl.exe' failed with exit status 2
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
Running setup.py clean for lxml
Failed to build lxml
Installing collected packages: webencodings, html5lib, lxml, pyiso
Running setup.py install for lxml: started
Running setup.py install for lxml: finished with status 'error'
Complete output from command C:\Users\xxxxxxxxxxxxx\AppData\Local\Continuum\anaconda2\envs\MyPython3_7_0\python.exe -u -c "import setuptools, tokenize;file='C:\Users\xxxxxxxxxxxxx\AppData\Local\Temp\pip-install-xxc0f4fe\lxml\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\xxxxxxxxxxxxx\AppData\Local\Temp\pip-record-lu_zfpo6\install-record.txt --single-version-externally-managed --compile:
Building lxml version 3.6.4.
Building without Cython.
ERROR: b"'xslt-config' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n"
** make sure the development packages of libxml2 and libxslt are installed **
Command "C:\Users\xxxxxxxxxxxxx\AppData\Local\Continuum\anaconda2\envs\MyPython3_7_0\python.exe -u -c "import setuptools, tokenize;file='C:\Users\xxxxxxxxxxxxx\AppData\Local\Temp\pip-install-xxc0f4fe\lxml\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\xxxxxxxxxxxxx\AppData\Local\Temp\pip-record-lu_zfpo6\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\xxxxxxxxxxxxx\AppData\Local\Temp\pip-install-xxc0f4fe\lxml
----- Failed to install 'pyiso==0.4.0' -----
The text was updated successfully, but these errors were encountered: