GithubHelp home page GithubHelp logo

Comments (11)

mertyildiran avatar mertyildiran commented on May 22, 2024

@turtle-bazon could you investigate further? I'm not sure what is the cause of the issue. Feel free to send pull requests 😊

from dragonfire.

mamantoha avatar mamantoha commented on May 22, 2024

The same on Kubuntu 18.04.

whereis dragonfire 
dragonfire: /usr/bin/dragonfire /usr/share/dragonfire /usr/share/man/man1/dragonfire.1.gz
cat /usr/bin/dragonfire
#!/bin/sh

/usr/share/python/dragonfire/bin/dragonfire $@
file /usr/share/python/dragonfire/bin/dragonfire
/usr/share/python/dragonfire/bin/dragonfire: cannot open `/usr/share/python/dragonfire/bin/dragonfire' (No such file or directory)

from dragonfire.

turtle-bazon avatar turtle-bazon commented on May 22, 2024

I can investigate but have not experience in python. :) So I don't know how to help. What is this file /usr/share/python/dragonfire/bin/dragonfire? It not present in dpkg package. So, is it should be generated during post-install scripts? Give me direction. :)

from dragonfire.

turtle-bazon avatar turtle-bazon commented on May 22, 2024

I've looked at post-inst scripts and didn't see any generation of dragonfire binary at that path. So I'm confused now.

from dragonfire.

mertyildiran avatar mertyildiran commented on May 22, 2024

@mamantoha @turtle-bazon is it under /usr/share/python3/dragonfire/bin/dragonfire ? if so we forgot to change this line. 😕

If that's the case then please fix it and send a pull request.

from dragonfire.

Vladislavuz avatar Vladislavuz commented on May 22, 2024

vladislav@vladislav-P5QL-PRO:~$ dragonfire -h
/usr/bin/dragonfire: 3: /usr/bin/dragonfire: /usr/share/python/dragonfire/bin/dragonfire: not found

from dragonfire.

turtle-bazon avatar turtle-bazon commented on May 22, 2024

No dragonfire dir neither in /usr/share/python nor in /usr/share/python3

from dragonfire.

mertyildiran avatar mertyildiran commented on May 22, 2024

@turtle-bazon @mamantoha @vladislavyuzbekov I fixed this issue with d2ca3fb and updated the release. So please redownload dragonfire_1.0.0_amd64.deb file and install it again.

We apologize for the inconvenience. 😊 Please report it if you face with an issue again.

from dragonfire.

turtle-bazon avatar turtle-bazon commented on May 22, 2024

New dragonfire sucessfully installed, but can't be run:

turtle@working-turtle /tmp $ dragonfire
Traceback (most recent call last):                                    
  File "/usr/lib/python3/dist-packages/nltk/corpus/util.py", line 63, in __load
    try: root = nltk.data.find('corpora/%s' % zip_name)
  File "/usr/lib/python3/dist-packages/nltk/data.py", line 641, in find
    raise LookupError(resource_not_found)
LookupError:
**********************************************************************
  Resource 'corpora/brown.zip/brown/' not found.  Please use the
  NLTK Downloader to obtain the resource:  >>> nltk.download()
  Searched in:
    - '/home/turtle/nltk_data'
    - '/usr/share/nltk_data'
    - '/usr/local/share/nltk_data'
    - '/usr/lib/nltk_data'
    - '/usr/local/lib/nltk_data'
**********************************************************************

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/dragonfire", line 11, in <module>
    load_entry_point('dragonfire==1.0.0', 'console_scripts', 'dragonfire')()
  File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 476, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 2700, in load_entry_point
    return ep.load()
  File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 2318, in load
    return self.resolve()
  File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 2324, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python3/dist-packages/dragonfire/__init__.py", line 40, in <module>
    from dragonfire.nlplib import Classifier, Helper
  File "/usr/lib/python3/dist-packages/dragonfire/nlplib.py", line 31, in <module>
    brown_train = brown.tagged_sents(categories='news')
  File "/usr/lib/python3/dist-packages/nltk/corpus/util.py", line 99, in __getattr__
    self.__load()
  File "/usr/lib/python3/dist-packages/nltk/corpus/util.py", line 64, in __load
    except LookupError: raise e
  File "/usr/lib/python3/dist-packages/nltk/corpus/util.py", line 61, in __load
    root = nltk.data.find('corpora/%s' % self.__name)
  File "/usr/lib/python3/dist-packages/nltk/data.py", line 641, in find
    raise LookupError(resource_not_found)
LookupError:
**********************************************************************
  Resource 'corpora/brown' not found.  Please use the NLTK
  Downloader to obtain the resource:  >>> nltk.download()
  Searched in:
    - '/home/turtle/nltk_data'
    - '/usr/share/nltk_data'
    - '/usr/local/share/nltk_data'
    - '/usr/lib/nltk_data'
    - '/usr/local/lib/nltk_data'
**********************************************************************

from dragonfire.

turtle-bazon avatar turtle-bazon commented on May 22, 2024

It seems that printf "import nltk\nnltk.download('names')\nnltk.download('brown')\nnltk.download('wordnet')\nnltk.download('punkt')" | python3 downloaded resources to root's home directory.

from dragonfire.

turtle-bazon avatar turtle-bazon commented on May 22, 2024

After executing this line as user it launches, but I think that is not correct behavior.

from dragonfire.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.