David-OConnor / pyflow

An installation and dependency system for Python
MIT License
1.32k stars 44 forks source link

`Aborting graph creation: Problem getting dependency data` issue #184

Open chenrui333 opened 1 year ago

chenrui333 commented 1 year ago

Trying to regression testing pyflow, but ran into some Aborting graph creation: Problem getting dependency data failure.

How to reproduce

Error log as below

test error ``` $ virtualenv . -p python3.9 && source bin/activate created virtual environment CPython3.9.14.final.0-64 in 585ms creator CPython3Posix(dest=/Users/rui/Downloads/brew, clear=False, no_vcs_ignore=False, global=False) seeder FromAppData(download=False, pip=bundle, wheel=bundle, setuptools=bundle, via=copy, app_data_dir=/Users/rui/Library/Application Support/virtualenv) added seed packages: pip==22.3, setuptools==65.5.0, wheel==0.37.1 activators NushellActivator,PythonActivator,FishActivator,CShellActivator,PowerShellActivator,BashActivator (brew) $ pyflow init Please enter the Python version for this project: (eg: 3.8) Default [3.9.14]: Created `pyproject.toml` Found multiple compatible Python versions. Please enter the number associated with the one you'd like to use: 1: python3.9: 3.9.14 2: python3: 3.9.14 3: python: 3.9.14 1 🐍 Setting up Python... (brew) $ pyflow install boto3 Found lockfile Aborting graph creation: Problem getting dependency data Reqs: [ Req { name: "boto3", constraints: [ Constraint { type_: Caret, version: 1.26.17, }, ], extra: None, sys_platform: None, python_version: None, install_with_extras: None, path: None, git: None, }, ] It's taking a long time to get dependency data - this usually suggests that the dependency tree is being newly built. Please try again in a few minutes, and if the error still occurs, consider opening an issue on github. ```
dbrtly commented 1 year ago

I get a similar error on different install process macos(x86):

➜  libraries pyflow new my_lib 
Please enter the Python version for this project: (eg: 3.8)
Default [3.10.8]:
Created a new Python project named my_lib
➜  libraries cd my_lib 
➜  my_lib git:(main) ✗ pyflow install requests
Found multiple compatible Python versions. Please enter the number associated with the one you'd like to use:
1: python3.10: 3.10.8
2: python3: 3.10.8
3: python: 3.10.8
3
🐍 Setting up Python...
Found lockfile

Aborting graph creation: Problem getting dependency data
 Reqs: [
    Req {
        name: "requests",
        constraints: [
            Constraint {
                type_: Caret,
                version: 2.28.1,
            },
        ],
        extra: None,
        sys_platform: None,
        python_version: None,
        install_with_extras: None,
        path: None,
        git: None,
    },
]
             It's taking a long time to get dependency data - this usually suggests that the dependency tree is being newly built. Please try again in a few minutes, and if the error still occurs, consider opening an issue on github.
eugenesvk commented 1 year ago

I saw a request to pydeps.herokuapp.com, could it be this app just died due to Heroku plan limits, hence we can't get any dep data from it???

chenrui333 commented 1 year ago

I saw a request to pydeps.herokuapp.com, could it be this app just died due to Heroku plan limits, hence we can't get any dep data from it???

that is highly possible, heroku killed lots of apps recently.

mmoya commented 1 year ago

The pydeps.herokuapp.com url is being used here and it's not working anymore.

frabarz commented 1 year ago

I made a clone of the server, but to use it you need to replace the URL in that line in the code base, and build your own pyflow binary with cargo build --release. I made a PR to allow setting the URL via envvars.