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

Error when install evals with pyarrow #13

Closed
fish2022Jul opened this issue Mar 14, 2023 · 8 comments
Closed

Error when install evals with pyarrow #13

fish2022Jul opened this issue Mar 14, 2023 · 8 comments

Comments

@fish2022Jul
Copy link

Background : Python 3.10 & conda 22.11.1
I got this error when install evals with pip install -e .
pod5 0.1.5 requires pyarrow~=8.0.0, but you have pyarrow 10.0.1 which is incompatible.

Then I used pip install pyarrow==8.0 to down pyarrow to 8.0. And the second time I tried to install evals, I got the same error as beginning: pyarrow 10.0.1 was installed and popped out the error.

Any help? Thank you.

@dancing-with-coffee
Copy link

I just created a new conda environment, gave it the option python=3.10, installed it, and it worked great.

@shamspias
Copy link

@fish2022Jul Just try to make the virtual environment 1st then use pip install -e .

follow the steps

  1. Create a virtual environment ( python3 -m venv yourenv)
  2. active the environment ( . yourenv/bin/active for windows . venv/Scripts/activate)
  3. pip install -e .

@soulteary
Copy link

should works:

python -m pip install --upgrade pip && pip install -e .

@Kuonirad
Copy link

It seems that there is a conflict between the package requirements of your project and the pyarrow version installed in your environment. To resolve this issue, you can create a new isolated Conda environment for your project and install the required packages there.

### Follow these steps:

Create a new Conda environment and activate it:
bash
Copy code
conda create --name my_project_env python=3.10
conda activate my_project_env

Replace my_project_env with the desired name for your environment.

Install the required version of pyarrow:
bash
Copy code
pip install pyarrow==8.0.0

Install evals in your new environment:
bash
Copy code
pip install -e .

Make sure you are in the same directory as your project's setup.py file before running this command.

This process will create an isolated environment, preventing conflicts between the packages required for your project and the global Python installation. If you still encounter issues, consider checking the evals project's dependencies and requirements to ensure you are using the appropriate package versions.

@Kuonirad
Copy link

Here is a set of instructions for creating a virtual environment using venv, activating it, and installing your project with pip install -e .:

Create a virtual environment:

Copy code
python3 -m venv yourenv

Replace yourenv with your desired virtual environment name.

Activate the virtual environment:

For non-Windows systems (Linux, macOS):

bash
Copy code
source yourenv/bin/activate

For Windows:

Copy code
.\yourenv\Scripts\activate

Install your project in the virtual environment:

Make sure you are in the same directory as your project's setup.py file, then run:

Copy code
pip install -e .

Using a virtual environment will help you isolate your project's dependencies and prevent conflicts with your global Python installation.

@Kuonirad
Copy link

To add the ARC Challenge (1 or 2) JSONs to an evaluation script in the simplest way possible, follow these steps:

Download the ARC dataset:

Download the ARC-800-tasks.zip file from https://lab42.global/wp-content/uploads/2022/08/ARC-800-tasks.zip
Extract the contents of the zip file to a folder.

Locate the evaluation script you want to use with the ARC dataset. Make sure the script is capable of reading JSON files, or modify it to read JSON data.

In the evaluation script, add code to load the ARC Challenge JSON files. You can use the Python json module to load the JSON files:

python
Copy code
import json

with open('path/to/arc_challenge_1.json', 'r') as f:
arc_challenge_1_data = json.load(f)

with open('path/to/arc_challenge_2.json', 'r') as f:
arc_challenge_2_data = json.load(f)

Replace 'path/to/arc_challenge_1.json' and 'path/to/arc_challenge_2.json' with the actual paths to the JSON files extracted from the ARC-800-tasks.zip file.

Process the loaded ARC Challenge data according to the requirements of your evaluation script. This may involve preprocessing the data or transforming it into a format that the script can work with.

Run the evaluation script. The script should now use the ARC Challenge data as input and generate the desired results.

Keep in mind that the specific steps to incorporate the ARC dataset into your evaluation script may vary depending on the script's design and data processing requirements. The general guidance provided here should help you get started, but you may need to make additional adjustments depending on your specific use case.

@jwang47
Copy link
Contributor

jwang47 commented Mar 28, 2023

@fish2022Jul Were you able to resolve your issue using one of the proposed solutions?

@jwang47
Copy link
Contributor

jwang47 commented Apr 13, 2023

Closing due to lack of activity. Let me know if there's still an issue and we can reopen.

@jwang47 jwang47 closed this as completed Apr 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants