Git Product home page Git Product logo

Comments (6)

Jmennius avatar Jmennius commented on May 30, 2024

Hi @p3trus, are you trying to build python3 project? Is the code open?

from docker-readthedocs.

p3trus avatar p3trus commented on May 30, 2024

Yes I tried to build a python3 project. I will try to create a small testcase to see if It is reproducible. MIt may take me a due to timeconstraints.

from docker-readthedocs.

 avatar commented on May 30, 2024

I can confirm this error.

from docker-readthedocs.

 avatar commented on May 30, 2024

Is there a solution to this?
I think my problem mainly involves the install of a python3 package, pydna, which is problematic.

from docker-readthedocs.

p3trus avatar p3trus commented on May 30, 2024

You can resolve this issue if you base the docker image on one off the readthedocs build images in
https://hub.docker.com/r/readthedocs/build/ .
I think I tried the 3.0 image.

Currently its based on debian:stretch-slim

from docker-readthedocs.

 avatar commented on May 30, 2024

Hi,
I changed

#FROM debian:stretch-slim
FROM readthedocs/build:3.0
docker-compose down
docker-compose up

I set up my project with cpython 3.x (project is python3).

This gives me an error when building:

Traceback (most recent call last):
  File "/app/readthedocs/doc_builder/environments.py", line 150, in run
    env=environment,
  File "/usr/lib/python2.7/subprocess.py", line 390, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Which is a bit weird as it should by python3...

When i use cpython2.x interpreter for env (in the readthedocs admin page)

Collecting pypandoc (from -r requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/71/81/00184643e5a10a456b4118fc12c96780823adb8ed974eb2289f29703b29b/pypandoc-1.4.tar.gz
Collecting pydna (from -r requirements.txt (line 2))
  Using cached https://files.pythonhosted.org/packages/67/f2/552bd375666bb3e2ff4b3ec418ed2d5bbe1140847075d7c2d682435153c8/pydna-2.0.3.zip
    Complete output from command python setup.py egg_info:
    warning: pypandoc module not found, could not convert Markdown to RST
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-ISii8l/pydna/setup.py", line 20, in <module>
        with open("README.md", encoding="utf-8") as f:
    TypeError: 'encoding' is an invalid keyword argument for this function
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-ISii8l/pydna/
You are using pip version 9.0.3, however version 19.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command. 

I added specifically added pypandoc to the the requirements of my project, but still it complains it doesn't find it.
The encoding problem is because it is python3 code and python2 code...

So I'm a bit stuck. What am I doing wrong?

from docker-readthedocs.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.