openfisca / openfisca-core

OpenFisca core engine. See other repositories for countries-specific code & data.
https://openfisca.org
GNU Affero General Public License v3.0
168 stars 75 forks source link

Installation Issue #1078

Closed JasonMorrisSC closed 2 years ago

JasonMorrisSC commented 2 years ago

Hi there!

I really enjoy OpenFisca, but I recently encountered an issue.

Here is what I did:

Followed instructions at https://openfisca.org/doc/installation/windows-no-admin.html

Here is what I expected to happen:

Successful install.

Here is what actually happened:

On step 3, pip install * gives the following errors:

ERROR: Biryani-0.10.4-py2-none-any.whl is not a supported wheel on this platform.
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)'))) - skipping
(openfisca)

Here is data (or links to it) that can help you reproduce this issue:

Context

I identify more as a:

bonjourmauko commented 2 years ago

Hi @JasonMorrisSC and welcome 😃

Followed instructions at https://openfisca.org/doc/installation/windows-no-admin.html

Those instructions are outdated and misleading: what they propose you is to install a bundled version of https://github.com/openfisca/openfisca-france which is

  1. outdated (4 year-old)
  2. unmaintained
  3. maybe not what you want

I filed openfisca/openfisca-doc#255 to update the doc 🙏

Successful install.

I have a couple of questions so I know how to provide you with the best possible answer:

  1. Are you on Windows without admin rights?
  2. Do you specifically want to install https://github.com/openfisca/openfisca-france?
  3. If you can describe your use case, that'd greatly help us with an answer and at the same time to update the documentation accordingly —you want to try an existing modelled legislation like France, you want to start a new one, etc.
bonjourmauko commented 2 years ago

Maybe linked to #1039

JasonMorrisSC commented 2 years ago

Yes, it's windows without admin. What I wanted to do was get a Python environment where I could bootstrap a country package, encode some new legislation, and deploy it (just locally, for now) as a web API, in order to explore OpenFisca's capabilities. I eventually followed the instructions for bootstrapping a country package, and was able to sort of manually do what bootstrap.sh was supposed to do. But I still don't have openfisca-core installed on the machine. Some people are working on getting me a dev environment where I have root access, so I may not need the windows no admin process, eventually. But for now it would be my only option, and it doesn't work. :)

bonjourmauko commented 2 years ago

Thanks @JasonMorrisSC .

What I wanted to do was get a Python environment where I could bootstrap a country package, encode some new legislation, and deploy it (just locally, for now) as a web API, in order to explore OpenFisca's capabilities

That's great input, we'll eventually redo that section of the doc from scratch.

I eventually followed the instructions for bootstrapping a country package, and was able to sort of manually do what bootstrap.sh was supposed to do

🥳

But I still don't have openfisca-core installed on the machine

I've asked for help in the OpenFisca's community Slack if someone has been confronted to that use case, so to provide you with a solution and at the same time update the doc.

In the meantime, you're more than welcome to join the Slack 😃 —if you prefer, for privacy concerns, to not share your email publicly, you can always contact me via Twitter or by email (contact@openfisca.org).

benjello commented 2 years ago

At IPP, we have to use openfisca on a windows system without admin rights. We use Anaconda and install in a virtualenv all the deps of openfisca-core that are provided b Anaconda using conda and all the other deps using pip. It is cumbersome and not very efficient. That why I am in favor of #1039.

bonjourmauko commented 2 years ago

Thanks @benjello ! Do you think you could describe the step-by-step process? Perhaps you've already wrote it in an internal README at IPP, given you're continuously on-boarding people with that kind of system.

JasonMorrisSC commented 2 years ago

Happy to add the OpenFisca slack to my collection, but what is the domain name?

bonjourmauko commented 2 years ago

Happy to add the OpenFisca slack to my collection, but what is the domain name?

🤣 https://github.com/openfisca/openfisca-core/blob/47f01b3a861874270ff193c7a155e61d716e0be6/README.md?plain=1#L5 (openfisca.slack.com)

MattiSG commented 2 years ago

I understand that this issue has been fixed by https://github.com/openfisca/openfisca-core/issues/1039: you can now use conda to install OpenFisca on all architectures, including Window without admin rights 🙂 (thanks @benoit-cty!)

Feel free to reopen if I got something wrong 😊