Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Python Dates and Times The Time Tracker How the app works

samar shah
samar shah
2,647 Points

why?

who's smart idea was it to change the way the course works at this stage??? had no issues until this part, I am copying this teacher second by second but my app-env/bin/activate returns a syntax error

1 Answer

Travis Alstrand
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Travis Alstrand
Data Analysis Techdegree Graduate 45,984 Points

Hey there samar shah

I don't see a difference in approach in this video. I would make sure of two things when attempting to run your command.

  1. Ensure you have changed directories in your terminal cd <filepath> to the root of this project where your environment is a direct child.

  2. Ensure you're typing the name of your environment correctly. In your post above I see

    my app-env/bin/activate
    

    In the video, Rachel does not have a space between "my" and "app". I wouldn't recommend adding a space to a folder, file or environment name either as it can cause some issues in the terminal on some OSs. If you have put in a space when creating your env, you can delete it and create a new one if you haven't already gotten a lot of work done.

Otherwise, if you're on Mac and I believe Linux, you'll need to use an escape character to tell the terminal to read that space literally.

source my\ app-env/bin/activate

That forward slash should tell the terminal to take whatever character is next (in this case, the space) literally.

Currently, without it, it's probably thinking that my is some kind of command and throwing an error for you.

Also note, on Windows, the word source isn't necessary, that's why Rachel isn't using it here. If you're on Mac, you'll need that in there.

I hope this helps.