Closed jolespin closed 4 years ago
I think some details are missing for us to have a clear picture, please bear with me.
I created this environment
soothsayer_env
and then cloned it intotesting_env
What is soothsayer_env
, a virtualenv virtual environment, venv virtual environment, or conda environment (?)? What does it mean to "clone" it into testing_env
? What commands would I run to recreate your setup?
and locally:
pip install --no-deps ~/Google/Informatics/Algorithms/Packages/soothsayer/
Where does this directory come from? Does it have the same contents as git+https://github.com/jolespin/soothsayer
?
My setup script hasn't changed.
Can you provide the setup script you're talking about?
Also, in the first command you're showing ls of /Users/mu/anaconda3/envs/soothsayer_env/lib/python3.6/site-packages/
, but in the second command you're showing ls of /Users/mu/anaconda3/envs/testing_env/lib/python3.6/site-packages/
(soothsayer_env
vs testing_env
). Did testing_env
previously contain all of the other packages or something else?
Sorry about that. Those are huge details I left out.
soothsayer_env
and testing_env
are conda environments.
setup script: https://github.com/jolespin/soothsayer/blob/master/setup.py
import re, datetime
from setuptools import setup, find_packages
# Version
version = None
with open("./soothsayer/__init__.py", "r") as f:
for line in f.readlines():
line = line.strip()
if line.startswith("__version__"):
version = line.split("=")[-1].strip().strip('"')
assert version is not None, "Check version in soothsayer/__init__.py"
setup(name='soothsayer',
version=version,
description='High-level API for (bio-)informatics',
url='https://github.com/jolespin/soothsayer',
author='Josh L. Espinoza',
author_email='jespinoz@jcvi.org',
license='BSD-3',
packages=find_packages(include=("*", "./*")),
install_requires=[
"matplotlib >= 2.2.2",
"scipy >= 1.0",
"scikit-learn >= 0.20.2",
"numpy >= 1.13", #, < 1.14.0",
'pandas >= 0.24.2',
'networkx >= 2.0',
'ete3 >= 3.0',
'scikit-bio >= 0.5.1',
"biopython >= 1.5",
"xarray >= 0.10.3",
"tqdm >=4.19",
"openpyxl >= 2.5",
"astropy >= 3.0",
"rpy2 >= 2.9",
"matplotlib_venn",
"palettable >= 3.0.0",
"adjustText",
"tzlocal",
"statsmodels >= 0.10.0", #https://github.com/statsmodels/statsmodels/issues/5899 May need to use this separately: pip install git+https://github.com/statsmodels/statsmodels.git@maintenance/0.10.x
"teneto",
],
include_package_data=True,
scripts=['bin/clairvoyance.py', "bin/run_soothsayer.py"],
)
You can recreate my situation by doing this:
wget https://github.com/jolespin/soothsayer/blob/master/install/soothsayer_py36_v2019.08.osx.yml
conda env create --name soothsayer_env --file soothsayer_py36_v2019.08.osx.yml
conda create --name testing_env --clone soothsayer_env
Yes, testing_env
used to contain everything from soothsayer_env
prior to updating my soothsayer
package.
Any help would be greatly appreciated. Thank's for taking a look at this!
I just tried downgrading to 19.2.3-py36_0 --> 18.0-py36_1001
and still got the error.
I've install my package using the following and it worked:
python setup.py install
Here's my reproduction:
Do you have any insight on why this could be happening?
Is your original environment broken in some subtle way? Can you try to come up with the minimal set of commands to cause this problem in a fresh machine (e.g. Docker container)?
If I do something like docker run --rm -it python:slim /bin/bash
and run:
python3 -m venv /venv
/venv/bin/pip3 install numpy
ls /venv/lib/python3.8/site-packages/ # numpy is here.
apt update; apt install -y git
/venv/bin/pip3 install --no-deps git+https://github.com/jolespin/soothsayer
ls /venv/lib/python3.8/site-packages/ # numpy and soothsayer are both here.
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.
Environment
Description When I install my python package using pip it removes everything from site-packages. This happened off a fresh install of conda and pip.
I created this environment
soothsayer_env
and then cloned it intotesting_env
:Now look at this:
Expected behavior Not to delete my modules
How to Reproduce I ran the following commands in separate instances with the same results:
pip install --no-deps git+https://github.com/jolespin/soothsayer
and locally:
pip install --no-deps ~/Google/Informatics/Algorithms/Packages/soothsayer/
My setup script hasn't changed. This has happened with
pip
before and I have no idea why it does this sometimes.Here's my
pip
before it got deleted bypip
: