GithubHelp home page GithubHelp logo

Fails to run on mac about pyflow HOT 14 CLOSED

david-oconnor avatar david-oconnor commented on June 25, 2024
Fails to run on mac

from pyflow.

Comments (14)

David-OConnor avatar David-OConnor commented on June 25, 2024

This is likely due to incorrect assumptions I made about the directory structure on Mac.

Could you please:

  • Post the directory structure Pyflow built inside __pypackages__ ?
  • If able, add the line println!("Lib path: {:?}", lib_path); at the top of the download_and_install_package function in src/install , rebuild and rerun, and report what it outputs?

I'm suspicious there are other issues related to directories on Mac that you'll run across once this is sorted. I'd love to get this working/tested/binaries released on Mac.

from pyflow.

alok avatar alok commented on June 25, 2024

Directory structure:

.
└── 3.7
    ├── .venv
    │   ├── bin
    │   ├── include
    │   └── lib
    │       └── python3.7
    │           └── site-packages
    │               ├── __pycache__
    │               ├── pip
    │               │   ├── __pycache__
    │               │   ├── _internal
    │               │   │   ├── __pycache__
    │               │   │   ├── cli
    │               │   │   │   └── __pycache__
    │               │   │   ├── commands
    │               │   │   │   └── __pycache__
    │               │   │   ├── models
    │               │   │   │   └── __pycache__
    │               │   │   ├── operations
    │               │   │   │   └── __pycache__
    │               │   │   ├── req
    │               │   │   │   └── __pycache__
    │               │   │   ├── utils
    │               │   │   │   └── __pycache__
    │               │   │   └── vcs
    │               │   │       └── __pycache__
    │               │   └── _vendor
    │               │       ├── __pycache__
    │               │       ├── cachecontrol
    │               │       │   ├── __pycache__
    │               │       │   └── caches
    │               │       │       └── __pycache__
    │               │       ├── certifi
    │               │       │   └── __pycache__
    │               │       ├── chardet
    │               │       │   ├── __pycache__
    │               │       │   └── cli
    │               │       │       └── __pycache__
    │               │       ├── colorama
    │               │       │   └── __pycache__
    │               │       ├── distlib
    │               │       │   ├── __pycache__
    │               │       │   └── _backport
    │               │       │       └── __pycache__
    │               │       ├── html5lib
    │               │       │   ├── __pycache__
    │               │       │   ├── _trie
    │               │       │   │   └── __pycache__
    │               │       │   ├── filters
    │               │       │   │   └── __pycache__
    │               │       │   ├── treeadapters
    │               │       │   │   └── __pycache__
    │               │       │   ├── treebuilders
    │               │       │   │   └── __pycache__
    │               │       │   └── treewalkers
    │               │       │       └── __pycache__
    │               │       ├── idna
    │               │       │   └── __pycache__
    │               │       ├── lockfile
    │               │       │   └── __pycache__
    │               │       ├── msgpack
    │               │       │   └── __pycache__
    │               │       ├── packaging
    │               │       │   └── __pycache__
    │               │       ├── pep517
    │               │       │   └── __pycache__
    │               │       ├── pkg_resources
    │               │       │   └── __pycache__
    │               │       ├── progress
    │               │       │   └── __pycache__
    │               │       ├── pytoml
    │               │       │   └── __pycache__
    │               │       ├── requests
    │               │       │   └── __pycache__
    │               │       ├── urllib3
    │               │       │   ├── __pycache__
    │               │       │   ├── contrib
    │               │       │   │   ├── __pycache__
    │               │       │   │   └── _securetransport
    │               │       │   │       └── __pycache__
    │               │       │   ├── packages
    │               │       │   │   ├── __pycache__
    │               │       │   │   ├── backports
    │               │       │   │   │   └── __pycache__
    │               │       │   │   └── ssl_match_hostname
    │               │       │   │       └── __pycache__
    │               │       │   └── util
    │               │       │       └── __pycache__
    │               │       └── webencodings
    │               │           └── __pycache__
    │               ├── pip-19.0.3.dist-info
    │               ├── pkg_resources
    │               │   ├── __pycache__
    │               │   ├── _vendor
    │               │   │   ├── __pycache__
    │               │   │   └── packaging
    │               │   │       └── __pycache__
    │               │   └── extern
    │               │       └── __pycache__
    │               ├── setuptools
    │               │   ├── __pycache__
    │               │   ├── _vendor
    │               │   │   ├── __pycache__
    │               │   │   └── packaging
    │               │   │       └── __pycache__
    │               │   ├── command
    │               │   │   └── __pycache__
    │               │   └── extern
    │               │       └── __pycache__
    │               └── setuptools-40.8.0.dist-info
    └── lib

111 directories

lib_path: $PROJECT_ROOT/__pypackages__/3.7/.venv/lib64/python3.7/site-packages

from pyflow.

David-OConnor avatar David-OConnor commented on June 25, 2024

Could you please add the line: println!("pypackges dir: {:?}", &pypackages_dir); at line 1333 of src/main.rs, (Right after it's assigned) and post the result? I'm not sure why the __ is being ommitted. It also looks like there's an issue regarding lib vs lib64. Note that this is being triggered when attempting to install wheel, when building the env.

I appologize for asking you to run through these, but I'm not sure how to test on Mac.

edit: Disregard this post.

from pyflow.

David-OConnor avatar David-OConnor commented on June 25, 2024

Nvm: The problem is lib vs lib64; I misinterpreted GH's formatting __ as bold.

Would you please modify line 470 of src/py_versions.rs, to replace lib64 with lib, and try again ? Ie:

    PathBuf::from("lib").join(&format!("python{}.{}", py_ver.major, py_ver.minor));

from pyflow.

alok avatar alok commented on June 25, 2024

Did that. Now I don't get that error and it creates a lockfile, but the lockfile is empty and no packages are actually downloaded (numpy in this case).

from pyflow.

alok avatar alok commented on June 25, 2024

Here's the lockfile:

package = []

[metadata]

from pyflow.

David-OConnor avatar David-OConnor commented on June 25, 2024

Could you please post the contents of [tool.pyflow.dependencies] in pyproject.toml ?

from pyflow.

alok avatar alok commented on June 25, 2024
# See PEP 518: https://www.python.org/dev/peps/pep-0518/ for info on this file's structure.

[tool.pyflow]
name = ""
py_version = "3.7"
version = "0.1.0"
author = ""


[tool.pyflow.scripts]


[tool.pyflow.dependencies]
numpy = "^1.17.2"


[tool.pyflow.dev-dependencies]


from pyflow.

David-OConnor avatar David-OConnor commented on June 25, 2024

Thank you. Could you run pyflow reset, and try again?

from pyflow.

alok avatar alok commented on June 25, 2024

Same issue.

from pyflow.

David-OConnor avatar David-OConnor commented on June 25, 2024

This may be related to a broken commit I pushed last night:

Can you please remove this chunk of code in src/main.rs, at line 1141, and try again?

combined_reqs = combined_reqs
        .into_iter()
        .filter(|r| r.git.is_some())
        .collect();

At this point, probably not a Mac issue; I'll be able to push a new commit this evening.

from pyflow.

alok avatar alok commented on June 25, 2024

Looks like that's it. I was able to install after deleting that.

from pyflow.

David-OConnor avatar David-OConnor commented on June 25, 2024

Fixed in latest commit.

from pyflow.

David-OConnor avatar David-OConnor commented on June 25, 2024

Released

from pyflow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.