"can't set attribute" error
See original GitHub issueI’ve install iepy on an arch linux machine in a fresh conda environment. There are no problems during installation with pip install iepy
However, if I try to run iepy there is an error message
Traceback (most recent call last):
File "/home/donnut/anaconda/envs/iepy/bin/iepy", line 7, in <module>
from iepy.instantiation.command_line import execute_from_command_line
File "/home/donnut/anaconda/envs/iepy/lib/python3.5/site-packages/iepy/instantiation/command_line.py", line 20, in <module>
import nltk.data
File "/home/donnut/anaconda/envs/iepy/lib/python3.5/site-packages/nltk/__init__.py", line 117, in <module>
from nltk.align import *
File "/home/donnut/anaconda/envs/iepy/lib/python3.5/site-packages/nltk/align/__init__.py", line 15, in <module>
from nltk.align.ibm1 import IBMModel1
File "/home/donnut/anaconda/envs/iepy/lib/python3.5/site-packages/nltk/align/ibm1.py", line 18, in <module>
from nltk.corpus import comtrans
File "/home/donnut/anaconda/envs/iepy/lib/python3.5/site-packages/nltk/corpus/__init__.py", line 64, in <module>
from nltk.tokenize import RegexpTokenizer
File "/home/donnut/anaconda/envs/iepy/lib/python3.5/site-packages/nltk/tokenize/__init__.py", line 65, in <module>
from nltk.tokenize.regexp import (RegexpTokenizer, WhitespaceTokenizer,
File "/home/donnut/anaconda/envs/iepy/lib/python3.5/site-packages/nltk/tokenize/regexp.py", line 201, in <module>
blankline_tokenize = BlanklineTokenizer().tokenize
File "/home/donnut/anaconda/envs/iepy/lib/python3.5/site-packages/nltk/tokenize/regexp.py", line 172, in __init__
RegexpTokenizer.__init__(self, r'\s*\n\s*\n\s*', gaps=True)
File "/home/donnut/anaconda/envs/iepy/lib/python3.5/site-packages/nltk/tokenize/regexp.py", line 119, in __init__
self._regexp = compile_regexp_to_noncapturing(pattern, flags)
File "/home/donnut/anaconda/envs/iepy/lib/python3.5/site-packages/nltk/internals.py", line 54, in compile_regexp_to_noncapturing
return sre_compile.compile(convert_regexp_to_noncapturing_parsed(sre_parse.parse(pattern)), flags=flags)
File "/home/donnut/anaconda/envs/iepy/lib/python3.5/site-packages/nltk/internals.py", line 50, in convert_regexp_to_noncapturing_parsed
parsed_pattern.pattern.groups = 1
AttributeError: can't set attribute
Any idea what might be wrong?
Issue Analytics
- State:
- Created 7 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
python - AttributeError: can't set attribute - Stack Overflow
This specific exception "AttributeError: can't set attribute" is raised (see source) when the attribute you're attempting to change is ...
Read more >[Solved] AttributeError: can't set attribute in python - Finxter
The easiest way to fix the AttributeError:can't set attribute is to create a new namedtuple object with the namedtuple._replace() method.
Read more >Python error saying "AttributeError: can't set attribute" - Intellipaat
The reason you are getting this error is because you are naming the setter method incorrectly. You have named the setter method as...
Read more >Python error saying \"AttributeError: can\'t set attribute\". How is ...
The explanation you are getting this error is that you are naming the setter method mistakenly. You have named the setter method as...
Read more >"can't set attribute" on class - Python Forum
The problem is that you have a read-only @property named data . The best solution is to rename the attribute. You could use...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Good to know Alonso.
I’ll try to make a release with development branch within these days.
Did you try using the development branch? Can you?