Coder Social home page Coder Social logo

Comments (5)

PekkaSavolainen avatar PekkaSavolainen commented on May 28, 2024 1

I think you need to do this too

sudo apt-get install unixodbc-dev

Before

pip install -r requirements.txt

This is in the Troubleshooting section of README.md

from spine-toolbox.

 avatar commented on May 28, 2024 1

Thanks Pekka, that would have been my next guess for trouble! @steffenkaminski, you can also try just running

pip install -r requirements.txt --only-binary psycopg2,pyodbc 

from spine-toolbox.

 avatar commented on May 28, 2024

Hi! This a known issue on Linux platforms. Pip tries to install package psycopg2 from sources and for that it needs some libraries.

You could first try

pip install -r requirements.txt --only-binary psycopg2

and if that fails, do first (on Debian/Ubuntu like systems)

apt-get install libpq-dev

from spine-toolbox.

steffenkaminski avatar steffenkaminski commented on May 28, 2024

Hi Erkka,

Unfortinately, this does not work yet:

(spinetoolbox) steffen@steffen-NG-VN7-591G-767P:~/SPINE/Spine-Toolbox$ sudo apt-get install libpq-dev
[sudo] password for steffen: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  enchant geoip-database gir1.2-appindicator3-0.1 gir1.2-geocodeglib-1.0
  gnome-software-common libappstream-glib8 libbrlapi0.6 libdvdread4
  libenchant1c2a libfluidsynth1 libgspell-1-1 libgutenprint-common
  libgweather-3-15 libpoppler90 libusbmuxd4 node-is-builtin-module pastebinit
  ubuntu-system-service
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libpq5
Suggested packages:
  postgresql-doc-12
The following NEW packages will be installed:
  libpq-dev libpq5
0 upgraded, 2 newly installed, 0 to remove and 28 not upgraded.
Need to get 0 B/249 kB of archives.
After this operation, 987 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Selecting previously unselected package libpq5:amd64.
(Reading database ... 401493 files and directories currently installed.)
Preparing to unpack .../libpq5_12.2-4_amd64.deb ...
Unpacking libpq5:amd64 (12.2-4) ...
Selecting previously unselected package libpq-dev.
Preparing to unpack .../libpq-dev_12.2-4_amd64.deb ...
Unpacking libpq-dev (12.2-4) ...
Setting up libpq5:amd64 (12.2-4) ...
Setting up libpq-dev (12.2-4) ...
Processing triggers for libc-bin (2.31-0ubuntu9) ...
Processing triggers for man-db (2.9.1-1) ...
(spinetoolbox) steffen@steffen-NG-VN7-591G-767P:~/SPINE/Spine-Toolbox$ pip install -r requirements.txt --only-binary psycopg2
Obtaining file:///home/steffen/SPINE/Spine-Toolbox (from -r requirements.txt (line 8))
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Requirement already satisfied: spinedb_api from git+https://github.com/Spine-project/Spine-Database-API.git#egg=spinedb_api in /home/steffen/ELDEST/Spine-Database-API (from -r requirements.txt (line 1)) (0.7.14)
Requirement already satisfied: spine_engine from git+https://github.com/Spine-project/spine-engine.git#egg=spine_engine in /home/steffen/anaconda3/envs/spinetoolbox/lib/python3.7/site-packages (from -r requirements.txt (line 2)) (0.5.0)
Requirement already satisfied: cchardet!=2.1.6 in /home/steffen/anaconda3/envs/spinetoolbox/lib/python3.7/site-packages (from -r requirements.txt (line 4)) (2.1.5)
Requirement already satisfied: matplotlib!=3.2.1 in /home/steffen/anaconda3/envs/spinetoolbox/lib/python3.7/site-packages (from -r requirements.txt (line 7)) (3.3.1)
Collecting pyodbc>=4.0.23
  Using cached https://files.pythonhosted.org/packages/81/0d/bb08bb16c97765244791c73e49de9fd4c24bb3ef00313aed82e5640dee5d/pyodbc-4.0.30.tar.gz
Requirement already satisfied: jsonschema==2.6 in /home/steffen/anaconda3/envs/spinetoolbox/lib/python3.7/site-packages (from spinetoolbox==0.4.3->-r requirements.txt (line 8)) (2.6.0)
Collecting pymysql>=0.9.2
  Using cached https://files.pythonhosted.org/packages/2c/57/af502e0e113f139b3f3add4f1efba899a730a365d2264d476e85b9591da5/PyMySQL-0.10.0-py2.py3-none-any.whl
Requirement already satisfied: sqlalchemy>=1.2.6 in /home/steffen/anaconda3/envs/spinetoolbox/lib/python3.7/site-packages (from spinetoolbox==0.4.3->-r requirements.txt (line 8)) (1.3.19)
Collecting openpyxl>=2.5.0
  Using cached https://files.pythonhosted.org/packages/5c/90/61f83be1c335a9b69fa773784a785d9de95c7561d1661918796fd1cba3d2/openpyxl-3.0.5-py2.py3-none-any.whl
Collecting psycopg2>=2.7.4
  Using cached https://files.pythonhosted.org/packages/0c/ba/e521b9dfae78dc88d3e88be99c8d6f8737a69b65114c5e4979ca1209c99f/psycopg2-2.7.7-cp37-cp37m-manylinux1_x86_64.whl
Collecting scipy>=1.1.0
  Using cached https://files.pythonhosted.org/packages/65/f9/f7a7e5009711579c72da2725174825e5056741bf4001815d097eef1b2e17/scipy-1.5.2-cp37-cp37m-manylinux1_x86_64.whl
Requirement already satisfied: ijson>=2.6.1 in /home/steffen/anaconda3/envs/spinetoolbox/lib/python3.7/site-packages (from spinetoolbox==0.4.3->-r requirements.txt (line 8)) (3.1.1)
Collecting qtconsole>=4.3.1
  Using cached https://files.pythonhosted.org/packages/c1/35/0479d9707e3c459901a64dd49843b2f06a65a647dc2bcee7b8bfe3560da1/qtconsole-4.7.7-py2.py3-none-any.whl
Requirement already satisfied: numpy>=1.15.1 in /home/steffen/anaconda3/envs/spinetoolbox/lib/python3.7/site-packages (from spinetoolbox==0.4.3->-r requirements.txt (line 8)) (1.19.1)
Requirement already satisfied: pandas>=0.24.0 in /home/steffen/anaconda3/envs/spinetoolbox/lib/python3.7/site-packages (from spinetoolbox==0.4.3->-r requirements.txt (line 8)) (1.1.2)
Collecting datapackage>=1.2.3
  Using cached https://files.pythonhosted.org/packages/12/3b/89542ab6c64d455cd4aca22261f61892260797d546048cbb537309b4dc0a/datapackage-1.15.0-py2.py3-none-any.whl
Collecting gdx2py>=2.0.4
  Using cached https://files.pythonhosted.org/packages/57/96/aba6646dbd902a60957b6b9e87947a77479baf232c8f2c14bcefb85b155f/GDX2py-2.1.1-py3-none-any.whl
Requirement already satisfied: networkx>2.2 in /home/steffen/anaconda3/envs/spinetoolbox/lib/python3.7/site-packages (from spinetoolbox==0.4.3->-r requirements.txt (line 8)) (2.5)
Requirement already satisfied: python-dateutil>=2.8.0 in /home/steffen/anaconda3/envs/spinetoolbox/lib/python3.7/site-packages (from spinetoolbox==0.4.3->-r requirements.txt (line 8)) (2.8.1)
Collecting pyside2<5.15,>=5.14
  Using cached https://files.pythonhosted.org/packages/76/67/1a9667e7aa16fffaadd224b9a3d5504b634a928085a4b7728d95e0c67d6d/PySide2-5.14.2.3-5.14.2-cp35.cp36.cp37.cp38-abi3-manylinux1_x86_64.whl
Collecting cx-Oracle>=6.3.1
  Using cached https://files.pythonhosted.org/packages/06/f9/97e4899cd22f6806809525b34cd076564d417d25fa6c46101f0bface5d65/cx_Oracle-8.0.1-cp37-cp37m-manylinux1_x86_64.whl
Collecting jupyter-client<5.3.2
  Using cached https://files.pythonhosted.org/packages/af/4c/bf613864ae0644e2ac7d4a40bd209c40c8c71e3dc88d5f1d0aa92a68e716/jupyter_client-5.3.1-py2.py3-none-any.whl
Requirement already satisfied: alembic in /home/steffen/.local/lib/python3.7/site-packages (from spinedb_api->-r requirements.txt (line 1)) (1.4.2)
Requirement already satisfied: faker in /home/steffen/.local/lib/python3.7/site-packages (from spinedb_api->-r requirements.txt (line 1)) (4.1.2)
Requirement already satisfied: dagster<0.9,>=0.6.4 in /home/steffen/anaconda3/envs/spinetoolbox/lib/python3.7/site-packages (from spine_engine->-r requirements.txt (line 2)) (0.8.10)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3 in /home/steffen/anaconda3/envs/spinetoolbox/lib/python3.7/site-packages (from matplotlib!=3.2.1->-r requirements.txt (line 7)) (2.4.7)
Requirement already satisfied: cycler>=0.10 in /home/steffen/anaconda3/envs/spinetoolbox/lib/python3.7/site-packages (from matplotlib!=3.2.1->-r requirements.txt (line 7)) (0.10.0)
Requirement already satisfied: pillow>=6.2.0 in /home/steffen/anaconda3/envs/spinetoolbox/lib/python3.7/site-packages (from matplotlib!=3.2.1->-r requirements.txt (line 7)) (7.2.0)
Requirement already satisfied: kiwisolver>=1.0.1 in /home/steffen/anaconda3/envs/spinetoolbox/lib/python3.7/site-packages (from matplotlib!=3.2.1->-r requirements.txt (line 7)) (1.2.0)
Requirement already satisfied: certifi>=2020.06.20 in /home/steffen/anaconda3/envs/spinetoolbox/lib/python3.7/site-packages (from matplotlib!=3.2.1->-r requirements.txt (line 7)) (2020.6.20)
Collecting jdcal
  Using cached https://files.pythonhosted.org/packages/f0/da/572cbc0bc582390480bbd7c4e93d14dc46079778ed915b505dc494b37c57/jdcal-1.4.1-py2.py3-none-any.whl
Processing /home/steffen/.cache/pip/wheels/2a/77/35/0da0965a057698121fc7d8c5a7a9955cdbfb3cc4e2423cad39/et_xmlfile-1.0.1-cp37-none-any.whl
Collecting jupyter-core
  Using cached https://files.pythonhosted.org/packages/63/0d/df2d17cdf389cea83e2efa9a4d32f7d527ba78667e0153a8e676e957b2f7/jupyter_core-4.6.3-py2.py3-none-any.whl
Collecting qtpy
  Using cached https://files.pythonhosted.org/packages/cd/fd/9972948f02e967b691cc0ca1f26124826a3b88cb38f412a8b7935b8c3c72/QtPy-1.9.0-py2.py3-none-any.whl
Collecting ipython-genutils
  Using cached https://files.pythonhosted.org/packages/fa/bc/9bd3b5c2b4774d5f33b2d544f1460be9df7df2fe42f352135381c347c69a/ipython_genutils-0.2.0-py2.py3-none-any.whl
Collecting ipykernel>=4.1
  Using cached https://files.pythonhosted.org/packages/52/19/c2812690d8b340987eecd2cbc18549b1d130b94c5d97fcbe49f5f8710edf/ipykernel-5.3.4-py3-none-any.whl
Collecting pyzmq>=17.1
  Using cached https://files.pythonhosted.org/packages/cd/ba/144b5f68fcd643937a4a953017abf1527ff34d43d2d912206fed962efde0/pyzmq-19.0.2-cp37-cp37m-manylinux1_x86_64.whl
Collecting traitlets
  Using cached https://files.pythonhosted.org/packages/e6/20/f73a1130598ffaf561fda74d761bbe66db7a3639f34456761e781509881b/traitlets-5.0.4-py3-none-any.whl
Collecting pygments
  Using cached https://files.pythonhosted.org/packages/2d/68/106af3ae51daf807e9cdcba6a90e518954eb8b70341cee52995540a53ead/Pygments-2.6.1-py3-none-any.whl
Requirement already satisfied: pytz>=2017.2 in /home/steffen/anaconda3/envs/spinetoolbox/lib/python3.7/site-packages (from pandas>=0.24.0->spinetoolbox==0.4.3->-r requirements.txt (line 8)) (2020.1)
Processing /home/steffen/.cache/pip/wheels/a6/09/e9/e800279c98a0a8c94543f3de6c8a562f60e51363ed26e71283/unicodecsv-0.14.1-cp37-none-any.whl
Collecting tableschema>=1.12.1
  Using cached https://files.pythonhosted.org/packages/20/f9/3e42a0c06f9e7c6e59fb1891b934daf611c270eef48bb5fad16c55623a0c/tableschema-1.19.3-py2.py3-none-any.whl
Collecting tabulator>=1.29
  Using cached https://files.pythonhosted.org/packages/1d/12/22a346e531f25e97f303118adbad3a4ddfc453950030ee35e8386e2c6aaf/tabulator-1.52.3-py2.py3-none-any.whl
Requirement already satisfied: click>=6.7 in /home/steffen/anaconda3/envs/spinetoolbox/lib/python3.7/site-packages (from datapackage>=1.2.3->spinetoolbox==0.4.3->-r requirements.txt (line 8)) (7.1.2)
Requirement already satisfied: chardet>=3.0 in /home/steffen/anaconda3/envs/spinetoolbox/lib/python3.7/site-packages (from datapackage>=1.2.3->spinetoolbox==0.4.3->-r requirements.txt (line 8)) (3.0.4)
Requirement already satisfied: requests>=2.8 in /home/steffen/anaconda3/envs/spinetoolbox/lib/python3.7/site-packages (from datapackage>=1.2.3->spinetoolbox==0.4.3->-r requirements.txt (line 8)) (2.24.0)
Requirement already satisfied: six>=1.10 in /home/steffen/anaconda3/envs/spinetoolbox/lib/python3.7/site-packages (from datapackage>=1.2.3->spinetoolbox==0.4.3->-r requirements.txt (line 8)) (1.15.0)
Collecting jsonpointer>=1.10
  Using cached https://files.pythonhosted.org/packages/18/b0/a80d29577c08eea401659254dfaed87f1af45272899e1812d7e01b679bc5/jsonpointer-2.0-py2.py3-none-any.whl
Collecting gdxcc>=7
  Using cached https://files.pythonhosted.org/packages/b1/57/fbe65b776cb98d25f7ad7dcbc4b020e7bbc4d1c5f65e7076838f89af5bf8/gdxcc-7.28.20-cp37-cp37m-manylinux2010_x86_64.whl
Requirement already satisfied: decorator>=4.3.0 in /home/steffen/anaconda3/envs/spinetoolbox/lib/python3.7/site-packages (from networkx>2.2->spinetoolbox==0.4.3->-r requirements.txt (line 8)) (4.4.2)
Collecting shiboken2==5.14.2.3
  Using cached https://files.pythonhosted.org/packages/e8/35/06a6a1a930aad2cc099ef08d3f9669cf3d6d0be5603eb09d87d89532e672/shiboken2-5.14.2.3-5.14.2-cp35.cp36.cp37.cp38-abi3-manylinux1_x86_64.whl
