PkgResourcesDeprecationWarning during manim installing inubuntu 18.04 - python

when I tried to install manim in ubuntu18.04,I encoutered bug about "PkgResourcesDeprecationWarning".I tried to fix it ,but failed.Hope someone good could help me out,pls.
tags:python3.7 ubuntu18.04 manim
Installed /usr/lib/python3.7/site-packages/manimgl-1.5.0-py3.7.egg
Processing dependencies for manimgl==1.5.0
Searching for manimpango<0.4.0,>=0.2.0
Reading https://pypi.org/simple/manimpango/
/usr/local/lib/python3.7/dist-packages/pkg_resources/__init__.py:125: PkgResourcesDeprecationWarning: is an invalid version and will not be supported in a future release
PkgResourcesDeprecationWarning,
Downloading https://files.pythonhosted.org/packages/5e/04/00af048a5d3a645a053e39db4b3e61da3a8b1b95b6f0d718684028207575/ManimPango-0.3.1.tar.gz#sha256=a3a7e5a417507e9ccf307f6da40291a9fc2757a3c9a04de33dd18e92f63fcc25
Best match: ManimPango 0.3.1
Processing ManimPango-0.3.1.tar.gz
Writing /tmp/easy_install-ojd30ypi/ManimPango-0.3.1/setup.cfg
Running ManimPango-0.3.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-ojd30ypi/ManimPango-0.3.1/egg-dist-tmp-g764jlvh
no previously-included directories found matching 'docs/_build'
/usr/local/lib/python3.7/dist-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
setuptools.SetuptoolsDeprecationWarning,
x86_64-linux-gnu-gcc: error: /tmp/easy_install-ojd30ypi/ManimPango-0.3.1/manimpango/cmanimpango.c: 没有那个文件或目录
x86_64-linux-gnu-gcc: fatal error: no input files
compilation terminated.
error: Setup script exited with error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1

Related

Error while trying to install odoo15 requirements.txt on M1

I am trying to install the requirements for odoo15 on my MBP M1 Pro running MacOS Ventura 13.0 in my virtual environment running python 3.10.8
but I keep getting the following error:
build/temp.macosx-12-arm64-cpython-310/_openssl.c:575:10: fatal error: 'openssl/opensslv.h' file not found
#include <openssl/opensslv.h>
^~~~~~~~~~~~~~~~~~~~
1 error generated.
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for cryptography
Building wheel for psycopg2 (setup.py) ... error
error: subprocess-exited-with-error
...
ld: warning: directory not found for option '-L/usr/local/opt/openssl/lib'
ld: library not found for -lssl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for psycopg2
Running setup.py clean for psycopg2
...
Failed to build cryptography psycopg2
ERROR: Could not build wheels for cryptography, which is required to install pyproject.toml-based projects
Now, I have already spent a lot of time researching and it seems that openssl might be the problem here
I have already install openssl via brew, it is running the newest version, as suggested in this GitHub issue
I have installed the newest version of pip as suggested in this StackOverflow post
Edit: I have now also tried setting these flags as suggested in this StackOverflow post:
export LDFLAGS="-L/opt/homebrew/opt/openssl#1.1/lib"
export CPPFLAGS="-I/opt/homebrew/opt/openssl#1.1/include"
I have also retried everything in another venv using Python version 3.8

How to fix: ERROR: Failed building wheel for fastobo

