Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install -r requirements.txt #3

Open
Jyothsna2795 opened this issue Nov 28, 2019 · 4 comments
Open

pip install -r requirements.txt #3

Jyothsna2795 opened this issue Nov 28, 2019 · 4 comments

Comments

@Jyothsna2795
Copy link

I am encountering an error while installing requirements.txt
Am using python 3 version
Please help and this is the error

$ pip install -r requirements.txt
Collecting preprocessor
Using cached https://files.pythonhosted.org/packages/96/ad/d9f4ffb9bb97d1cb5bcb876b7932571d4dbaa3eff1701ad45d367f0ea27b/preprocessor-1.1.3.tar.gz
Collecting pandas
Using cached https://files.pythonhosted.org/packages/02/d0/1e8e60e61e748338e3a40e42f5dfeee63ccdecfc4f0894122b890bfb009a/pandas-0.25.3-cp37-cp37m-win_amd64.whl
Requirement already satisfied: xlsxwriter in c:\users\jyo27\appdata\local\programs\python\python37\lib\site-packages (from -r requirements.txt (line 3)) (1.2.6)
Collecting twython
Using cached https://files.pythonhosted.org/packages/8c/2b/c0883f05b03a8e87787d56395d6c89515fe7e0bf80abd3778b6bb3a6873f/twython-3.7.0.tar.gz
Collecting nltk
Using cached https://files.pythonhosted.org/packages/f6/1d/d925cfb4f324ede997f6d47bea4d9babba51b49e87a767c170b77005889d/nltk-3.4.5.zip
Collecting tweet-preprocessor
Using cached https://files.pythonhosted.org/packages/2a/f8/810ec35c31cca89bc4f1a02c14b042b9ec6c19dd21f7ef1876874ef069a6/tweet-preprocessor-0.5.0.tar.gz
ERROR: Command errored out with exit status 1:
command: 'c:\users\jyo27\appdata\local\programs\python\python37\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\jyo27\AppData\Local\Temp\pip-install-p5zij9h7\tweet-preprocessor\setup.py'"'"'; file='"'"'C:\Users\jyo27\AppData\Local\Temp\pip-install-p5zij9h7\tweet-preprocessor\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 'C:\Users\jyo27\AppData\Local\Temp\pip-install-p5zij9h7\tweet-preprocessor\pip-egg-info'
cwd: C:\Users\jyo27\AppData\Local\Temp\pip-install-p5zij9h7\tweet-preprocessor
Complete output (7 lines):
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\jyo27\AppData\Local\Temp\pip-install-p5zij9h7\tweet-preprocessor\setup.py", line 6, in
long_description = f.read()
File "c:\users\jyo27\appdata\local\programs\python\python37\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 652: character maps to
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

@motazsaad
Copy link
Owner

try to use Unicode characters in Windows command line. Please check
https://stackoverflow.com/questions/388490/how-to-use-unicode-characters-in-windows-command-line
Hope this helps

@Jyothsna2795
Copy link
Author

Jyothsna2795 commented Dec 3, 2019 via email

@Jyothsna2795
Copy link
Author

Jyothsna2795 commented Dec 4, 2019 via email

@gordeli
Copy link

gordeli commented Aug 5, 2022

Hi Motazsaad, Got Another error.....please help with this Following error occurred while running json2text.py python json2text.py -i C:\Users\jyo27\my_work\tweets-collector -o C:\Users\jyo27\my_work\tweets-collector\tweet_output extract tweets from C:\Users\jyo27\my_work\tweets-collector\out.json tweets in json file: 15 tweets Traceback (most recent call last): File "json2text.py", line 105, in extract_tweets_from_json_files(json_dir, out_dir) File "json2text.py", line 93, in extract_tweets_from_json_files extract_tweets_from_json(json_reader, text_writer) File "json2text.py", line 46, in extract_tweets_from_json text = tweet_cleaner.clean_tweet(text) File "C:\Users\jyo27\my_work\tweets-collector\tweet_cleaner.py", line 135, in clean_tweet tweet_processor.set_options(tweet_processor.OPT.URL, AttributeError: module 'preprocessor' has no attribute 'set_options' Regards Jyothsna

On Tue, Dec 3, 2019 at 10:52 AM Jyothsna jyo @.> wrote: Hi Motaz saad, Thanks for help. but i sorted that issue using this repository. https://github.com/rrmina/preprocessor On Fri, 29 Nov, 2019, 5:59 PM Motaz Saad, @.> wrote: > try to use Unicode characters in Windows command line. Please check > > https://stackoverflow.com/questions/388490/how-to-use-unicode-characters-in-windows-command-line > Hope this helps > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <#3?email_source=notifications&email_token=AM32FV5XAOLPQXSHNCWKBDTQWEDKVA5CNFSM4JSPOMUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFOX2FA#issuecomment-559774996>, > or unsubscribe > https://github.com/notifications/unsubscribe-auth/AM32FV2VLJV3MV6DDKOL2Z3QWEDKVANCNFSM4JSPOMUA > . >

it happens because of the conflict between preprocessor an tweet-preprocessor libraries. the preprocessor module from the preprocessor library does not have the set_options attribute. Uninstalling the preprocessor library could be a solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants