alvarobartt / investiny

🤏🏻 `investpy` but made tiny
https://alvarobartt.github.io/investiny
MIT License
316 stars 36 forks source link

ERROR: Could not find a version that satisfies the requirement investiny #63

Open datatalking opened 2 years ago

datatalking commented 2 years ago

Getting an error when I try to install investing pip install investiny that the version isn't compatible, this looks different than most one line errors.

python3.9 is being used from conda as you can see below from my PyCharm IDE and per requirements >=python 3.8 from https://alvarobartt.github.io/investiny/requirements/ I should be ok. Is this related to #38 since I'm on MacOs and usually what causes issues for Linux systems translates to me on Unix. https://github.com/alvarobartt/investiny/issues/38

MacOs BigSur

Screen Shot 2022-10-21 at 7 16 41 AM
datatalking commented 2 years ago

Dug a little deeper and finding that even though I pip install investiny once worked from the global terminal I'm getting PyCharm telling me investing isn't installed from inside the IDE. The python packages menu does show its an option but will not let me install

Which is confined when I look at the anaconda install error

Collecting package metadata (current_repodata.json): ...working... done
Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.

PackagesNotFoundError: The following packages are not available from current channels:

  - investiny

Current channels:

  - https://repo.anaconda.com/pkgs/main/osx-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/osx-64
  - https://repo.anaconda.com/pkgs/r/noarch
  - https://conda.anaconda.org/conda-forge/osx-64
  - https://conda.anaconda.org/conda-forge/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.

Then also it isn't showing in the anaconda GUI

Screen Shot 2022-10-21 at 7 31 09 AM

Is investiny not working for anaconda installs or is the issue elsewhere?

datatalking commented 2 years ago

Also tried to install 0.7.2, 0.7.0 on Python 3.10, 3.9 and 3.8 same error.

alvarobartt commented 2 years ago

So @datatalking I'm also using MacOs (Monterey in my case) and it's working fine so far, but note that the compatibility with Python 3.8+ was included in 0.7.0 so the installation on Python 3.8 of earlier releases won't work! So probably is an issue with either Anaconda, or the environment that you're using, as the error message in the PyCharm IDE seems to tell you that no versions are supported for your Python version, but also says that 0.7.0 is available for >=3.8,<4.0...

Can you please check python --version before actually running the cell with pip install investiny, as you may be using the system's default Python that if I'm not mistaken is either Python 3.6 or 3.7, which are not supported.

plutoBase commented 2 years ago

Sorry to trespass, but fwiw I am on Python 3.9.13 and am also unable to update Investiny beyond 0.5.0 currently installed via pip.

Any suggestions?

alvarobartt commented 2 years ago

@plutoBase what is the error that you see whenever you run pip install investiny==0.7.2?

plutoBase commented 2 years ago

@plutoBase what is the error that you see whenever you run pip install investiny==0.7.2?

thanks so much for the quick reply, Alvaro!

here's the complete log: WARNING: Ignoring invalid distribution -umpy (c:\programdata\anaconda3\envs\finwork\lib\site-packages) WARNING: Ignoring invalid distribution -finance (c:\programdata\anaconda3\envs\finwork\lib\site-packages) WARNING: Ignoring invalid distribution - (c:\programdata\anaconda3\envs\finwork\lib\site-packages) WARNING: Ignoring invalid distribution -umpy (c:\programdata\anaconda3\envs\finwork\lib\site-packages) WARNING: Ignoring invalid distribution -finance (c:\programdata\anaconda3\envs\finwork\lib\site-packages) WARNING: Ignoring invalid distribution - (c:\programdata\anaconda3\envs\finwork\lib\site-packages) ERROR: Could not find a version that satisfies the requirement investiny==0.7.2? (from versions: 0.1.0, 0.2.0, 0.3.0, 0.4.0, 0.5.0, 0.6.0, 0.6.1, 0.7.0, 0.7.1, 0.7.2) ERROR: No matching distribution found for investiny==0.7.2? WARNING: Ignoring invalid distribution -umpy (c:\programdata\anaconda3\envs\finwork\lib\site-packages) WARNING: Ignoring invalid distribution -finance (c:\programdata\anaconda3\envs\finwork\lib\site-packages) WARNING: Ignoring invalid distribution - (c:\programdata\anaconda3\envs\finwork\lib\site-packages) WARNING: Ignoring invalid distribution -umpy (c:\programdata\anaconda3\envs\finwork\lib\site-packages) WARNING: Ignoring invalid distribution -finance (c:\programdata\anaconda3\envs\finwork\lib\site-packages) WARNING: Ignoring invalid distribution - (c:\programdata\anaconda3\envs\finwork\lib\site-packages) WARNING: Ignoring invalid distribution -umpy (c:\programdata\anaconda3\envs\finwork\lib\site-packages) WARNING: Ignoring invalid distribution -finance (c:\programdata\anaconda3\envs\finwork\lib\site-packages) WARNING: Ignoring invalid distribution - (c:\programdata\anaconda3\envs\finwork\lib\site-packages)

plutoBase commented 2 years ago

Just to clean it up a little: ERROR: Could not find a version that satisfies the requirement investiny==0.7.2? (from versions: 0.1.0, 0.2.0, 0.3.0, 0.4.0, 0.5.0, 0.6.0, 0.6.1, 0.7.0, 0.7.1, 0.7.2) ERROR: No matching distribution found for investiny==0.7.2?