Comments (12)
Not sure if this is a path problem in Windows. We will look into it. Thanks for reporting it @joshfryart
from camel.
@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.
Hi @joshfryart ! Please install the package with pip install -e .
. It is not supposed to be used from within the repository.
from camel.
Also @joshfryart thank you for putting our project into the forlder "_useful". We appreciate it!
from camel.
I did run pip install -e . and it still has the same issue :/ hmmmmm
from camel.
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.
from camel.
@joshfryart @7Moses let me if it works by run the script examples/ai_society/role_playing.py. Thanks again for reporting this.
from camel.
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.
@joshfryart please try:
- pip install -e .
- run the script examples/ai_society/role_playing.py
from camel.
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.
@joshfryart enjoy!
from camel.
Related Issues (20)
- Support Swagger/OpenAPI 2.0 and 3.0 (.yaml) without the need for security authentication
- [Feature Request] Video input for Agent HOT 1
- [Feature Request] Tools search HOT 3
- [Bug Report] python version need update
- [Feature Request] Add support for the litellm library
- [BUG] AutoTokenizer for open-source models
- [Feature Request] Add more openapi specs and refactor open_api_function
- [Feature Request] Support API KEY for OPENAPI functions
- More...
- [Question] poetry dependency list not up to date HOT 1
- [Feature Request] Tokenizer fall back
- [Feature Request] Adapt class to unify model response form into OpenAI format
- [Feature Request] Integrate structured output for agent
- [Feature Request] twitter information retrieval
- [Feature Request] Product Hunt APIs( alternatives) integration HOT 1
- [Feature Request] Product researcher agent
- [Feature Request] Writer agent
- [Feature Request] Integrate Ollama
- [Feature Request] Move functions into toolkits
- [Feature Request] Integrate Composio
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from camel.