Processing /home/steffen/.cache/pip/wheels/93/84/2f/409c7b2bb3afc3aa727f7ee8787975e0793f74d1165f4d0104/tornado-6.0.4-cp37-cp37m-linux_x86_64.whl
Requirement already satisfied: Mako in /home/steffen/.local/lib/python3.7/site-packages (from alembic->spinedb_api->-r requirements.txt (line 1)) (1.1.3)
Requirement already satisfied: python-editor>=0.3 in /home/steffen/.local/lib/python3.7/site-packages (from alembic->spinedb_api->-r requirements.txt (line 1)) (1.0.4)
Requirement already satisfied: text-unidecode==1.3 in /home/steffen/.local/lib/python3.7/site-packages (from faker->spinedb_api->-r requirements.txt (line 1)) (1.3)
Requirement already satisfied: pyrsistent>=0.14.8 in /home/steffen/anaconda3/envs/spinetoolbox/lib/python3.7/site-packages (from dagster<0.9,>=0.6.4->spine_engine->-r requirements.txt (line 2)) (0.16.0)
Requirement already satisfied: grpcio==1.30.0 in /home/steffen/anaconda3/envs/spinetoolbox/lib/python3.7/site-packages (from dagster<0.9,>=0.6.4->spine_engine->-r requirements.txt (line 2)) (1.30.0)
Requirement already satisfied: funcsigs in /home/steffen/anaconda3/envs/spinetoolbox/lib/python3.7/site-packages (from dagster<0.9,>=0.6.4->spine_engine->-r requirements.txt (line 2)) (1.0.2)
Requirement already satisfied: contextlib2>=0.5.4 in /home/steffen/anaconda3/envs/spinetoolbox/lib/python3.7/site-packages (from dagster<0.9,>=0.6.4->spine_engine->-r requirements.txt (line 2)) (0.6.0.post1)
Requirement already satisfied: gevent in /home/steffen/anaconda3/envs/spinetoolbox/lib/python3.7/site-packages (from dagster<0.9,>=0.6.4->spine_engine->-r requirements.txt (line 2)) (20.6.2)
Requirement already satisfied: protobuf==3.12.2 in /home/steffen/anaconda3/envs/spinetoolbox/lib/python3.7/site-packages (from dagster<0.9,>=0.6.4->spine_engine->-r requirements.txt (line 2)) (3.12.2)
Requirement already satisfied: rx<=1.6.1 in /home/steffen/anaconda3/envs/spinetoolbox/lib/python3.7/site-packages (from dagster<0.9,>=0.6.4->spine_engine->-r requirements.txt (line 2)) (1.6.1)
Requirement already satisfied: tqdm in /home/steffen/anaconda3/envs/spinetoolbox/lib/python3.7/site-packages (from dagster<0.9,>=0.6.4->spine_engine->-r requirements.txt (line 2)) (4.48.2)
Requirement already satisfied: toposort>=1.0 in /home/steffen/anaconda3/envs/spinetoolbox/lib/python3.7/site-packages (from dagster<0.9,>=0.6.4->spine_engine->-r requirements.txt (line 2)) (1.5)
Requirement already satisfied: watchdog>=0.8.3 in /home/steffen/anaconda3/envs/spinetoolbox/lib/python3.7/site-packages (from dagster<0.9,>=0.6.4->spine_engine->-r requirements.txt (line 2)) (0.10.3)
Requirement already satisfied: future in /home/steffen/anaconda3/envs/spinetoolbox/lib/python3.7/site-packages (from dagster<0.9,>=0.6.4->spine_engine->-r requirements.txt (line 2)) (0.18.2)
Requirement already satisfied: coloredlogs>=6.1 in /home/steffen/anaconda3/envs/spinetoolbox/lib/python3.7/site-packages (from dagster<0.9,>=0.6.4->spine_engine->-r requirements.txt (line 2)) (14.0)
Requirement already satisfied: PyYAML in /home/steffen/anaconda3/envs/spinetoolbox/lib/python3.7/site-packages (from dagster<0.9,>=0.6.4->spine_engine->-r requirements.txt (line 2)) (5.3.1)
Collecting ipython>=5.0.0
  Using cached https://files.pythonhosted.org/packages/72/36/89e1bb437f4f2275c33acc6eb333ab2d1c64e732ad23d6f34825b512e1a3/ipython-7.18.1-py3-none-any.whl
Collecting cached-property>=1.5
  Using cached https://files.pythonhosted.org/packages/3b/86/85c1be2e8db9e13ef9a350aecd6dea292bd612fa288c2f40d035bb750ded/cached_property-1.5.1-py2.py3-none-any.whl
Collecting isodate>=0.5.4
  Using cached https://files.pythonhosted.org/packages/9b/9f/b36f7774ff5ea8e428fdcfc4bb332c39ee5b9362ddd3d40d9516a55221b2/isodate-0.6.0-py2.py3-none-any.whl
Collecting rfc3986>=1.1.0
  Using cached https://files.pythonhosted.org/packages/78/be/7b8b99fd74ff5684225f50dd0e865393d2265656ef3b4ba9eaaaffe622b8/rfc3986-1.4.0-py2.py3-none-any.whl
Processing /home/steffen/.cache/pip/wheels/af/03/2f/5e0217ac6dd10cbf4a987ece9eae97f46c9da0880718849ad5/boto3-1.14.57-py2.py3-none-any.whl
Collecting xlrd>=1.0
  Using cached https://files.pythonhosted.org/packages/b0/16/63576a1a001752e34bf8ea62e367997530dc553b689356b9879339cf45a4/xlrd-1.2.0-py2.py3-none-any.whl
Processing /home/steffen/.cache/pip/wheels/3f/8a/cb/38917fd1ef4356b9870ace7331b83417dc594bf2c029bd991f/linear_tsv-1.1.0-cp37-none-any.whl
Collecting jsonlines>=1.1
  Using cached https://files.pythonhosted.org/packages/4f/9a/ab96291470e305504aa4b7a2e0ec132e930da89eb3ca7a82fbe03167c131/jsonlines-1.2.0-py2.py3-none-any.whl
Requirement already satisfied: idna<3,>=2.5 in /home/steffen/anaconda3/envs/spinetoolbox/lib/python3.7/site-packages (from requests>=2.8->datapackage>=1.2.3->spinetoolbox==0.4.3->-r requirements.txt (line 8)) (2.10)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /home/steffen/anaconda3/envs/spinetoolbox/lib/python3.7/site-packages (from requests>=2.8->datapackage>=1.2.3->spinetoolbox==0.4.3->-r requirements.txt (line 8)) (1.25.10)
Requirement already satisfied: MarkupSafe>=0.9.2 in /home/steffen/anaconda3/envs/spinetoolbox/lib/python3.7/site-packages (from Mako->alembic->spinedb_api->-r requirements.txt (line 1)) (1.1.1)
Requirement already satisfied: greenlet>=0.4.16; platform_python_implementation == "CPython" in /home/steffen/anaconda3/envs/spinetoolbox/lib/python3.7/site-packages (from gevent->dagster<0.9,>=0.6.4->spine_engine->-r requirements.txt (line 2)) (0.4.16)
Requirement already satisfied: zope.event in /home/steffen/anaconda3/envs/spinetoolbox/lib/python3.7/site-packages (from gevent->dagster<0.9,>=0.6.4->spine_engine->-r requirements.txt (line 2)) (4.4)
Requirement already satisfied: zope.interface in /home/steffen/anaconda3/envs/spinetoolbox/lib/python3.7/site-packages (from gevent->dagster<0.9,>=0.6.4->spine_engine->-r requirements.txt (line 2)) (5.1.0)
Requirement already satisfied: setuptools in /home/steffen/anaconda3/envs/spinetoolbox/lib/python3.7/site-packages (from gevent->dagster<0.9,>=0.6.4->spine_engine->-r requirements.txt (line 2)) (41.4.0)
Requirement already satisfied: pathtools>=0.1.1 in /home/steffen/anaconda3/envs/spinetoolbox/lib/python3.7/site-packages (from watchdog>=0.8.3->dagster<0.9,>=0.6.4->spine_engine->-r requirements.txt (line 2)) (0.1.2)
Requirement already satisfied: humanfriendly>=7.1 in /home/steffen/anaconda3/envs/spinetoolbox/lib/python3.7/site-packages (from coloredlogs>=6.1->dagster<0.9,>=0.6.4->spine_engine->-r requirements.txt (line 2)) (8.2)
Collecting pexpect>4.3; sys_platform != "win32"
  Using cached https://files.pythonhosted.org/packages/39/7b/88dbb785881c28a102619d46423cb853b46dbccc70d3ac362d99773a78ce/pexpect-4.8.0-py2.py3-none-any.whl
Collecting jedi>=0.10
  Using cached https://files.pythonhosted.org/packages/c3/d4/36136b18daae06ad798966735f6c3fb96869c1be9f8245d2a8f556e40c36/jedi-0.17.2-py2.py3-none-any.whl
Collecting prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0
  Using cached https://files.pythonhosted.org/packages/2b/c1/53ac685833200eb77ef485c2220dac5bfc255418e660790a9eb5cf3abf25/prompt_toolkit-3.0.7-py3-none-any.whl
Collecting backcall
  Using cached https://files.pythonhosted.org/packages/4c/1c/ff6546b6c12603d8dd1070aa3c3d273ad4c07f5771689a7b69a550e8c951/backcall-0.2.0-py2.py3-none-any.whl
Collecting pickleshare
  Using cached https://files.pythonhosted.org/packages/9a/41/220f49aaea88bc6fa6cba8d05ecf24676326156c23b991e80b3f2fc24c77/pickleshare-0.7.5-py2.py3-none-any.whl
Collecting s3transfer<0.4.0,>=0.3.0
  Using cached https://files.pythonhosted.org/packages/69/79/e6afb3d8b0b4e96cefbdc690f741d7dd24547ff1f94240c997a26fa908d3/s3transfer-0.3.3-py2.py3-none-any.whl
Collecting botocore<1.18.0,>=1.17.57
  Using cached https://files.pythonhosted.org/packages/b1/31/239d7fed71ab1c4eca938e88e61896d0811e616d73533a21c8e49bf0b785/botocore-1.17.57-py2.py3-none-any.whl
Collecting jmespath<1.0.0,>=0.7.1
  Using cached https://files.pythonhosted.org/packages/07/cb/5f001272b6faeb23c1c9e0acc04d48eaaf5c862c17709d20e3469c6e0139/jmespath-0.10.0-py2.py3-none-any.whl
Collecting ptyprocess>=0.5
  Using cached https://files.pythonhosted.org/packages/d1/29/605c2cc68a9992d18dada28206eeada56ea4bd07a239669da41674648b6f/ptyprocess-0.6.0-py2.py3-none-any.whl
Collecting parso<0.8.0,>=0.7.0
  Using cached https://files.pythonhosted.org/packages/93/d1/e635bdde32890db5aeb2ffbde17e74f68986305a4466b0aa373b861e3f00/parso-0.7.1-py2.py3-none-any.whl
Collecting wcwidth
  Using cached https://files.pythonhosted.org/packages/59/7c/e39aca596badaf1b78e8f547c807b04dae603a433d3e7a7e04d67f2ef3e5/wcwidth-0.2.5-py2.py3-none-any.whl
Collecting docutils<0.16,>=0.10
  Using cached https://files.pythonhosted.org/packages/22/cd/a6aa959dca619918ccb55023b4cb151949c64d4d5d55b3f4ffd7eee0c6e8/docutils-0.15.2-py3-none-any.whl
Building wheels for collected packages: pyodbc
  Building wheel for pyodbc (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/steffen/anaconda3/envs/spinetoolbox/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-1d_h2b8f/pyodbc/setup.py'"'"'; __file__='"'"'/tmp/pip-install-1d_h2b8f/pyodbc/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 /tmp/pip-wheel-c42f9aos --python-tag cp37
       cwd: /tmp/pip-install-1d_h2b8f/pyodbc/
  Complete output (15 lines):
  running bdist_wheel
  running build
  running build_ext
  building 'pyodbc' extension
  creating build
  creating build/temp.linux-x86_64-3.7
  creating build/temp.linux-x86_64-3.7/src
  gcc -pthread -B /home/steffen/anaconda3/envs/spinetoolbox/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPYODBC_VERSION=4.0.30 -I/home/steffen/anaconda3/envs/spinetoolbox/include/python3.7m -c src/buffer.cpp -o build/temp.linux-x86_64-3.7/src/buffer.o -Wno-write-strings
  cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
  In file included from src/buffer.cpp:12:
  src/pyodbc.h:56:10: fatal error: sql.h: No such file or directory
     56 | #include <sql.h>
        |          ^~~~~~~
  compilation terminated.
  error: command 'gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for pyodbc
  Running setup.py clean for pyodbc
Failed to build pyodbc
Installing collected packages: pyodbc, pymysql, jdcal, et-xmlfile, openpyxl, psycopg2, scipy, ipython-genutils, traitlets, jupyter-core, qtpy, tornado, ptyprocess, pexpect, parso, jedi, wcwidth, prompt-toolkit, backcall, pickleshare, pygments, ipython, pyzmq, jupyter-client, ipykernel, qtconsole, unicodecsv, jmespath, docutils, botocore, s3transfer, boto3, xlrd, linear-tsv, jsonlines, tabulator, cached-property, isodate, rfc3986, tableschema, jsonpointer, datapackage, gdxcc, gdx2py, shiboken2, pyside2, cx-Oracle, spinetoolbox
    Running setup.py install for pyodbc ... error
    ERROR: Command errored out with exit status 1:
     command: /home/steffen/anaconda3/envs/spinetoolbox/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-1d_h2b8f/pyodbc/setup.py'"'"'; __file__='"'"'/tmp/pip-install-1d_h2b8f/pyodbc/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-rqy1q64r/install-record.txt --single-version-externally-managed --compile
         cwd: /tmp/pip-install-1d_h2b8f/pyodbc/
    Complete output (15 lines):
    running install
    running build
    running build_ext
    building 'pyodbc' extension
    creating build
    creating build/temp.linux-x86_64-3.7
    creating build/temp.linux-x86_64-3.7/src
    gcc -pthread -B /home/steffen/anaconda3/envs/spinetoolbox/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPYODBC_VERSION=4.0.30 -I/home/steffen/anaconda3/envs/spinetoolbox/include/python3.7m -c src/buffer.cpp -o build/temp.linux-x86_64-3.7/src/buffer.o -Wno-write-strings
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
    In file included from src/buffer.cpp:12:
    src/pyodbc.h:56:10: fatal error: sql.h: No such file or directory
       56 | #include <sql.h>
          |          ^~~~~~~
    compilation terminated.
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /home/steffen/anaconda3/envs/spinetoolbox/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-1d_h2b8f/pyodbc/setup.py'"'"'; __file__='"'"'/tmp/pip-install-1d_h2b8f/pyodbc/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-rqy1q64r/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.

Im not sure whats failing now.

from spine-toolbox.

steffenkaminski avatar steffenkaminski commented on May 28, 2024

Thanks @ererkka @PekkaSavolainen! I could install the toolbox now

from spine-toolbox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.