BLKSerene / Wordless

An Integrated Corpus Tool With Multilingual Support for the Study of Language, Literature, and Translation
GNU General Public License v3.0
686 stars 90 forks source link

OSX version not loading #1

Closed muranava closed 5 years ago

muranava commented 5 years ago

hi thx for this tool, i tried using the OSX version but program does not want to start; sorry i can't get any diagnostic info from Console for some reason; my system is 10.11.6 thx

BLKSerene commented 5 years ago

Hi, did you download Wordless from the link on the homepage? If this does not work for you, please try upgrading your macOS to the lastest version.

muranava commented 5 years ago

hi yes the version is from the download page; unfortunately i am on the max recommended update for my hardware

BLKSerene commented 5 years ago

Could you please right click on Wordless.app, select Show Package Contents, navigate to Contents/MacOS, double-click Wordless, and paste the error mesaage here?

muranava commented 5 years ago

Traceback (most recent call last): File "src/wordless_main.py", line 24, in ImportError: dlopen(/Users/muranava/Downloads/Wordless.app/Contents/MacOS/PyQt5/QtCore.so, 2): Symbol not found: __os_activity_create Referenced from: /Users/muranava/Downloads/Wordless.app/Contents/MacOS/PyQt5/../QtCore (which was built for Mac OS X 10.12) Expected in: /usr/lib/libSystem.B.dylib in /Users/muranava/Downloads/Wordless.app/Contents/MacOS/PyQt5/../QtCore [784] Failed to execute script wordless_main

am installing pyqt5 now!

edit/ looks like my version of OSX cannot install PyQT5 : (

BLKSerene commented 5 years ago

Well, it seems to be the problem about macOS's backward compatibility... Wordless is tested on the latest 10.14. Since I'm on Windows, I'll need some time to test the older versions. The tool is intended to be used out of the box, without the need for users to install Python or any dependency themselves, so I'll manage this. Sorry for the incovenience, I'll come back to you when I have progress on that.

muranava commented 5 years ago

ok thanks!

BLKSerene commented 5 years ago

@muranava Sorry for the late reply. I've tried packaging Wordless on older macOS versions, but had no luck with it.

I've checked that the latest version of Qt (5.12) supports only macOS 10.12-10.14, it may work on macOS 10.11, but since I'm on Windows and it is not officially supported, I'm reluctant to support (and test) it. So you might need a Mac that runs the latest macOS.

But if you do want to try running Wordless on older macOS versions, you could install all the dependencies (there're quite a lot) and run from source:

  1. You need 64-bit Python 3.7 (3.6 should also work, I suppose).

  2. Install all denpendencies: pip3 install beautifulsoup4 cchardet chardet jieba langdetect langid lxml matplotlib nagisa nltk numpy openpyxl pybo git+https://github.com/kmike/pymorphy2.git pymorphy2-dicts-ru pymorphy2-dicts-uk pyqt5 pythainlp python-docx requests sacremoses scipy spacy underthesea wordcloud xlrd

  3. Download models for spaCy:

    python3 -m spacy download de
    python3 -m spacy download en
    python3 -m spacy download el
    python3 -m spacy download es
    python3 -m spacy download fr
    python3 -m spacy download it
    python3 -m spacy download nl
    python3 -m spacy download pt
  4. Download data for NLTK (run the following in IDLE):

    >>> import nltk
    >>> nltk.download('stopwords')
    >>> nltk.download('wordnet')
    >>> nltk.download('averaged_perceptron_tagger')
    >>> nltk.download('averaged_perceptron_tagger_ru')
    >>> nltk.download('perluniprops') 
    >>> nltk.download('punkt') 
  5. Run wordless_main.py

muranava commented 5 years ago

hi thanks tried your instructon but getting this error when trying to run wordless_main.py:


Traceback (most recent call last): File "wordless_main.py", line 24, in from PyQt5.QtCore import * ImportError: dlopen(/usr/local/lib/python3.7/site-packages/PyQt5/QtCore.so, 2): Symbol not found: __os_activity_create Referenced from: /usr/local/lib/python3.7/site-packages/PyQt5/Qt/lib/QtCore.framework/Versions/5/QtCore (which was built for Mac OS X 10.12) Expected in: /usr/lib/libSystem.B.dylib in /usr/local/lib/python3.7/site-packages/PyQt5/Qt/lib/QtCore.framework/Versions/5/QtCore

BLKSerene commented 5 years ago

@muranava Could you please try: pip3 uninstall pyqt5 # Uninstall the latest version pip3 install pyqt5==5.11.3 # PyQt 5.11 supports Qt 5.11 which should support OS X 10.11 (if not, try 5.10.1)

But please note that there's a bug in this older version of Qt (I've reported it and it has been fixed in PyQt 5.12), which would affect some features in Wordless, and that's the reason why I'm reluctant to downgrade.

If you're going to use it on older versions of masOS, you may need to keep using this older version of PyQt, and should not upgrade it.

muranava commented 5 years ago

ok great that worked thanks for your support!

BLKSerene commented 5 years ago

Thanks for your feed back.

I'll just add a note here: v1.1.0 is out, and now you can uninstall the alpha version of spaCy and use the latest release of spaCy (and the latest models).

pip3 uninstall spacy-nightly
pip3 install spacy

python3 -m spacy download de
python3 -m spacy download en
python3 -m spacy download el
python3 -m spacy download es
python3 -m spacy download fr
python3 -m spacy download it
python3 -m spacy download nl
python3 -m spacy download pt
BLKSerene commented 3 years ago

Wordless V1.4.0 now supports OS X 10.11

BLKSerene commented 3 months ago

@muranava Hi, I'm considering bumping the minimum requirement for macOS operating system. Do you still need the support for OS X 10.11?

lin17-1-mGb commented 3 months ago

@muranava Hi, I'm considering bumping the minimum requirement for macOS operating system. Do you still need the support for OS X 10.11?

hi there, no i don't need support for macos 10.11, thanks

muranava commented 3 months ago

hi sorry that was me (alt account) on previous comment - i.e. i don't need support on macos 10.11 thanks