Skip to content

Conversation

@Bachibouzouk
Copy link
Contributor

I don't know if we should also specify the version of psycopg2 or geoalchemy which should be installed.

On my laptop (linux)
pip install psycopg2
did not work
I had to do
pip install psycopg2-binary

@gplssm
Copy link

gplssm commented Aug 26, 2019

Recently, I did fresh install to test passwordless OEP connection. During the installation, I noticed that even more packages are required. For sucessfuly executing this command

from sqlalchemy import create_engine
import oedialect

OED_STRING_PWLESS = 'postgresql+oedialect://openenergy-platform.org'

engine = create_engine(OED_STRING_PWLESS)
conn = engine.connect()

print(engine.dialect.has_table(conn, 'ego_dp_res_powerplant_reaosm', 'sandbox'))

I needed to install the following packages

  • sqlalchemy
  • psycopg2
  • geoalchemy2
  • shapely
  • python-dateutil

When updating the requirements, what about the last two of my list?

@nesnoj
Copy link
Contributor

nesnoj commented Aug 29, 2019

Yepp, shapely and python-dateutil is needed indeed.. please add

EDIT: I added both in 09b0a3a

@MGlauer MGlauer merged commit b1f751a into master Aug 29, 2019
@Bachibouzouk Bachibouzouk deleted the feature/improve-setup-file branch August 29, 2019 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants