pewresearch / pewanalytics Goto Github PK
View Code? Open in Web Editor NEWText and statistics utilities from Pew Research Center
License: GNU General Public License v2.0
Text and statistics utilities from Pew Research Center
License: GNU General Public License v2.0
ModuleNotFoundError: No module named 'pewanalytics.text'
It is ok to "import pewanalytics"
but not ok to "from pewanalytics.text.topics import TopicModel"
I followed the instruction here:
https://pewresearch.github.io/pewanalytics/text.html#date-extraction
Below is the error I receive when trying to install the module. I tried installing both ways and the same error still persists. Please help.
ERROR: Command errored out with exit status 1:
command: 'c:\users\kushb\appdata\local\programs\python\python38-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\kushb\AppData\Local\Temp\pip-install-t88f8q1q\polyglot\setup.py'"'"'; file='"'"'C:\Users\kushb\AppData\Local\Temp\pip-install-t88f8q1q\polyglot\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\kushb\AppData\Local\Temp\pip-pip-egg-info-ihmmyr6n'
cwd: C:\Users\kushb\AppData\Local\Temp\pip-install-t88f8q1q\polyglot
Complete output (7 lines):
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\kushb\AppData\Local\Temp\pip-install-t88f8q1q\polyglot\setup.py", line 15, in
readme = readme_file.read()
File "c:\users\kushb\appdata\local\programs\python\python38-32\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 0x81 in position 4941: character maps to
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output
Having problems getting this installed via either method, v1.0.0's setup.py errors, and the downloaded version of 1.0.1 has those errors corrected but the same version number, a folder is made but no tools are installed.
running install
running build
running build_py
running install_lib
running install_egg_info
Writing /usr/local/lib/python3.8/dist-packages/pewanalytics-1.0.1.egg-info
Hi, your project pewanalytics(commit id: a300191) requires "fuzzywuzzy==0.17.0" in its dependency. After analyzing the source code, we found that the following versions of fuzzywuzzy can also be suitable, i.e., fuzzywuzzy 0.8.0, 0.8.1, 0.8.2, 0.9.0, 0.10.0, 0.11.0, 0.11.1, 0.12.0, 0.13.0, 0.14.0, 0.15.0, 0.15.1, 0.16.0, since all functions that you directly (2 APIs: fuzzywuzzy.fuzz.partial_ratio, fuzzywuzzy.fuzz.ratio) or indirectly (propagate to 7 fuzzywuzzy's internal APIs and 4 outsider APIs) used from the package have not been changed in these versions, thus not affecting your usage.
Therefore, we believe that it is quite safe to loose your dependency on fuzzywuzzy from "fuzzywuzzy==0.17.0" to "fuzzywuzzy>=0.8.0,<=0.17.0". This will improve the applicability of pewanalytics and reduce the possibility of any further dependency conflict with other projects.
May I pull a request to further loosen the dependency on fuzzywuzzy?
By the way, could you please tell us whether such an automatic tool for dependency analysis may be potentially helpful for maintaining dependencies easier during your development?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.