Code Monkey home page Code Monkey logo

Comments (8)

joshuashort avatar joshuashort commented on August 29, 2024

Have you installed the python dependencies (pip3 install -r requirements.txt)?

from oa-core.

analyticsUser avatar analyticsUser commented on August 29, 2024

Yes, I followed the above steps and installed all dependencies as mentioned in README.md
My Python version is 3.5 and I used pip version 19.x .

Is there some discrepancy in python version and pip version to be used ?
Also, I ran command as pip install -r requirements.txt instead of using pip3.

Any kind of help is much appreciated to get me started with openassistant as I am still stuck at the same step ( Parent module 'oa.modules' not loaded) . Thank you !!

from oa-core.

joshuashort avatar joshuashort commented on August 29, 2024

Thanks for the patience :)

It’s hard to say for sure since people configure their systems in all kinds of ways..

Is your system’s native/built-in version of Python 2.x or 3.x? You can check by just running python, not python3. If it’s 2.x, then pip is going to also be for 2.x, so it would seem like you have the dependencies installed, but they’re actually installed for the wrong version of Python. Also, pip3 might need to be installed separately.

Makes sense?

from oa-core.

jiachenwei avatar jiachenwei commented on August 29, 2024

Hello!
I also meet this trouble.
My env is base on anaconda python 3.6.2, and OS is Ubunut 18.04.

[2019-04-27 13:48:17,066] INFO     MainThread [__main__.py:<module>:94]    Start Open Assistant
[2019-04-27 13:48:17,066] INFO     MainThread [__main__.py:__init__:18]    Initializing Open Assistant
[2019-04-27 13:48:17,066] DEBUG    MainThread [agent.py:__init__:13]    <__main__.OpenAssistant object at 0x7fef5aeb7cc0>
[2019-04-27 13:48:17,066] INFO     MainThread [agent.py:_load_modules:33]    Loading Modules <- /home/jia/Downloads/oa-core-master/oa/modules
[2019-04-27 13:48:17,066] INFO     MainThread [util.py:load_module:60]    sound <- /home/jia/Downloads/oa-core-master/oa/modules/sound
[2019-04-27 13:48:17,066] ERROR    MainThread [agent.py:_load_modules:42]    Error loading sound: Parent module 'oa.modules' not loaded, cannot perform relative import
[2019-04-27 13:48:17,067] INFO     MainThread [util.py:load_module:60]    voice <- /home/jia/Downloads/oa-core-master/oa/modules/voice
[2019-04-27 13:48:17,067] ERROR    MainThread [agent.py:_load_modules:42]    Error loading voice: Parent module 'oa.modules' not loaded, cannot perform relative import
[2019-04-27 13:48:17,067] INFO     MainThread [util.py:load_module:60]    speech_recognition <- /home/jia/Downloads/oa-core-master/oa/modules/speech_recognition
[2019-04-27 13:48:17,067] ERROR    MainThread [agent.py:_load_modules:42]    Error loading speech_recognition: Parent module 'oa.modules' not loaded, cannot perform relative import
[2019-04-27 13:48:17,067] INFO     MainThread [util.py:load_module:60]    ear <- /home/jia/Downloads/oa-core-master/oa/modules/ear
[2019-04-27 13:48:17,067] ERROR    MainThread [agent.py:_load_modules:42]    Error loading ear: Parent module 'oa.modules' not loaded, cannot perform relative import
[2019-04-27 13:48:17,067] INFO     MainThread [util.py:load_module:60]    mind <- /home/jia/Downloads/oa-core-master/oa/modules/mind
[2019-04-27 13:48:17,067] ERROR    MainThread [agent.py:_load_modules:42]    Error loading mind: Parent module 'oa.modules' not loaded, cannot perform relative import
Traceback (most recent call last):
  File "/home/jia/anaconda3/envs/oa/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/jia/anaconda3/envs/oa/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/jia/Downloads/oa-core-master/oa/__main__.py", line 96, in <module>
    start()
  File "/home/jia/Downloads/oa-core-master/oa/__main__.py", line 44, in start
    a.parts['ear'].output += [a.parts.speech_recognition]
  File "/home/jia/Downloads/oa-core-master/oa/core/util.py", line 89, in __getitem__
    return getattr(self, key)
AttributeError: 'Core' object has no attribute 'ear'

from oa-core.

xiaodongliu-nudt avatar xiaodongliu-nudt commented on August 29, 2024

Stuck here too. My env is Ubuntu 16.04 and Python 3.5. Any help??
P.S. 'pip3 install -r requirements.txt' is finished in my env.

from oa-core.

jgrueb avatar jgrueb commented on August 29, 2024

Same behaviour on Debian 9.9, Python 3.5.3 and correctly installed dependencies.

from oa-core.

joshuashort avatar joshuashort commented on August 29, 2024

Merge #14 (thanks @jgrueb) should make things work in master..

@analyticsUser @jiachenwei @xiaodongliu-fighting : does this resolve the issue?

from oa-core.

joshuashort avatar joshuashort commented on August 29, 2024

I probably missed something obvious, but I found some old code with a comment about this issue.. I think the merged solution is better than the workaround (i.e. hard-coding an import of the base namespace).

from oa-core.

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.