I am trying to install this library nxontology using the command below:
pip install nxontology
It is giving me the error below:
Building wheel for fastobo (pyproject.toml) ... error
error: subprocess-exited-with-error
Building wheel for fastobo (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [18 lines of output]
running bdist_wheel
running build
running build_py
package init file 'src\py\__init__.py' not found (or not a regular file)
package init file 'src\py\header\__init__.py' not found (or not a regular file)
package init file 'src\py\instance\__init__.py' not found (or not a regular file)
package init file 'src\py\term\__init__.py' not found (or not a regular file)
package init file 'src\py\typedef\__init__.py' not found (or not a regular file)
running build_ext
running build_rust
creating build
creating build\temp.win-amd64-cpython-310
creating build\temp.win-amd64-cpython-310\Release
creating build\temp.win-amd64-cpython-310\Release\cargo
creating build\temp.win-amd64-cpython-310\Release\rustup
downloading rustup.sh install script
installing Rust compiler to build\temp.win-amd64-cpython-310\Release
error: [WinError 2] The system cannot find the file specified
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for fastobo
Failed to build fastobo
ERROR: Could not build wheels for fastobo, which is required to install pyproject.toml-based projects
I saw some answers to similar errors but none of them worked for me.
pip version: pip 22.1.1 from C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip (python 3.10)
Project python interpreter: Python 3.9.
I would really appreciate if you have any idea how to fix this.

Trouble installing dm.xmlsec.binding on Amazon Linux

Im attempting to install python-saml onto the latest Amazon Linux for Elasticbeanstalk (64bit Amazon Linux 2016.09 v2.3.3 running Python 2.7)
When it attempts to install dm.xmlsec.binding it fails with
Running setup.py (path:/tmp/pip-build-5dg8_B/dm.xmlsec.binding/setup.py) egg_info for package dm.xmlsec.binding
Running command python setup.py egg_info
Complete output from command python setup.py egg_info:
{standard input}: Assembler messages:
{standard input}:26237: Warning: end of file not at end of a line; newline inserted
{standard input}:26953: Error: unknown pseudo-op: `.l'
{standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive
gcc: Internal error: Killed (program cc1)
Please submit a full bug report.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
Building lxml version 3.7.3.
Building without Cython.
Using build configuration of libxslt 1.1.28
Building against libxml2/libxslt in the following directory: /usr/lib64
Compile failed: command 'gcc' failed with exit status 1
No issues on Ubuntu 16.04
upgrading lxml fixed the issue
sudo pip install lxml --upgrade

lxml gcc failed with exit status 1 ubuntu 16.04

sudo easy_install lxml
Searching for lxml
Reading https://pypi.python.org/simple/lxml/
Best match: lxml 3.6.4
Downloading https://pypi.python.org/packages/4f/3f/cf6daac551fc36cddafa1a71ed48ea5fd642e5feabd3a0d83b8c3dfd0cb4/lxml-3.6.4.tar.gz#md5=6dd7314233029d9dab0156e7b1c7830b
Processing lxml-3.6.4.tar.gz
Writing /tmp/easy_install-w86uerbh/lxml-3.6.4/setup.cfg
Running lxml-3.6.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-w86uerbh/lxml-3.6.4/egg-dist-tmp-smgpuu2j
Building lxml version 3.6.4.
Building without Cython.
Using build configuration of libxslt 1.1.28
src/lxml/lxml.etree.c:83:20: fatal error: Python.h: No such file or directory
compilation terminated.
Compile failed: command 'x86_64-linux-gnu-gcc' failed with exit status 1
/tmp/easy_install-w86uerbh/lxml-3.6.4/temp/xmlXPathInitmvs80t9r.c:2:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
main (int argc, char **argv) {
^
error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
So how can i install lxml lib? I've tried pip, but there is the same finish.
Try to install the following packages:
sudo apt-get install libxml2-dev libxslt1-dev python-dev
If this does not work, make sure that it is not a problem of memory, if so you will need to increase your machine memory.
Just had to add more memory to the instance in order to finish the lxml compilation

Error installing bcrypt with pip on Cygwin: cant find ffi.h (libffi is installed)

Similar to this question, I'm having trouble installing bcrypt under Cygwin, and receiving this error:
Downloading/unpacking bcrypt
Downloading bcrypt-1.0.2.tar.gz (40kB): 40kB downloaded
Running setup.py (path:/tmp/pip_build_Chris/bcrypt/setup.py) egg_info for package bcrypt
c/_cffi_backend.c:13:17: fatal error: ffi.h: No such file or directory
#include <ffi.h>
^
compilation terminated.
...
distutils.errors.DistutilsError: Setup script exited with error: command 'gcc' failed with exit status 1
Complete output from command python setup.py egg_info:
c/_cffi_backend.c:13:17: fatal error: ffi.h: No such file or directory
#include <ffi.h>
^
compilation terminated.
The libffi-devel package is installed, and I've also tried using the --global-option='-I/lib/libffi-3.0.13/include' argument to tell pip exactly where the ffi.h file is on my system.
I was able to build/install this implementation from source under Cygwin: https://bitbucket.org/alexandrul/py-bcrypt/overview
I met the same problem.
Fixed the problem by:
cp /usr/lib/libffi-3.0.13/include/*.h /usr/include

Categories