Skip to content
This repository has been archived by the owner on Aug 17, 2024. It is now read-only.

Issues while deploying on heroku #38

Closed
haseebehsan opened this issue Mar 3, 2020 · 9 comments
Closed

Issues while deploying on heroku #38

haseebehsan opened this issue Mar 3, 2020 · 9 comments

Comments

@haseebehsan
Copy link

Hi, I was using the click to deploy button below and it gave this error

-----> Installing Dependencies using /tmp/build_56938d30a27dd84cca915e0c8f940181/environments/default.yml
Warning: you have pip-installed dependencies in your environment file, but you do not list pip itself as one of your conda dependencies.  Conda may not use the correct pip to install your packages, and they may end up in the wrong place.  Please add an explicit pip dependency.  I'm adding one for you, but still nagging you.
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... failed
ResolvePackageNotFound: 
  - notebook=4
 !     Push rejected, failed to compile Python app.
 !     Push failed
@jefflarkin
Copy link

Same for me.

@haseebehsan
Copy link
Author

I Fixed this btw by specifying the version of notebook==5 but ran into different problems of pgcontents or something later after installation when trying to run the jupyter

Same for me.

@jefflarkin
Copy link

@haseebehsan Thanks, I actually found your fork last night. I had to change the IP to 0.0.0.0 and then had a successful deploy, but am also hitting issues with pgcontents that I still need to dig into. I'll keep a eye on your fork. Thanks.

@haseebehsan
Copy link
Author

I might not work on it this week but if you find any solution, do let me know too, I really need to install this.

@haseebehsan Thanks, I actually found your fork last night. I had to change the IP to 0.0.0.0 and then had a successful deploy, but am also hitting issues with pgcontents that I still need to dig into. I'll keep a eye on your fork. Thanks.

@pl31
Copy link
Owner

pl31 commented Mar 6, 2020

I tried adding an alternative environment (environments/latest.yml) without any version binding. Find Deploy button in the table at the end of README.md.

Still initial setup of the database fails
psycopg2.errors.UndefinedObject: constraint "directories_parent_user_id_fkey" of relation "directories" does not exist

This might be a pgcontents bug: quantopian/pgcontents#74

@pl31
Copy link
Owner

pl31 commented Mar 6, 2020

I do not find a valid environment.yml

  • pgcontents 0.6.0 will not initialized properly
  • pgcontents 0.5.3 needs notebook = 4 (IPython = 5), which is not available anymore

@jefflarkin
Copy link

@pl31 @haseebehsan yes, this is how far I got as well. Thanks for looking at it. If I find a solution, I'll post it here. I agree, it appears to be a pgcontents 0.6.0 bug that prevents initialization. I'm tempted to sift through the code to find the initialization SQL query and then initialize the db manually to see if this fixes it.

@haseebehsan
Copy link
Author

@pl31 any leads, yet?

@pl31
Copy link
Owner

pl31 commented Oct 15, 2020

I tried to deploy "latest.yml". Installation works fine, starting results in an error:

2020-10-15T17:16:25.617615+00:00 app[web.1]: sqlalchemy.exc.ProgrammingError: (psycopg2.errors.UndefinedTable) relation "pgcontents.users" does not exist
2020-10-15T17:16:25.617616+00:00 app[web.1]: LINE 1: INSERT INTO pgcontents.users (id) VALUES ('heroku')

There is a similar case here: quantopian/pgcontents#75

So, no stable and running configuration, yet.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@jefflarkin @pl31 @haseebehsan and others