Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation unclear #2

Open
rrydbirk opened this issue Oct 25, 2023 · 10 comments
Open

Installation unclear #2

rrydbirk opened this issue Oct 25, 2023 · 10 comments

Comments

@rrydbirk
Copy link

In the README, it's stated that the package can be directly downloaded for usage. However, it's not possible to install via pip, nor via ZIP/git. Please advise.

/work/01_notebooks via 🐍 v3.8.12 via πŸ…’ tfvelo took 5s 
[ 13:06:01 ] βœ—  pip install https://github.com/xiaoyeye/TFvelo/archive/refs/heads/main.zip
Collecting https://github.com/xiaoyeye/TFvelo/archive/refs/heads/main.zip
  Downloading https://github.com/xiaoyeye/TFvelo/archive/refs/heads/main.zip
     | 16.8 MB 27.2 MB/s 0:00:01
ERROR: https://github.com/xiaoyeye/TFvelo/archive/refs/heads/main.zip does not appear to be a Python project: neither 'setup.py' nor 'pyproject.toml' found.
@AlePur
Copy link

AlePur commented Nov 25, 2023

I think you can't install this as package it doesn't provide a setup.py. You can clone the git repo and import TFv when you set the working directory to be TFVelo

@rrydbirk
Copy link
Author

rrydbirk commented Dec 7, 2023

Hi @AlePur
Indeed, it's not possible to install the package, therefore I don't think the instructions are straight forward.
As you suggest, it's possible to import the package by setting WD to TFVelo or by using 'sys.path.insert(0, "/path/to/package/TFvelo/")'

@vasikara17
Copy link

Hello,
thanks for the interesting package.
Could you give some more information about the installation and run? Do we need to download only the two .py scripts to run it?

Best,
Vasiliki

@noamiz5060
Copy link

did you manage to solve it?

@vasikara17
Copy link

Hello,
not yet, it would be really nice to install and test with our data.

@rrydbirk
Copy link
Author

@vasikara17
I created a Conda venv named tfvelo in .../miniconda3/envs/tfvelo, and installed TFvelo in .../miniconda3/envs/tfvelo/TFvelo. From there, I'm able to run python TFvelo_run_demo.py ...
In Python, this works for me:

import sys
sys.path.insert(0, "/work/miniconda3/envs/tfvelo/TFvelo/")
import TFvelo

I was able to run TFvelo_run_demo.py but not TFvelo_analysis_demo.py. I did the plotting in a Jupyter Notebook instead.

@noamiz5060
Copy link

@vasikara17 I created a Conda venv named tfvelo in .../miniconda3/envs/tfvelo, and installed TFvelo in .../miniconda3/envs/tfvelo/TFvelo. From there, I'm able to run python TFvelo_run_demo.py ... In Python, this works for me:

import sys
sys.path.insert(0, "/work/miniconda3/envs/tfvelo/TFvelo/")
import TFvelo

I was able to run TFvelo_run_demo.py but not TFvelo_analysis_demo.py. I did the plotting in a Jupyter Notebook instead.

how did you 'install' TFvelo in the tfvelo env?

@rrydbirk
Copy link
Author

Sorry, kind off missed the whole point of the problem stating that I "installed" the app. I used git clone.

@noamiz5060
Copy link

Sorry, kind off missed the whole point of the problem stating that I "installed" the app. I used git clone.

God bless you my brother

@AAA-3
Copy link

AAA-3 commented Sep 6, 2024

Not the developer her ebut the instructions in the README say that we can just run the two .py scripts as is from CLI, but I agree it would be nice for us to know how to reproduce their notebooks. When I try to run the TFvelo_demo.ipynb, I get errors

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

No branches or pull requests

5 participants