Difficulty installing dbt snowflakes using pip - dbt

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pyarrow
Failed to build pyarrow
ERROR: Could not build wheels for pyarrow, which is required to install pyproject.toml-based projects
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
I tried installing dbt-snowflake but having this error. Can anyone help please?

As the documentation states, dbt compatibility is up to python version 10. If you recently downloaded version 11 of python, it may cause unexpected behavior or errors. You need to install version 10 of python and attempt to reinstall dbt in a virtual environment using version 10.
Reference dbt docs here https://docs.getdbt.com/faqs/core/install-python-compatibility.

Related

Can't install lxml on pip

I can't install lxml on pip or pip3
I tried run the code on python3.11
import pandas as pd
data = pd.read_html("https://zh.wikipedia.org/zh-hans/%E6%81%92%E7%94%9F%E6%8C%87%E6%95%B8")
It occurred a Import Error.
"ImportError: lxml not found, please install it"
So I tried to install the lxml. "pip install lxml"
However, it cannot be install.
** note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> lxml
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.**
And then, I had download the lxml-4.9.9-pp38-....whl
and entered "pip install c:/......." and it said whl is not a supported wheel on this platform.
Could someone do me a favor?

Numpy installation error while installing taiyaki with pip

I've been trying to install taiyaki with pip. I keep getting this error:
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> numpy
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
It seems to have some trouble with numpy installation, so I tried installing numpy with pip and removing it from the required dependencies in the setup.py file and it still does not work. I also tried running pip with '--no-cache-dir' option and '--no-deps' option but I get the same error.

How to install p4python on Cygwin64

Trying to install p4python on Cygwin fails with
$pip install p4python
[... logs ...]
File "/tmp/pip-install-6mn3hyn3/p4python_9e95a104710b449a90a68bc227a2ee69/setup.py", line 292, in run
raise Exception("Parameter --ssl is needed")
Exception: Parameter --ssl is needed
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> p4python
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
I am using Cygwin64 on Windows 10, specifically:
$ pip --version
pip 22.3 from /usr/local/lib/python3.9/site-packages/pip (python 3.9)
$ python --version
Python 3.9.10
$ which python
/usr/bin/python
I tried using the wheel files from PyPi but there is no compatible platform for Cygwin.
How can I work around this ssl dependency to install the module?
I have included libssl while installing Cygwin.
Try
python -m pip install p4python

i tried to install twint using pip in github but i got this error: can anyone help me?

Running setup.py install for cchardet ... error
error: subprocess-exited-with-error
× Running setup.py install for cchardet did not run successfully.
│ exit code: 1
╰─> [11 lines of output]
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.10
creating build\lib.win-amd64-3.10\cchardet
copying src\cchardet\version.py -> build\lib.win-amd64-3.10\cchardet
copying src\cchardet_init_.py -> build\lib.win-amd64-3.10\cchardet
running build_ext
building 'cchardet._cchardet' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> cchardet
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

Python Package Modules Installing Error in PyCharm

Good day everyone,
To run my code i needed to set up my dependencies (I'm using PyCharm as IDE), while most of the packages were installed without any problems, there are 2 which pycharm CANNOT install:
pyredstat==0.2.5
orjson==3.4.6
what i get is:
Collecting pyreadstat==0.2.5
Using cached pyreadstat-0.2.5.tar.gz (1.1 MB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [1 lines of output]
It seems you are using windows 32bit, you will need to find zlib1.dll and li
biconv-2.dll from mingw 32 bits, (It is usually in the bin folder of mingw32 if yo
u are using msys) put it in the folder win_libs/32bit, remove the sys.exit in the
setup.py file and try again. Or maybe the dlls in the 64 bit folder work for 32 bi
t as well ... couldn't try as I don't have access toa 32 bit machine. Sorry!
[end of output]
note: This error originates from a subprocess, and is likely not a problem with
pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> pyreadstat
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
It already shows an hint on how to try to solve the issue but what is strange is that I DO NOT have a 32 bit architecture (My Python ver. is 3.7 32bit), but my Windows is 64 bit based, so the solution seems quite strage and i do not want to touch .dll stuff. Thank you all!
ps: i tried the installation using the pip command also.
You need Python 64 bit installed. If you have 32 bit Python, even if you have a 64 bit machine, Pyreadstat will fail as it is not possible to compile for 32 bit Python at the moment. Please install 64 bit Python, unfortunately that is the only solution.