question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Running "twarc" from CLI in Windows 7 not recognized

See original GitHub issue

When you try to run twarc in Windows 7 by just typing in:

twarc

You receive the following error:

'twarc' is not recognized as an internal or external command,
operable program or batch file.

This can be fixed by using the following command:

python c:\Python27\Scripts\twarc

This issue remains even if you add c:\Python27\Scripts to the system PATH.

I am able to work around this issue by coping the twarc.py file to c:\Python27\Scripts. I believe that the compiled binary will not run on Windows 7 making running the script a huge pain. Is there anyway to ensure the .py file still gets copied to the Scripts folder for Windows OS?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

2reactions
edsucommented, Feb 3, 2017

I very much appreciate all the help @yshussain @ruebot & @hugovk!

1reaction
edsucommented, Feb 1, 2017

I would happily merge that PR if you have the time to do it. I can get to it at some point in the next few days if not.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Twarc not recognized in the command line - Twitter Developers
Hi, I have installed twarc in the command prompt with the command: pip ... type in the command “twarc configure”, it returns: "...
Read more >
twarc1 (en) - twarc
twarc is a command line tool and Python library for archiving Twitter JSON data. Each tweet is represented as a JSON object that...
Read more >
twarc - PyPI
See the twarc documentation for running commands: twarc2 and twarc1 for using the v1.1 API ... It is not built as a general...
Read more >
Python installing twarc using pip - Stack Overflow
Twarc got installed into pip3 but is not working properly when I try to run a python file because perhaps my file is...
Read more >
A command is not recognized as an internal or external ...
It can even happen with the RUN prompt, which is invoked using the WIN + R shortcut. So go to C:\Windows\System32\ and see...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found