reubano / csv2ofx

A Python library and command line tool for converting csv to ofx and qif files
MIT License
199 stars 113 forks source link

pip install csv2ofx fails on Windows 11 with python.org 3.12.2 installed #118

Open so1dieroffortune opened 7 months ago

so1dieroffortune commented 7 months ago

I was a software developer in my previous life, but I'm not an experienced python user by any stretch. I have python 3.12.2 installed (from python.org) on a Windows 11 machine. I wanted to try to use csv2ofx, but I got stuck when trying to install these libraries. This is the error trace i get. Am I doing something wrong here? Have i missed any steps? or is this in fact broken?

PS C:\Users\xyz> python --version Python 3.12.2

PS C:\Users\xyz> pip install csv2ofx Collecting csv2ofx Using cached csv2ofx-0.30.0-py2.py3-none-any.whl.metadata (10 kB) Collecting meza<0.47.0,>=0.46.0 (from csv2ofx) Using cached meza-0.46.0-py2.py3-none-any.whl.metadata (23 kB) Collecting python-dateutil<3.0.0,>=2.7.2 (from csv2ofx) Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata (8.4 kB) Collecting requests<3.0.0,>=2.18.4 (from csv2ofx) Using cached requests-2.31.0-py3-none-any.whl.metadata (4.6 kB) Collecting chardet<4.0.0,>=3.0.4 (from meza<0.47.0,>=0.46.0->csv2ofx) Using cached chardet-3.0.4-py2.py3-none-any.whl.metadata (3.2 kB) Collecting python-slugify<2.0.0,>=1.2.5 (from meza<0.47.0,>=0.46.0->csv2ofx) Using cached python-slugify-1.2.6.tar.gz (6.8 kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Installing backend dependencies: started Installing backend dependencies: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done' Collecting xlrd<2.0.0,>=1.1.0 (from meza<0.47.0,>=0.46.0->csv2ofx) Using cached xlrd-1.2.0-py2.py3-none-any.whl.metadata (1.3 kB) Collecting dbfread==2.0.4 (from meza<0.47.0,>=0.46.0->csv2ofx) Using cached dbfread-2.0.4-py2.py3-none-any.whl.metadata (3.6 kB) Collecting ijson<3.0.0,>=2.3 (from meza<0.47.0,>=0.46.0->csv2ofx) Using cached ijson-2.6.1.tar.gz (29 kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Installing backend dependencies: started Installing backend dependencies: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done' Collecting beautifulsoup4<5.0.0,>=4.6.0 (from meza<0.47.0,>=0.46.0->csv2ofx) Using cached beautifulsoup4-4.12.3-py3-none-any.whl.metadata (3.8 kB) Collecting PyYAML<6.0.0,>=4.2b1 (from meza<0.47.0,>=0.46.0->csv2ofx) Using cached PyYAML-5.4.1.tar.gz (175 kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'error' pip : error: subprocess-exited-with-error At line:1 char:1

montgomeryb commented 6 months ago

It seems that meza is the culprit and that may have been fixed. However, I got around this problem running pip install --force-reinstall "PyYAML==5.1" pip install meza pip install csv2ofx

HupAndRunning commented 2 months ago

Thank you montgomeryb. I had the same problem and the workaround allowed me to build.