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

Error: no such option: --source & [Errno 2] No such file or directory: 'target/doc/build' #30

Open
tyralla opened this issue Nov 15, 2017 · 7 comments

Comments

@tyralla
Copy link

tyralla commented Nov 15, 2017

At first, thank you very much for providing this handy tool!

Just recently (yesterday evening and this morning), I got the mentioned error messages. The related commands were:

if [ $TRAVIS_PYTHON_VERSION = "2.7" ] ; then travis-sphinx --source=hydpy/docs build; fi
if [ $TRAVIS_PYTHON_VERSION = "2.7" ] ; then python modify_html.py; fi

See the following link for more information: https://github.com/tyralla/hydpy/blob/develop/.travis.yml

Maybe this problem is related with issue #28?

Please let me know if further information is required.

Best regards,
Christoph.

@lmignon
Copy link
Collaborator

lmignon commented Nov 15, 2017

@tyralla The source parameter is for the build command.... Therefore you must call travis-sphinx as

travis-sphinx build --source=hydpy/docs

@Syntaf
Copy link
Owner

Syntaf commented Nov 15, 2017

Looks like i'm able to reproduce this error, investigating right now.

EDIT: Nevermind, seems my build ran fine and it was only a small error on my side.

Can you confirm that your build command is running and completing? One way you'd receive that error is if the build command failed

@lmignon
Copy link
Collaborator

lmignon commented Nov 15, 2017

@Syntaf The --source parameter must be put after the command... not before. The order matters

travis-sphinx build --source=hydpy/docs

@Syntaf
Copy link
Owner

Syntaf commented Nov 15, 2017

@lmignon Whoops, you are correct.

I guess this brings up an unfortunate consequence of travis-sphinx 2.0.0 in that we're breaking legacy code. I'm going to create an issue to see if we can still support source coming before build, and simply passing it along into build if it's used beforehand

@Syntaf
Copy link
Owner

Syntaf commented Nov 15, 2017

#31

@tyralla
Copy link
Author

tyralla commented Nov 15, 2017

For some reasons the order --source=hydpy/docs build did work before.

However, now (with build --source=hydpy/docs) it works again. Thank you for the quick answer!

Besides: At least an additional problem lay in my script modify_html.py. It still assumed the html output path to be target/doc/build instead of doc/build.

@tyralla tyralla closed this as completed Nov 15, 2017
@tyralla tyralla reopened this Nov 15, 2017
@Syntaf
Copy link
Owner

Syntaf commented Nov 15, 2017

@tyralla The recent major version change no longer allows --source to appear before build, but #31 will add that back for now.

Thanks for the issue report!

I will be leaving this open for a bit as the legacy source option is likely broken on some other repos right now :(

nocarryr added a commit to nocarryr/pyrtlsdr that referenced this issue May 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants