machinalis / iepy

Information Extraction in Python
BSD 3-Clause "New" or "Revised" License
906 stars 186 forks source link

Error downloading third party data #19

Closed jmansilla closed 10 years ago

jmansilla commented 10 years ago

javier@my_computer:~/repo$ python scripts/download_third_party_data.py Downloading third party software... Downloading punkt tokenizer [nltk_data] Downloading package 'punkt' to /home/javier/nltk_data... [nltk_data] Unzipping tokenizers/punkt.zip. Downloading wordnet [nltk_data] Downloading package 'wordnet' to /home/javier/nltk_data... [nltk_data] Unzipping corpora/wordnet.zip. Traceback (most recent call last): File "scripts/download_third_party_data.py", line 17, in download_third_party_data() File "scripts/download_third_party_data.py", line 11, in download_third_party_data download_tagger() File "/home/javier/repo/iepy/tagger.py", line 67, in download os.mkdir(DIRS.user_data_dir) OSError: [Errno 2] No such file or directory: '/home/javier/.config/iepy'

jmansilla commented 10 years ago

fixed

eromoe commented 7 years ago

@jmansilla

root@f5dbe915d605:/# iepy --download-third-party-data
/usr/local/lib/python3.5/dist-packages/sklearn/utils/fixes.py:55: DeprecationWarning: inspect.getargspec() is         deprecated, use inspect.signature() instead
  if 'order' in inspect.getargspec(np.copy)[0]:
Traceback (most recent call last):
  File "/usr/local/bin/iepy", line 7, in <module>
    from iepy.instantiation.command_line import execute_from_command_line
  File "/usr/local/lib/python3.5/dist-packages/iepy/instantiation/command_line.py", line 25, in <module>
    from iepy.instantiation.instance_admin import InstanceManager
  File "/usr/local/lib/python3.5/dist-packages/iepy/instantiation/instance_admin.py", line 11, in <module>
    from iepy import defaults
  File "/usr/local/lib/python3.5/dist-packages/iepy/defaults.py", line 3, in <module>
    from iepy.utils import make_feature_list
  File "/usr/local/lib/python3.5/dist-packages/iepy/utils.py", line 19, in <module>
    os.mkdir(DIRS.user_data_dir)
FileNotFoundError: [Errno 2] No such file or directory: '/root/.config/iepy'

Have to mkdir /root/.config first

jmansilla commented 7 years ago

Yes, it does indeed looks like a bug.

Non related, but probably using iepy with a regular user instead of root (the recommended) this bug wont bite you.