Comments (2)
I installed it from here:
pip install https://opensource.apple.com/source/python_modules/python_modules-21/bonjour-py/bonjour-py-0.3.tar.gz
You may need to install swig
first: OS X:
brew install swig
or Linux:
sudo apt-get install swig
If you can a strange XCode warning, see here for the solution: nodejs/node-gyp#569
On Ubuntu I got an error about a missing dns_sd.h
file when installing bonjour, but this was fixed with
sudo apt-get install libavahi-compat-libdnssd-dev
(see https://stackoverflow.com/questions/19585117/error-dns-sd-h-no-such-file-or-directory)
Hmm, seems this project needs more work to run on Linux, as it seems OS X only at present:
You're not running on MacOS X, and don't use GNUstep
I don't know how to build PyObjC on such a platform.
Please read the ReadMe.
ObjC runtime not found
The original requirements.txt
is frozen at specific versions, but some of these seem to be incompatible with each other.
Here's a requirements.txt
that allowed me to install and run this project on Ubuntu, with all the OSX specific libraries removed:
altgraph
backports-abc
bdist-mpkg
beautifulsoup4
boto
breadability
bz2file
certifi
chardet
Cython
dill
docopt
funcsigs
gensim
joblib
lxml
macholib
matplotlib
mock
modulegraph
nltk
nose
numpy
pandas
pbr
protobuf
py2app
pyparsing
python-dateutil
pytz
requests
scikit-learn
scipy
singledispatch
six
smart-open
sumy
tensorflow
tornado
ujson
virtualenv
xattr
zope.interface
You will also need to modify the sys.path.insert
in each file that it occurs (change it to the current working directory) and also remove the Dev.
prefix before some import
statements.
Now to try and acquire the data ...
from scientific-paper-summarisation.
Thanks @philgooch
For potential readers passing by, I was able to correct the sys.path.insert
and Dev.
issues with the following one-liner:
find . -type f -exec sed -i 's+/Users/edcollins/Documents/CS/4thYearProject/Code+/path/to/current/working/directory+g' {} + && find . -type f -exec sed -i 's+from\ Dev\.+from\ +g' {} +
(Just in case it needs to be said, replace /path/to/current/working/directory
with your current working directory before running this command, escaping any special character with \
)
Then there was still one last line in ./Word2Vec/paper_word2vec.py
that needed to have the line from Dev import DataTools
changed to import DataTools
.
Now on to try out this project!
from scientific-paper-summarisation.
Related Issues (6)
- acquire_data.py does not work HOT 1
- Thanks for your excellent works. Would you mind provide the sum dataset directly that we could download manually? I'd be appreciate if you could give any help. Thanks~ HOT 3
- Python 3? HOT 1
- Issue downloading Highlights in the XML
- Papers_With_Section_Titles 404 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scientific-paper-summarisation.