GithubHelp home page GithubHelp logo

cant seem to start about camel HOT 12 CLOSED

joshfryart avatar joshfryart commented on June 12, 2024
cant seem to start

from camel.

Comments (12)

lightaime avatar lightaime commented on June 12, 2024 1

Not sure if this is a path problem in Windows. We will look into it. Thanks for reporting it @joshfryart

from camel.

joshfryart avatar joshfryart commented on June 12, 2024 1

@joshfryart please try:

1. pip install -e .

2. run the script examples/ai_society/role_playing.py

this worked. Thanks for missing my oversight. Having fun now 👯

from camel.

Obs01ete avatar Obs01ete commented on June 12, 2024

Hi @joshfryart ! Please install the package with pip install -e .. It is not supposed to be used from within the repository.

from camel.

Obs01ete avatar Obs01ete commented on June 12, 2024

Also @joshfryart thank you for putting our project into the forlder "_useful". We appreciate it!

from camel.

joshfryart avatar joshfryart commented on June 12, 2024

I did run pip install -e . and it still has the same issue :/ hmmmmm

from camel.

7Moses avatar 7Moses commented on June 12, 2024

Similar here (Mac),

Successfully built camel

Successfully installed camel-0.0.1

(camel) moses@MosesMoses ~/imaginativereasoning/camel/camel/agents (drafting)$ python role_playing.py
Traceback (most recent call last):
File "/Users/moses/imaginativereasoning/camel/camel/agents/role_playing.py", line 7, in
from .chat_agent import ChatAgent
ImportError: attempted relative import with no known parent package

I went for https://iq-inc.com/importerror-attempted-relative-import/ but it did not work out,

from camel.

lightaime avatar lightaime commented on June 12, 2024

from camel.

lightaime avatar lightaime commented on June 12, 2024

@joshfryart @7Moses let me if it works by run the script examples/ai_society/role_playing.py. Thanks again for reporting this.

from camel.

joshfryart avatar joshfryart commented on June 12, 2024
  File "C:\Users\joshu\Documents\_aipython\_useful\camel\examples\ai_society\role_playing.py", line 3, in <module>
    from camel.agents import RolePlaying
ModuleNotFoundError: No module named 'camel'

from camel.

Obs01ete avatar Obs01ete commented on June 12, 2024

@joshfryart please try:

  1. pip install -e .
  2. run the script examples/ai_society/role_playing.py

from camel.

7Moses avatar 7Moses commented on June 12, 2024

Thank you for getting back to me, appreciated

(Just in case: I did not use conda, see below for my .pyenv set up, )

I ran $ python /examples/ai_society/role_playing.py like this

(camel) moses@MosesMoses ~/imaginativereasoning/camel/examples/ai_society (drafting)$ python /examples/ai_society/role_playing.py

Nope, No such file,

(camel) moses@MosesMoses ~/imaginativereasoning/camel/examples/ai_society (drafting)$ python /Users/moses/imaginativereasoning/camel/examples/ai_society/role_playing.py

Traceback (most recent call last):

File "/Users/moses/imaginativereasoning/camel/examples/ai_society/role_playing.py", line 49, in
main()
File "/Users/moses/imaginativereasoning/camel/examples/ai_society/role_playing.py", line 16, in main
role_play_session = RolePlaying("Python Programmer", "Stock Trader",
File "/Users/moses/imaginativereasoning/camel/camel/agents/role_playing.py", line 39, in init
self.specified_task_prompt = task_specify_agent.specify_task(
File "/Users/moses/imaginativereasoning/camel/camel/agents/task_agent.py", line 56, in specify_task
specified_task_msgs, terminated, _ = self.step(task_msg)
File "/Users/moses/.pyenv/versions/camel/lib/python3.10/site-packages/tenacity/init.py", line 289, in wrapped_f
return self(f, *args, **kw)
File "/Users/moses/.pyenv/versions/camel/lib/python3.10/site-packages/tenacity/init.py", line 379, in call
do = self.iter(retry_state=retry_state)
File "/Users/moses/.pyenv/versions/camel/lib/python3.10/site-packages/tenacity/init.py", line 326, in iter
raise retry_exc from fut.exception()
tenacity.RetryError: RetryError[<Future at 0x1178f3b50 state=finished raised AuthenticationError>]

(camel) moses@MosesMoses ~/imaginativereasoning/camel/examples/ai_society (drafting)$

Best to you,

from camel.

Obs01ete avatar Obs01ete commented on June 12, 2024

@joshfryart enjoy!

from camel.

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.