-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
postgresql issue #3
Comments
c2be7e0 fix this issue? |
Sorry to re-awaken an old issue but I seem to be getting the same error with the current master. I think I have had this working on a local db with no user/password provided but the error happens when connecting with a user & password to a remote db. Judging by the original issue, it might be the username and/or password causing the error. |
Can I have some example code that I can reproduce the UUID problem? |
Sorry for the slow reply. I've been ill for a week. I believe the following code should cause the issue import sqlalchemy
import sqlalchemy_gevent
sqlalchemy_gevent.patch_all()
engine = sqlalchemy.create_engine("postgresql://<username>:<password>@<host>:<port>/<dbname>", pool_size=20)
connection = engine.connect().execution_options(autocommit=True) Other methods of applying sqlalchemy_gevent also seem to have the issue. |
I updated the test, but could not reproduce the issue. Are you getting TypeError? |
I am, yes. The exact same output as in the OP. I'm not in a position to run up a version with sqlalchemy_gevent at the moment but I'll try and post more info as soon as I am. |
Hello. Sorry. Just got back into a position to test this. Here's a traceback from the example code I previously posted:
|
Sorry. This work went on the back-burner for me. Doing some more searching, could it be a similar issue to this https://gist.github.com/mjallday/3d4c92e7e6805af1e024 |
@hkwi I also notice your travis tests are using a database on localhost. I've eliminated versions of other libraries as a factor in this. Local Vs Remote databases seem to be the only factor that might be breaking this. |
error
File "/opt/.virtualenvs/yon-reports-my/lib/python2.7/site-packages/psycopg2/extras.py", line 487, in register_uuid
_ext.register_type(_ext.UUID, conn_or_curs)
TypeError: argument 2 must be a connection, cursor or None
import
sqlalchemy_geventsqlalchemy_gevent.patch_all()
engine = create_engine('postgresql+psycopg2://xxxxxx:xxxxxx@localhost/yyyyy', isolation_level='AUTOCOMMIT')
The text was updated successfully, but these errors were encountered: