Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About the error in the installation steps of readthedocs local server #9849

Closed
pilgrimage80 opened this issue Dec 29, 2022 · 10 comments
Closed
Labels
Support Support question

Comments

@pilgrimage80
Copy link

pilgrimage80 commented Dec 29, 2022

I'm trying to install readthedocs on my local gitlab server and I'm following the guide in the link.

ReadThedocs Guide

Here's the python version and pip version I'm using;

Python3.9
Pip3.9

To run the virtual pip environment, I use the following command.

python3.9 -m venv tutorial-env # I completed the install process with this command.

source tutorial-env/bin/activate # with this command I access the virtual pip environment**

my steps in the virtual pip environment;

I run this from the readthedocs installation steps.

(tutorial-env) [redhat@gitlab tutorial-env]$ pip install -r requirements.txt
And no error occurred.

(tutorial-env) [redhat@gitlab tutorial-env]$ python3.9 /home/redhat/readthedocs.org/manage.py migrate

Gave the following error message

[debug ] Using slumber v2. [readthedocs.api.v2.client] api_host=http://127.0.0.1:8000 username=test

Traceback (most recent call last):

File "/home/redhat/readthedocs.org/manage.py", line 11, in

execute_from_command_line(sys.argv)

File "/home/redhat/tutorial-env/lib64/python3.9/site-packages/django/core/management/init.py", line 419, in execute_from_command_line

utility.execute()

File "/home/redhat/tutorial-env/lib64/python3.9/site-packages/django/core/management/init.py", line 395, in execute

django.setup()

File "/home/redhat/tutorial-env/lib64/python3.9/site-packages/django/init.py", line 24, in setup

apps.populate(settings.INSTALLED_APPS)

File "/home/redhat/tutorial-env/lib64/python3.9/site-packages/django/apps/registry.py", line 122, in populate

app_config.ready()

File "/home/redhat/readthedocs.org/readthedocs/core/apps.py", line 15, in ready

import readthedocs.core.signals  # noqa

File "/home/redhat/readthedocs.org/readthedocs/core/signals.py", line 17, in

from readthedocs.core.unresolver import unresolve

File "/home/redhat/readthedocs.org/readthedocs/core/unresolver.py", line 16, in

@dataclass(slots=True)

TypeError: dataclass() got an unexpected keyword argument 'slots'

because of this problem I can not install local readthedocs. What should I pay attention to to overcome this problem? I need your support on this issue.

@humitos
Copy link
Member

humitos commented Dec 29, 2022

(from the phone)

That's not the official documentation. Follow the instructions from https://dev.readthedocs.io/en/latest/install.html and let us know

@pilgrimage80
Copy link
Author

this problem was solved when I installed python 3.10 version and pip 3.10

thankyou.

@pilgrimage80
Copy link
Author

I don't quite understand what you are saying. right now I have gitlab installed on my redhat 7.9 system and I installed it by following the steps in this link. https://read-the-docs.readthedocs.io/en/latest/install.html it is running smoothly now. can there be a problem in the future because I did it with the installation of the steps in this link? Do you recommend me to follow the steps in the offical doc. right now readthedoc worked locally without any problems. only the integration step with gitlab is left.

@humitos
Copy link
Member

humitos commented Dec 29, 2022

(phone)

Yes, I recommend you to follow the official docs. The one you read are old and outdated. The environment has changed a lot since that docs was written.

@pilgrimage80
Copy link
Author

Readthedocs do you need to install ubuntu specifically as a linux operating system. I currently want to install 7.9 on redhat but I am having trouble installing redhat 7.9 python 3.10. I also understand that readthedosc wants minium 3.10 as phyton.

@humitos humitos added the Support Support question label Jan 3, 2023
@humitos
Copy link
Member

humitos commented Jan 3, 2023

Hi @pilgrimage80! I'm closing this issue. Please, follow the instructions from the official installation guide that uses Docker and let us know if you have any problem. You can read it at https://dev.readthedocs.io/en/latest/install.html

@humitos humitos closed this as completed Jan 3, 2023
@pilgrimage80
Copy link
Author

Honestly, I'm a bit nervous right now. Since I'm installing a non-offical configuration, I'll install it with a docker image first thing tomorrow. I hope I'll be successful. Thanks for the information.

@pilgrimage80
Copy link
Author

Do I need to install docker redhat to run readthedocs docker install ?

@pilgrimage80
Copy link
Author

Install the requirements from common submodule:

pip install -r common/dockerfiles/requirements.txt

When entering the command here, I need to enter it without root in pip venv environment?

@pilgrimage80
Copy link
Author

I installed redhat 8.7 docker and when I enter inv docker.build command in pip venv virtual environment, I get " can't find any collection named task error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Support Support question
Projects
None yet
Development

No branches or pull requests

2 participants