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

Installation through pip or from source both fail #9

Open
lucian303 opened this issue Oct 29, 2020 · 7 comments
Open

Installation through pip or from source both fail #9

lucian303 opened this issue Oct 29, 2020 · 7 comments

Comments

@lucian303
Copy link

Tried installing this on a clean Ubuntu 20.04 system through pip and from source without success. By randomly installing it over and over and trying to install from source, I somehow did get buzz working but after uninstalling, trying to come up with a reproducible installation process, I have not been able to get it installed again through pip or source. Also doesn't work on macos 10.15.7 if that makes a difference.

Python 3.8.5
pip 20.2.4 from /usr/local/lib/python3.8/dist-packages/pip (python 3.8)

PIP Error:

⇒  pip3 install buzz
Collecting buzz
  Using cached buzz-3.1.5.tar.gz (66 kB)
Requirement already satisfied: nltk in /usr/local/lib/python3.8/dist-packages/nltk-3.5-py3.8.egg (from buzz) (3.5)
Requirement already satisfied: buzzepar>=0.1.2 in /usr/local/lib/python3.8/dist-packages/buzzepar-0.1.2-py3.8-linux-x86_64.egg (from buzz) (0.1.2)
Collecting joblib==0.14.1
  Using cached joblib-0.14.1-py2.py3-none-any.whl (294 kB)
Collecting scipy==1.4.1
  Using cached scipy-1.4.1-cp38-cp38-manylinux1_x86_64.whl (26.0 MB)
Collecting cython==0.29.17
  Using cached Cython-0.29.17-cp38-cp38-manylinux1_x86_64.whl (2.0 MB)
Requirement already satisfied: depgrep>=0.1.3 in /usr/local/lib/python3.8/dist-packages/depgrep-0.1.3-py3.8.egg (from buzz) (0.1.3)
Collecting scikit-learn==0.21.2
  Using cached scikit-learn-0.21.2.tar.gz (12.2 MB)
Collecting colorama==0.4.1
  Using cached colorama-0.4.1-py2.py3-none-any.whl (15 kB)
Collecting numpy==1.17.4
  Using cached numpy-1.17.4-cp38-cp38-manylinux1_x86_64.whl (20.5 MB)
Collecting matplotlib==3.2.1
  Using cached matplotlib-3.2.1-cp38-cp38-manylinux1_x86_64.whl (12.4 MB)
ERROR: Could not find a version that satisfies the requirement tensorflow==2.1.0 (from buzz) (from versions: 2.2.0rc1, 2.2.0rc2, 2.2.0rc3, 2.2.0rc4, 2.2.0, 2.2.1, 2.3.0rc0, 2.3.0rc1, 2.3.0rc2, 2.3.0, 2.3.1)
ERROR: No matching distribution found for tensorflow==2.1.0 (from buzz)

From source Error:

⇒  python3 setup.py install
running install
running bdist_egg
running egg_info
writing buzz.egg-info/PKG-INFO
writing dependency_links to buzz.egg-info/dependency_links.txt
writing requirements to buzz.egg-info/requires.txt
writing top-level names to buzz.egg-info/top_level.txt
reading manifest file 'buzz.egg-info/SOURCES.txt'
writing manifest file 'buzz.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/buzz
copying build/lib/buzz/conc.py -> build/bdist.linux-x86_64/egg/buzz
copying build/lib/buzz/utils.py -> build/bdist.linux-x86_64/egg/buzz
copying build/lib/buzz/constants.py -> build/bdist.linux-x86_64/egg/buzz
copying build/lib/buzz/dashview.py -> build/bdist.linux-x86_64/egg/buzz
copying build/lib/buzz/slice.py -> build/bdist.linux-x86_64/egg/buzz
copying build/lib/buzz/html.py -> build/bdist.linux-x86_64/egg/buzz
copying build/lib/buzz/multi.py -> build/bdist.linux-x86_64/egg/buzz
copying build/lib/buzz/topology.py -> build/bdist.linux-x86_64/egg/buzz
copying build/lib/buzz/__init__.py -> build/bdist.linux-x86_64/egg/buzz
copying build/lib/buzz/plot.py -> build/bdist.linux-x86_64/egg/buzz
copying build/lib/buzz/parse.py -> build/bdist.linux-x86_64/egg/buzz
copying build/lib/buzz/contents.py -> build/bdist.linux-x86_64/egg/buzz
copying build/lib/buzz/corpus.py -> build/bdist.linux-x86_64/egg/buzz
copying build/lib/buzz/views.py -> build/bdist.linux-x86_64/egg/buzz
copying build/lib/buzz/tabview.py -> build/bdist.linux-x86_64/egg/buzz
copying build/lib/buzz/search.py -> build/bdist.linux-x86_64/egg/buzz
copying build/lib/buzz/table.py -> build/bdist.linux-x86_64/egg/buzz
copying build/lib/buzz/tfidf.py -> build/bdist.linux-x86_64/egg/buzz
copying build/lib/buzz/layouts.py -> build/bdist.linux-x86_64/egg/buzz
copying build/lib/buzz/dataset.py -> build/bdist.linux-x86_64/egg/buzz
copying build/lib/buzz/exceptions.py -> build/bdist.linux-x86_64/egg/buzz
copying build/lib/buzz/formality.py -> build/bdist.linux-x86_64/egg/buzz
copying build/lib/buzz/file.py -> build/bdist.linux-x86_64/egg/buzz
byte-compiling build/bdist.linux-x86_64/egg/buzz/conc.py to conc.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/buzz/utils.py to utils.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/buzz/constants.py to constants.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/buzz/dashview.py to dashview.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/buzz/slice.py to slice.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/buzz/html.py to html.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/buzz/multi.py to multi.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/buzz/topology.py to topology.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/buzz/__init__.py to __init__.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/buzz/plot.py to plot.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/buzz/parse.py to parse.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/buzz/contents.py to contents.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/buzz/corpus.py to corpus.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/buzz/views.py to views.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/buzz/tabview.py to tabview.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/buzz/search.py to search.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/buzz/table.py to table.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/buzz/tfidf.py to tfidf.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/buzz/layouts.py to layouts.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/buzz/dataset.py to dataset.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/buzz/exceptions.py to exceptions.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/buzz/formality.py to formality.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/buzz/file.py to file.cpython-38.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
installing scripts to build/bdist.linux-x86_64/egg/EGG-INFO/scripts
running install_scripts
running build_scripts
creating build/bdist.linux-x86_64/egg/EGG-INFO/scripts
copying build/scripts-3.8/parse -> build/bdist.linux-x86_64/egg/EGG-INFO/scripts
changing mode of build/bdist.linux-x86_64/egg/EGG-INFO/scripts/parse to 755
copying buzz.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying buzz.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying buzz.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying buzz.egg-info/not-zip-safe -> build/bdist.linux-x86_64/egg/EGG-INFO
copying buzz.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying buzz.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
creating 'dist/buzz-3.1.5-py3.8.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing buzz-3.1.5-py3.8.egg
creating /usr/local/lib/python3.8/dist-packages/buzz-3.1.5-py3.8.egg
Extracting buzz-3.1.5-py3.8.egg to /usr/local/lib/python3.8/dist-packages
Adding buzz 3.1.5 to easy-install.pth file
Installing parse script to /usr/local/bin

Installed /usr/local/lib/python3.8/dist-packages/buzz-3.1.5-py3.8.egg
Processing dependencies for buzz==3.1.5
error: scipy 1.5.2 is installed but scipy==1.4.1 is required by {'tensorflow'}
@interrogator
Copy link
Owner

Hi,
The bug is something I've seen before, it's an issue with tensorflow versioning. I believe this is fixed in master branch. I haven't done a pip release in a while, however. I will do so as soon as possible and update this with the fixed dependencies.

Try installing from git master branch:

pip install git+https://github.com/interrogator/buzz

Let me know how that goes.

@interrogator
Copy link
Owner

I might also add, some docs and stuff have become out of date. I'll try to get things in order over the weekend. This is due to the fact that this module hasn't had many external users, mostly I just use it in my own research...

@lucian303
Copy link
Author

Installing from git master works @interrogator. That's great. We are considering using this to manage our corpora though we're still evaluating so any updated docs would be really great. Currently running into spacy's 1 million character limit, but I'm sure that can be fixed by changing settings in spacy.

@interrogator
Copy link
Owner

interrogator commented Oct 29, 2020

I just put out a fresh release. On ubuntu pip install works from a fresh virtual environment:

virtualenv -p /usr/bin/python3.7 test
source test/bin/activate
pip install buzz==3.1.8

However I believe some things in the docs are no longer working, and some important things are missing...will update you here when that stuff is done.

The main recent change is a new main class, Collection, which manages all formats of the same corpus...i.e. the unparsed, the parsed, source PDFs, whatever. it's available in buzz/corpus.py. Will aim to document this, it's the key new feature. However, the Corpus class should still work alright. Hopefully you can parse corpora out of the box with Corpus('path/to/txt').parse()...

@lucian303
Copy link
Author

lucian303 commented Nov 18, 2020

Nice @interrogator. Does it not work with python 3.9? It was working with 3.8 for me but in 3.9, I get the below error through pip's repo and through pip+git:

ERROR: Could not find a version that satisfies the requirement tensorflow==2.3.1 (from buzz==3.1.8) (from versions: none)
ERROR: No matching distribution found for tensorflow==2.3.1 (from buzz==3.1.8)

@lucian303
Copy link
Author

On the latest Debian buster, after running:

apt-get update && apt-get install -y python3 python3-pip

I'm trying all of these (one at a time) but they all end up erroring out with the error above:

pip3 install buzz
pip3 install buzz==3.1.8
pip3 install git+https://github.com/interrogator/buzz

Error:

  Could not find a version that satisfies the requirement tensorflow==2.3.1 (from buzz==3.1.8) (from versions: 1.13.0rc1, 1.13.0rc2, 1.13.1, 1.13.2, 1.14.0rc0, 1.14.0rc1, 1.14.0, 2.0.0a0, 2.0.0b0, 2.0.0b1)
No matching distribution found for tensorflow==2.3.1 (from buzz==3.1.8)

I will look to see if I can resolve this conflict.

@lucian303
Copy link
Author

I've made further progress with this and was able to install on Ubuntu 20.04 but Debian buster still doesn't work despite the same python and pip versions. I assume it's a python/pip issue as pip seems to be pretty bad at managing deps and seems to have major issues with reproducible installs.

FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
    apt-get install -y \
        default-jdk \
        git \
        python3 \
        python3-pip \
        wget && \
    pip3 install buzz==3.1.8

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

2 participants