Comments (14)
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 thedownload_and_install_package
function insrc/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.
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.
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.
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.
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.
Here's the lockfile:
package = []
[metadata]
from pyflow.
Could you please post the contents of [tool.pyflow.dependencies]
in pyproject.toml
?
from pyflow.
# 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.
Thank you. Could you run pyflow reset
, and try again?
from pyflow.
Same issue.
from pyflow.
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.
Looks like that's it. I was able to install after deleting that.
from pyflow.
Fixed in latest commit.
from pyflow.
Released
from pyflow.
Related Issues (20)
- Can't import numpy c-extension on 3.9 HOT 2
- Failed to install: `manylinux_2_17_aarch64.manylinux2014_aarch64` HOT 1
- pyflow init and install error
- Support for editable installs
- propagate Exit Code
- error: invalid command 'bdist_wheel' HOT 1
- pyflow randomizes the order of pyflow.lock every time I run a script through it HOT 2
- stop using system Python to build wheels
- Can't find a compatible package for Req
- "Can't get version info"
- Installing ujson panics
- Maybe use indygreg/python-build-standalone for Python binaries?
- `Aborting graph creation: Problem getting dependency data` issue HOT 5
- establish a communique for users
- Update PEP 582 references
- Pyflow can't get dependency data, thus preventing much of its functionality
- __python__ in script not working
- Problem getting dependency data on init.
- Submit pyflow to Windows Package Manager
- Is this project still under development? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyflow.