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

module not building #1

Open
liamdonnellymusic opened this issue Feb 19, 2019 · 0 comments
Open

module not building #1

liamdonnellymusic opened this issue Feb 19, 2019 · 0 comments

Comments

@liamdonnellymusic
Copy link

liamdonnellymusic commented Feb 19, 2019

Hey,

I'm doing poetry analysis in python for a school project and this repo looks like a fantastic resource. However I wasn't able to get the module to build. the First error was

Symbol not found for _assert, but the real error was that it Expected a flat name space, which I've found has to do with compiling C++ on OS X.

https://stackoverflow.com/questions/35006614/what-does-symbol-not-found-expected-in-flat-namespace-actually-mean

I was hoping you could tell me if the module is still building for you, and if so what environment you're running in so I can see if I can recreate it.

If it gives you any insight (it may not), I tried to recompile some of the libs in cytoolz, namely because of this error, and I ran into this.

Traceback (most recent call last): File "example.py", line 5, in <module> import poetics File "/Users/ldonnelly/git/poetics/poetics/__init__.py", line 1, in <module> from poetics.poetics import process_poems, create_poem File "/Users/ldonnelly/git/poetics/poetics/poetics.py", line 5, in <module> from poetics import config as config File "/Users/ldonnelly/git/poetics/poetics/config.py", line 4, in <module> import enchant ModuleNotFoundError: No module named 'enchant' ldonnelly ~/git/poetics (master) $ workon python36 (python36) ldonnelly ~/git/poetics (master) $ python3 example.py Traceback (most recent call last): File "example.py", line 5, in <module> import poetics File "/Users/ldonnelly/git/poetics/poetics/__init__.py", line 1, in <module> from poetics.poetics import process_poems, create_poem File "/Users/ldonnelly/git/poetics/poetics/poetics.py", line 5, in <module> from poetics import config as config File "/Users/ldonnelly/git/poetics/poetics/config.py", line 5, in <module> import spacy File "/Users/ldonnelly/.virtualenvs/python36/lib/python3.6/site-packages/spacy/__init__.py", line 8, in <module> from thinc.neural.util import prefer_gpu, require_gpu File "/Users/ldonnelly/.virtualenvs/python36/lib/python3.6/site-packages/thinc/neural/__init__.py", line 1, in <module> from ._classes.model import Model File "/Users/ldonnelly/.virtualenvs/python36/lib/python3.6/site-packages/thinc/neural/_classes/model.py", line 12, in <module> from ..train import Trainer File "/Users/ldonnelly/.virtualenvs/python36/lib/python3.6/site-packages/thinc/neural/train.py", line 3, in <module> from .optimizers import Adam, SGD, linear_decay File "optimizers.pyx", line 13, in init thinc.neural.optimizers File "ops.pyx", line 18, in init thinc.neural.ops ImportError: cannot import name concat

It'd mean the world if you got back to me about this! Thanks.

Edit:

Okay making a little bit of headway with this. Switched to Python26 and first got an error

File "example.py", line 5, in <module> import poetics File "/Users/ldonnelly/git/poetics/poetics/__init__.py", line 1, in <module> from poetics.poetics import process_poems, create_poem File "/Users/ldonnelly/git/poetics/poetics/poetics.py", line 1, in <module> import logging File "/Users/ldonnelly/git/poetics/poetics/logging.py", line 63 SyntaxError: Non-ASCII character '\xcc' in file /Users/ldonnelly/git/poetics/poetics/logging.py on line 63, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

which I fixed by adding this encoding line at the top of logging.py # - *- coding: utf- 8 - *-

And now I'm at this error:

Traceback (most recent call last): File "example.py", line 5, in <module> import poetics File "/Users/ldonnelly/git/poetics/poetics/__init__.py", line 1, in <module> from poetics.poetics import process_poems, create_poem File "/Users/ldonnelly/git/poetics/poetics/poetics.py", line 1, in <module> import logging File "/Users/ldonnelly/git/poetics/poetics/logging.py", line 71, in <module> def tags_with_text(token_tuples, line_num=None, above=False, logger=logging.info()): AttributeError: 'module' object has no attribute 'info'

Will continue to work on this and add edits as I go along.

Thanks again!

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

1 participant