# Travis tried to build my Python project using rake

**URL:** <https://travis-ci.community/t/travis-tried-to-build-my-python-project-using-rake/1778>\
**Category:** Travis CI Discussions & Feedback\
**Tags:** python\
**Created:** [January 10, 2019, 3:35pm UTC](https://travis-ci.community/t/travis-tried-to-build-my-python-project-using-rake/1778 "2019-01-10T15:35:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gabrik](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/gabrik/32/936_2.png) [@gabrik](https://travis-ci.community/u/gabrik)\
**Post date:** [January 10, 2019, 3:35pm UTC](https://travis-ci.community/t/travis-tried-to-build-my-python-project-using-rake/1778/1 "2019-01-10T15:35:20Z")

</div>

Hi everyone,

I have a pretty strange issue in my last build.  
The project has a clear .travis.yml with language “python” but for some reason, travis tries to build it like it is in Ruby

[https://travis-ci.com/atolab/yaks-python/builds/96914420](https://travis-ci.com/atolab/yaks-python/builds/96914420)

I have found this on github, but pushing another commit did not solved the problem  
[https://github.com/travis-ci/travis-ci/issues/933](https://github.com/travis-ci/travis-ci/issues/933)

Any idea? To me the .travis.yml seems correct…

---

<div class="post-metadata">

**Author:** ![BanzaiMan](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/banzaiman/32/67_2.png) [@BanzaiMan](https://travis-ci.community/u/BanzaiMan)\
**Post date:** [January 10, 2019, 3:57pm UTC](https://travis-ci.community/t/travis-tried-to-build-my-python-project-using-rake/1778/2 "2019-01-10T15:57:32Z")

</div>

Your [`.travis.yml`](https://github.com/atolab/yaks-python/blob/cae788fdcd4491efc72495557cedfe2f121e5ba7/.travis.yml) has an unfortunate leading white space on the first line. This causes the lines after line 3 to be ignored, so there is nothing to indicate that it’s a `language: python` build.

---

<div class="post-metadata">

**Author:** ![gabrik](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/gabrik/32/936_2.png) [@gabrik](https://travis-ci.community/u/gabrik)\
**Post date:** [January 10, 2019, 3:59pm UTC](https://travis-ci.community/t/travis-tried-to-build-my-python-project-using-rake/1778/3 "2019-01-10T15:59:52Z")

</div>

Thanks @BanzaiMan, you are right, I did not noticed that white space.  
Thank you very much!
