Skip to content

Environement setup #7

@Loveashik

Description

@Loveashik

Hey @MomirMilutinovic, I updated my local repo and here are the observations. As the project evolves, I may run into issues updating my local environment, because previous versions may have created conflicting configurations.

  1. As for now, when I try to run ./setup.sh , I get the following error:
1. Setting up conda environment

CondaValueError: prefix already exists: /home/my_user/miniconda3/envs/pubtrends_datasets


CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
To initialize your shell, run

    $ conda init <SHELL_NAME>

Currently supported shells are:
  - bash
  - fish
  - tcsh
  - xonsh
  - zsh
  - powershell

See 'conda init --help' for more information and options.

IMPORTANT: You may need to close and restart your shell after running 'conda init'.

Followed by this:

2. Generating test sample of GEOmetadb
Parse error near line 3: table gse already exists
  CREATE TABLE gse(   ID REAL,   title TEXT,   gse TEXT,   status TEXT,   submis
               ^--- error here
Parse error near line 34: table gsm already exists
  CREATE TABLE gsm(   ID REAL,   title TEXT,   gsm TEXT,   series_id TEXT,   gpl
               ^--- error here
Parse error near line 72: table gse_gsm already exists
  CREATE TABLE gse_gsm(gse TEXT,gsm TEXT);
               ^--- error here
  1. Why the database needs to be downloaded to a path outside the repository? It is like the project modifies the file structure outside of it which could bring problems. Is it possible to move the download location inside the project, or at least provide an option to choose the installation path?
    Additionally, if I already have the database installed locally, should this step be skipped in that case?
  2. Your setup.sh assumes that the user already has conda installed but in the README.md there is no info about it. Better to let .setup.sh handle full environment setup logic.
  3. What do you think about switching from conda to the uv package manager, which is more modern, faster, and simpler to reproduce across environments?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions