Closed nleroy917 closed 2 years ago
Can't reproduce anymore. I might have had an old cached version somewhere I was using. I'll close for now and if it comes back up I'll reopen.
Never mind, I have a reproducible example. It's when you don't specify key-value pairs in the function signature.
>>> from pepdbagent import Connection
>>> import peppy
>>> p = peppy.Project("examples/demo/BiocProject/project_config.yaml")
>>> conn = Connection(
... host="localhost",
... user="postgres",
... password="docker"
... )
>>> conn.upload_project(p, "demo", "BiocProject") # <--- note this line change
>>> conn.get_namespace_info("demo")
"description": p[4]["proj_description"],
KeyError: 'proj_description'
As before, the project got uploaded successfully, since calling conn.get_project_by_registry("demo/BiocProject")
returns the full peppy.Project
object.
I have changed it few days ago, now pepdbagent shoudn't have this problem. I have created new class pepannot, so it will handle this error: check new code here: https://github.com/pepkit/pepdbagent/blob/3478eade8709f2f30bcba5074ff5a2e20d6e972c/pepdbagent/pepdbagent.py#L440-L441
Okay. That's odd it was broken yesterday, but fine now.
I was uploading PEPs with
pepdbagent
and I noticed with the lastest version, I get this error after uploading a project and trying to access it:I'm not sure what I did wrong, but here are the steps to reproduce:
projects
table withDROP TABLE projects
sql
here to create fresh tableInterestingly, I can still grab the project: