twarc not currently installable
See original GitHub issueWhen getting the version information in setup.py, it tries to import requests
before install_requires
installs it:
# python3 -m pip install twarc==2.0.0
Collecting twarc==2.0.0
Using cached twarc-2.0.0.tar.gz (42 kB)
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-0ngsx4g1/twarc_a54374d52ef34d0e8b5894d5ca06dc13/setup.py'"'"'; __file__='"'"'/tmp/pip-install-0ngsx4g1/twarc_a54374d52ef34d0e8b5894d5ca06dc13/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-31wd15ee
cwd: /tmp/pip-install-0ngsx4g1/twarc_a54374d52ef34d0e8b5894d5ca06dc13/
Complete output (9 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-0ngsx4g1/twarc_a54374d52ef34d0e8b5894d5ca06dc13/setup.py", line 4, in <module>
from twarc.version import version
File "/tmp/pip-install-0ngsx4g1/twarc_a54374d52ef34d0e8b5894d5ca06dc13/twarc/__init__.py", line 2, in <module>
from .client import Twarc
File "/tmp/pip-install-0ngsx4g1/twarc_a54374d52ef34d0e8b5894d5ca06dc13/twarc/client.py", line 10, in <module>
import requests
ModuleNotFoundError: No module named 'requests'
or from head of current master (https://github.com/DocNow/twarc/commit/ba054d9923e4c5471762405195a5cd279521d464)
# python3 setup.py install
Traceback (most recent call last):
File "setup.py", line 4, in <module>
from twarc.version import version
File "/root/twarc/twarc/__init__.py", line 2, in <module>
from .client import Twarc
File "/root/twarc/twarc/client.py", line 10, in <module>
import requests
ModuleNotFoundError: No module named 'requests'
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:5 (4 by maintainers)
Top 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 install twarc (which works). But, now when I type in...
Read more >Running "twarc" from CLI in Windows 7 not recognized #145
When you try to run twarc in Windows 7 by just typing in: twarc You receive the following error: 'twarc' is not recognized...
Read more >twarc2 on Windows 10 - Read the Docs
Install twarc2 with. pip install --upgrade twarc. If you get a warning like. WARNING: The scripts twarc.exe and twarc2.exe are installed in ...
Read more >Install Python · Learn Twarc! - Scholars' Lab Repo
Check your Python version (Mac users) Python should come already installed on MacOS. But we need to make sure you have a version...
Read more >Issue installing twarc2 in conda environment - Stack Overflow
The package is now available through Conda Forge. conda create -n twarc -c conda-forge python=3.10 twarc. This provides v2.12.0 of the PyPI ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Well, it looks good for me so I’m going to close this. Please feel free to reopen if you continue to encounter trouble @dtrodrigues
Thanks for the quick fix.