Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Installation Issues Encountered by New Users and Developers #465

Closed
3 tasks done
yuki-2025 opened this issue Mar 16, 2024 · 2 comments
Closed
3 tasks done

[BUG] Installation Issues Encountered by New Users and Developers #465

yuki-2025 opened this issue Mar 16, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@yuki-2025
Copy link
Collaborator

Required prerequisites

What version of camel are you using?

0.1.1

System information

python 3.11.8 (tags/v3.11.8:db85d51, Feb 6 2024, 22:03:32) [MSC v.1937 64 bit (AMD64)] win32

Problem description

I have tried two different roles in attempting to install the camel-ai package and have encountered the problem described below. I hope any expert can help address this issue.

To differentiate between a normal user and a developer user, I refer to the normal user as 'User' and the developers of our camel project as 'Developer'. The main issue concerns dependency problems; strict environments might affect both user and developer experiences.

I followed the instructions in the wiki or readme and tested the installation on two different PCs, and encountered the problems described below: (Note: The use of an ipynb file is just to facilitate showing the problem and is not related to actual development.)

Reproducible example code

For Beginner User
I followed the installation instructions as a user:
https://github.com/camel-ai/camel/wiki/Installation-and-Setup and https://github.com/camel-ai/camel
image

  1. pip does not work with Python 3.12 and above.
    image
    Solution: Install the Python 3.11 version of the kernel; it is not a significant problem.

  2. After executing 'pip install all', normal users are still unable to use the library; they cannot run 'role_playing.py'. It seems that pip alone might not be sufficient for normal users. Executing pip install 'camel-ai[all]' results in the same problem. (ModuleNotFoundError: No module named 'docstring_parser')
    image

    $\textcolor{red}{\textsf{Solution: So far, I have not been able to find an alternative. I believe the only way forward is to install from the source.}}$


For Beginner Developer
I followed the instructions to install as a developer.
https://github.com/camel-ai/camel/blob/master/CONTRIBUTING.md

# Clone github repo
git clone https://github.com/camel-ai/camel.git

# Change directory into project directory
cd camel

# Activate camel virtual environment
poetry shell

# Install camel from source
# It takes about 75s to resolve dependencies and 10s to install them, depending on your hardware and network,
poetry install --with dev,docs

# Or if you want to use all other extra packages
poetry install --with dev,docs -E all  # (Optional)

# The following command installs a pre-commit hook into the local git repo,
# so every commit gets auto-formatted and linted.
pre-commit install

# Run camel's unit tests
pytest test

# Exit the virtual environment
exit
  1. You might encounter a poetry problem after performing a git clone.

image

Solution: For Windows users, you cannot install your Python kernel via the Microsoft App Store, and installing Conda will not resolve the issue either. Simply installing Python 3.11 directly from python.org is sufficient.

  1. I encountered a Torch library error when executing code, even after successfully initiating a Poetry shell.
    image
    Solution Attempted: Despite running pip install torch, the problem persists.

  2. I encountered 74 errors in pytest after successfully executing poetry install and pre-commit install.
    image

    $\textcolor{red}{\textsf{Solution: I tried to installed qdrant but same errors. At this point, I am not sure how to resolve this issue.}}$

Traceback

No response

Expected behavior

No response

Additional context

No response

@yuki-2025 yuki-2025 added the bug Something isn't working label Mar 16, 2024
@yuki-2025 yuki-2025 self-assigned this Mar 16, 2024
@Wendong-Fan
Copy link
Member

issue solved by cleaning python env

@yuki-2025
Copy link
Collaborator Author

yuki-2025 commented Mar 18, 2024

This problem is not related to the cleanliness of the environment, as I am using two newly formatted PCs. The issue arises from the numerous specific environmental restrictions, such as the requirement to use Python 3.10 to run Poetry, which is not supported by another kernel.

Any update refer to:
https://github.com/orgs/camel-ai/discussions/466

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants