# The example is not even working? Using alpaca-py

**URL:** <https://forum.alpaca.markets/t/the-example-is-not-even-working-using-alpaca-py/12231>\
**Category:** Alpaca Integration Applications\
**Created:** [April 21, 2023, 12:50am UTC](https://forum.alpaca.markets/t/the-example-is-not-even-working-using-alpaca-py/12231 "2023-04-21T00:50:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bluepilotpen](https://avatars.discourse-cdn.com/v4/letter/b/ee59a6/32.png) [@bluepilotpen](https://forum.alpaca.markets/u/bluepilotpen)\
**Post date:** [April 21, 2023, 12:50am UTC](https://forum.alpaca.markets/t/the-example-is-not-even-working-using-alpaca-py/12231/1 "2023-04-21T00:50:36Z")

</div>

Hey guys, I am trying to get this boilerplate code working at the very least. I did `pip install alpaca-py`, it ran fine, and even when I `pip show alpaca-py` it will show version 0.8.1 and the rest is:

```auto
Name: alpaca-py
Version: 0.8.1
Summary: The Official Python SDK for Alpaca APIs
Home-page: https://github.com/alpacahq/alpaca-py
Author: Rahul Chowdhury
Author-email: rahul.chowdhury@alpaca.markets
License: Apache-2.0
Location: /Users/kushshah/opt/anaconda3/lib/python3.9/site-packages
Requires: msgpack, pandas, pydantic, requests, sseclient-py, websockets
Required-by: 

```

My boilerplate code to start with is:

```auto
from alpaca.data.historical import CryptoHistoricalDataClient
from alpaca.data.requests import CryptoBarsRequest
from alpaca.data.timeframe import TimeFrame
from datetime import datetime

# no keys required for crypto data
client = CryptoHistoricalDataClient()

request_params = CryptoBarsRequest(
                        symbol_or_symbols=["BTC/USD", "ETH/USD"],
                        timeframe=TimeFrame.Day,
                        start=datetime(2022, 7, 1)
                 )

bars = client.get_crypto_bars(request_params)

```

I have it in my alpaca.py file and when I run `python alpaca.py` I get the following error message, what gives?

```auto
(base) Me@My-MacBook-Pro robin % python alpaca.py  
Traceback (most recent call last):
  File "/Users/Me/source/repos/robin/alpaca.py", line 1, in <module>
    from alpaca.data.historical import CryptoHistoricalDataClient
  File "/Users/Me/source/repos/robin/alpaca.py", line 1, in <module>
    from alpaca.data.historical import CryptoHistoricalDataClient
ModuleNotFoundError: No module named 'alpaca.data'; 'alpaca' is not a package

```
