-
Notifications
You must be signed in to change notification settings - Fork 27
Using pip install python-tbk fails over looking for xmlsec1 #23
Comments
Someone else having this same issue? |
I have the same problem, did you find any solution ? |
These issues are caused by the third party library xmlsec, you can find installation instructions in their Readme: https://github.com/mehcode/python-xmlsec Basically, for building the xmlsec wheel on Debian/Ubuntu you have to install the following package:
At runtime the following package is sufficient:
On OSX we are aware that it requires some hacks so I'd recommend you to use Docker. |
+1 about ubuntu 18.04 apt-get install libxmlsec1-dev |
I'm having the same issue while trying to use the library in a heroku app, I cant use the 'apt-get install libxmlsec1-dev' in the heroku bash to fix it like a did it in local. Any solution for this problem and hosting in heroku? |
You can use heroku-buildpack-apt or use a custom Docker image. |
I used the buildpack-apt and it worked flawlessly, thank you for the quick response joe. |
I'm having the same issue with the library libxmlsec1-dev and xmlsec1 while trying to upload my django project to AWS elastic beanstalk. Does anyone has some insight about this? (Without a Docker container) |
tengo el mismo error, alguien pudo solucionarlo ? no deja instalar lxml ni en python3.6 ni python3.8, qué puedo hacer? :(( |
yum or zypper install xmlsec1-devel (python 3.8) |
Hi! This is the solution that worked for me using a MacOs computer: |
Installing collected packages: attrs, six, isodate, defusedxml, cached-property, idna, certifi, urllib3, chardet, requests, requests-toolbelt, pytz, appdirs, lxml, zeep, pkgconfig, xmlsec, python-tbk Running setup.py install for xmlsec ... error Complete output from command /Users/merrick/Projects/test-tbk/env/bin/python3 -u -c "import setuptools, tokenize;__file__='/private/var/folders/m8/sscd1x3d7kg82hg7s3yy966c0000gp/T/pip-build-b5mfrzef/xmlsec/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/m8/sscd1x3d7kg82hg7s3yy966c0000gp/T/pip-erp6c1ch-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/merrick/Projects/test-tbk/env/include/site/python3.6/xmlsec: running install running build running build_ext Traceback (most recent call last): File "<string>", line 1, in <module> File "/private/var/folders/m8/sscd1x3d7kg82hg7s3yy966c0000gp/T/pip-build-b5mfrzef/xmlsec/setup.py", line 60, in <module> 'Topic :: Text Processing :: Markup :: XML' File "/Users/merrick/Projects/test-tbk/env/lib/python3.6/site-packages/setuptools/__init__.py", line 129, in setup return distutils.core.setup(**attrs) File "/usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/core.py", line 148, in setup dist.run_commands() File "/usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 955, in run_commands self.run_command(cmd) File "/usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/Users/merrick/Projects/test-tbk/env/lib/python3.6/site-packages/setuptools/command/install.py", line 61, in run return orig.install.run(self) File "/usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/command/install.py", line 545, in run self.run_command('build') File "/usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/command/build.py", line 135, in run self.run_command(cmd_name) File "/usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/private/var/folders/m8/sscd1x3d7kg82hg7s3yy966c0000gp/T/pip-build-b5mfrzef/xmlsec/setup.py", line 11, in run self.patch_options() File "/private/var/folders/m8/sscd1x3d7kg82hg7s3yy966c0000gp/T/pip-build-b5mfrzef/xmlsec/setup.py", line 16, in patch_options ext.define_macros.extend(xmlsec_setupinfo.define_macros()) File "/private/var/folders/m8/sscd1x3d7kg82hg7s3yy966c0000gp/T/pip-build-b5mfrzef/xmlsec/xmlsec_setupinfo.py", line 48, in define_macros macros.extend(xmlsec_config()['define_macros']) File "/private/var/folders/m8/sscd1x3d7kg82hg7s3yy966c0000gp/T/pip-build-b5mfrzef/xmlsec/xmlsec_setupinfo.py", line 111, in xmlsec_config __XMLSEC_CONFIG = load_xmlsec1_config() File "/private/var/folders/m8/sscd1x3d7kg82hg7s3yy966c0000gp/T/pip-build-b5mfrzef/xmlsec/xmlsec_setupinfo.py", line 164, in load_xmlsec1_config config = pkgconfig.parse('xmlsec1') File "/Users/merrick/Projects/test-tbk/env/lib/python3.6/site-packages/pkgconfig/pkgconfig.py", line 248, in parse _raise_if_not_exists(package) File "/Users/merrick/Projects/test-tbk/env/lib/python3.6/site-packages/pkgconfig/pkgconfig.py", line 103, in _raise_if_not_exists raise PackageNotFoundError(package) pkgconfig.pkgconfig.PackageNotFoundError: xmlsec1 not found
Tested on OSX 10.11 and Heroku with the following envs:
On OSX I tried installing:
brew install libxml2 libxmlsec1 pkg-config
But nothing was solved. Even trying to manually installing
pip install xmlsec
throws the same error:
The text was updated successfully, but these errors were encountered: