grandma-collaboration / skyportal_grandma_dev

Little Git Repo to keep track of the work done by the A4 ESILV TEAM
2 stars 0 forks source link

Alix Olliéric - Installing SkyPortal #9

Closed AlixOlrc closed 1 year ago

AlixOlrc commented 1 year ago

Hi ! I am currently in the process of setting up skyportal. I am having issues with the make run part and having the following errors :

pip 20.0.2 is installed but pip==22.2.2 is required

and

Traceback (most recent call last): File "/home/alixo/skyportal/skyportal_env/bin/pip", line 5, in from pip._internal.cli.main import main .... File "/home/alixo/skyportal/skyportal_env/lib/python3.8/site-packages/OpenSSL/crypto.py", line 3224, in utils.deprecated( TypeError: deprecated() got an unexpected keyword argument 'name' make[1]: [baselayer/Makefile:45: dependencies] Error 1 make: [Makefile:74: run] Error 2

ManonFlt commented 1 year ago

Hello! @Theodlz I have the same problem

mcoughlin commented 1 year ago

What happens if you pip install the correct version?

Theodlz commented 1 year ago

I think you just need to upgrade pip. You'll easily find how to do so online.

Also, I would suggest all of you tu use a more recent version of python (3.9 and above).

For example, I'm using 3.9.7, but you could use an even more recent one if you'd like.

Theodlz commented 1 year ago

@ManonFlt id yoh have the same problem, please also report on your own issue so we can keep track of your own advancement

AlixOlrc commented 1 year ago

Even after installing python3.9 and pip 22.2.2, the python -V command still shows python 3.8.10 and the make run command still shows the pip version error The deprecated() error also remains

Theodlz commented 1 year ago

Thats because the virtualenv you created is using your older version of python maybe. I would suggest removing it completely and repeating the first steps of the installation guide about creating a virtual environment.

It might be also because even if you installed a new version of python, you did not desinstall the older one and skyportal uses the wrong one. But thats very unlikely, its probably just your virtualenv

Theodlz commented 1 year ago

Hi @aolrc-vinci , any updates? I'd like all of you to be able to move to the next step (next issue) soon. Otherwise you guys won't be able to start working for the project...

Please look at other people's issues. Someone else encountered the same problem and fixed it. You guys should talk :)

Theodlz commented 1 year ago

Don't forget to look at other people's issues. But be careful, those who are done might have closed their issue (which is what should be done once an issue is solved). So on the issues section of this git repo, you can display or not display closed issue. But default they are hidden, so don't forget to display them so you don't miss anything valuable.

AlixOlrc commented 1 year ago

Hi ! I'm still struggling and haven't had a lot of time to work on the installation but I will look at other people's issues and try to get it to work by the end of the week.

Theodlz commented 1 year ago

Sounds good! Good luck

Theodlz commented 1 year ago

Hey @aolrc-vinci. Any updates?

AlixOlrc commented 1 year ago

Yes I realised I didn't clone the right fork and cloned the skyportal repository so I have to start the installation from the beginning on my fork. I should however be able to do start again relatively quickly since I've figured out most of my issues.

Theodlz commented 1 year ago

Awesome. Please tag me in a comment here ans close your issue once you're done.

AlixOlrc commented 1 year ago

Hi @Theodlz ! I'm having an issue with the make db_init and postgresql, I downloaded postgresql v14 but the one that is used in the db_init is the v12 and I can't find the pg_hba.conf file for this one. The postgres client exited with the following error message:

psql: error: fe_sendauth: no password supplied

I also tried to create a cluster using the v14 (of which I was able to edit the pg_hba file) but it's not allowing me to do so.

Theodlz commented 1 year ago

Hi @aolrc-vinci, please have a look at the Installing PostgreSQL from https://grandma-skyportal.readthedocs.io/dev_guide/ I wrote that documentation when I had the same problem. It should help :)

AlixOlrc commented 1 year ago

Hi @Theodlz ! I come bearing good news ! I have finally succeeded at the installation. Ready to start working now ! 🚀