Sublime Forum

The term sublime is not recognized as the name of a cmdlet on Scrapy/Python

#1

Hello,

I am trying to open Sublime Text 3 on a Scrapy project in Python. I am on Windows 10 and I have set the PATH variables well as I have followed some answers from the forum, also I have set up Sublime to build system with Python.

I know that I am doing something wrong but I dont know what since I am new on Python.

This is the code I am trying to work on:

PS C:\Users\esmer\AppData\Local\Programs\Python\Python36> scrapy
Scrapy 1.4.0 - no active project

Usage:
scrapy [options] [args]

Available commands:
bench Run quick benchmark test
fetch Fetch a URL using the Scrapy downloader
genspider Generate new spider using pre-defined templates
runspider Run a self-contained spider (without creating a project)
settings Get settings values
shell Interactive scraping console
startproject Create new project
version Print Scrapy version
view Open URL in browser, as seen by Scrapy

[ more ] More commands available when run from project directory

Use “scrapy -h” to see more info about a command
C:\Users\esmer\AppData\Local\Programs\Python\Python36/testproject

PS C:\Users\esmer\AppData\Local\Programs\Python\Python36> sublime newproject
sublime : The term ‘sublime’ is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1

  • sublime text
  •   + CategoryInfo          : ObjectNotFound: (sublime:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    
    

Any clue anyone?
Much appriciated if anyone can help. Thank you!

0 Likes

#2

Might want to try subl which is the command line application to start Sublime Text. You can also use sublime_text which is the primary executable.

0 Likes