Re: Setting up beam locally

2024-01-05 Thread Shunping Huang via dev
That's right. You need to put quotes (single quotes or double quotes)
around .[gcp,test] since the square brackets are interpreted as a
glob-pattern in shell.

We will also need to add the quotes to the command listed in the beam wiki
page:
https://cwiki.apache.org/confluence/display/BEAM/Python+Tips#PythonTips-VirtualEnvironmentSetup




On Fri, Jan 5, 2024 at 7:44 AM XQ Hu via dev  wrote:

> Assuming you run this under beam/sdks/python, since I use zsh, I have to
> do this `pip install -e ".[gcp,test]"`.
>
> On Fri, Jan 5, 2024 at 1:33 AM G Gautam  wrote:
>
>> Hi everyone,
>>
>> Need help in setting beam locally.
>>
>> When trying to setup locally
>> on entering this command: pip install -e .[gcp,test]
>> I am getting: no matches found: .[gcp,test]
>> am i missing anything
>>
>> I am following this steps
>> -
>> $ python3 -m venv ~/.virtualenvs/env
>>
>> # Activate virtual environment.
>> $ . ~/.virtualenvs/env/bin/activate
>>
>> # Upgrade other tools. (Optional)
>> pip install --upgrade pip
>> pip install --upgrade setuptools
>>
>> # Install Apache Beam package in editable mode.
>> (env) $ pip install -e .[gcp,test]
>> -
>> Slack link
>> 
>>
>> Thanks,
>>
>> Gautam
>>
>> [image: Please consider the environment before printing]
>>
>


Re: Setting up beam locally

2024-01-05 Thread XQ Hu via dev
Assuming you run this under beam/sdks/python, since I use zsh, I have to do
this `pip install -e ".[gcp,test]"`.

On Fri, Jan 5, 2024 at 1:33 AM G Gautam  wrote:

> Hi everyone,
>
> Need help in setting beam locally.
>
> When trying to setup locally
> on entering this command: pip install -e .[gcp,test]
> I am getting: no matches found: .[gcp,test]
> am i missing anything
>
> I am following this steps
> -
> $ python3 -m venv ~/.virtualenvs/env
>
> # Activate virtual environment.
> $ . ~/.virtualenvs/env/bin/activate
>
> # Upgrade other tools. (Optional)
> pip install --upgrade pip
> pip install --upgrade setuptools
>
> # Install Apache Beam package in editable mode.
> (env) $ pip install -e .[gcp,test]
> -
> Slack link
> 
>
> Thanks,
>
> Gautam
>
> [image: Please consider the environment before printing]
>


Setting up beam locally

2024-01-04 Thread G Gautam
Hi everyone,

Need help in setting beam locally.

When trying to setup locally
on entering this command: pip install -e .[gcp,test]
I am getting: no matches found: .[gcp,test]
am i missing anything

I am following this steps
-
$ python3 -m venv ~/.virtualenvs/env

# Activate virtual environment.
$ . ~/.virtualenvs/env/bin/activate

# Upgrade other tools. (Optional)
pip install --upgrade pip
pip install --upgrade setuptools

# Install Apache Beam package in editable mode.
(env) $ pip install -e .[gcp,test]
-
Slack link 

Thanks,

Gautam

[image: Please consider the environment before printing]


Setting up beam locally - docker

2024-01-04 Thread G Gautam
Hi everyone,

I was trying to build beam locally using docker,
I ran ./start-build-env.sh
I am getting this error

ERROR [11/19] RUN pip3 install grpcio-tools mypy-protobuf   5.9s
Dockerfile:70

 68 |   # Install grpcio-tools mypy-protobuf for `python3
sdks/python/setup.py sdist` to work
 69 |   ###
 70 | >>> RUN pip3 install grpcio-tools mypy-protobuf
 71 |
 72 |   ###

ERROR: failed to solve: process "/bin/bash -o pipefail -c pip3 install
grpcio-tools mypy-protobuf" did not complete successfully: exit code: 1

I am using python 3.9.18 and M2 chip OSX

Thanks,

Gautam Gottipati


[image: Please consider the environment before printing]