MatrixManAtYrService edited a comment on pull request #20567:
URL: https://github.com/apache/airflow/pull/20567#issuecomment-1003417611


   Thanks for the tips @potiuk
   
   When I do that (on Ubuntu) I get some errors:
   ```
   #################### Running docs building ####################
   
   apache-airflow : Building documentation
   apache-airflow : Running sphinx. The output is hidden until an error occurs.
   apache-airflow : Finished docs building with errors
   #################### Output for documentation build apache-airflow 
####################
   
   apache-airflow : 
################################################################################
   apache-airflow  [01mRunning Sphinx v3.4.3[39;49;00m
   apache-airflow
   apache-airflow  Traceback (most recent call last):
   apache-airflow    File 
"/usr/local/lib/python3.8/site-packages/sphinx/registry.py", line 417, in 
load_extension
   apache-airflow      mod = import_module(extname)
   apache-airflow    File "/usr/local/lib/python3.8/importlib/__init__.py", 
line 127, in import_module
   apache-airflow      return _bootstrap._gcd_import(name, package, level)
   apache-airflow    File "<frozen importlib._bootstrap>", line 1014, in 
_gcd_import
   apache-airflow    File "<frozen importlib._bootstrap>", line 991, in 
_find_and_load
   apache-airflow    File "<frozen importlib._bootstrap>", line 975, in 
_find_and_load_unlocked
   apache-airflow    File "<frozen importlib._bootstrap>", line 671, in 
_load_unlocked
   apache-airflow    File "<frozen importlib._bootstrap_external>", line 843, 
in exec_module
   apache-airflow    File "<frozen importlib._bootstrap>", line 219, in 
_call_with_frames_removed
   apache-airflow    File "/opt/airflow/docs/exts/exampleinclude.py", line 31, 
in <module>
   apache-airflow      from sphinx.ext.viewcode import viewcode_anchor
   apache-airflow  ImportError: cannot import name 'viewcode_anchor' from 
'sphinx.ext.viewcode' 
(/usr/local/lib/python3.8/site-packages/sphinx/ext/viewcode.py)
   apache-airflow
   apache-airflow The above exception was the direct cause of the following 
exception:
   apache-airflow
   apache-airflow Traceback (most recent call last):
   apache-airflow   File 
"/usr/local/lib/python3.8/site-packages/sphinx/cmd/build.py", line 276, in 
build_main
   apache-airflow     app = Sphinx(args.sourcedir, args.confdir, args.outputdir,
   apache-airflow   File 
"/usr/local/lib/python3.8/site-packages/sphinx/application.py", line 245, in 
__init__
   apache-airflow     self.setup_extension(extension)
   apache-airflow   File 
"/usr/local/lib/python3.8/site-packages/sphinx/application.py", line 402, in 
setup_extension
   apache-airflow     self.registry.load_extension(self, extname)
   apache-airflow   File 
"/usr/local/lib/python3.8/site-packages/sphinx/registry.py", line 420, in 
load_extension
   apache-airflow     raise ExtensionError(__('Could not import extension %s') 
% extname,
   apache-airflow sphinx.errors.ExtensionError: Could not import extension 
exampleinclude (exception: cannot import name
   'viewcode_anchor' from 'sphinx.ext.viewcode' 
(/usr/local/lib/python3.8/site-packages/sphinx/ext/viewcode.py))
   apache-airflow
   apache-airflow  [91mExtension error:[39;49;00m
   apache-airflow  Could not import extension exampleinclude (exception: cannot 
import name 'viewcode_anchor' from 'sphinx.ext.viewcode'
   (/usr/local/lib/python3.8/site-packages/sphinx/ext/viewcode.py))
   ```
   After which I can run the server, but I see a 404 error when I navigate here 
http://localhost:8000/docs/apache-airflow/latest/index.html
   
   It seems to work OK on my Macbook though, so I'll just use that for now 
(though I'm happy to help toubleshoot the above error if you'd like).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to