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 installing requirement.txt : alpaca_trade_api==2.3.0 #2

Open
svbt opened this issue Jun 11, 2023 · 1 comment
Open

Error when installing requirement.txt : alpaca_trade_api==2.3.0 #2

svbt opened this issue Jun 11, 2023 · 1 comment

Comments

@svbt
Copy link

svbt commented Jun 11, 2023

Hi,

I am trying to install requirement.txt and having trouble with alpaca_trade_api==2.3.0.
I see error when building aiohttp

Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.11/site-packages (from requests<3.0.0,>=2.27.1->alpaca-py==0.7.1->-r requirements.txt (line 1)) (2023.5.7)
Building wheels for collected packages: aiohttp
  Building wheel for aiohttp (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for aiohttp (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [107 lines of output]

.......................................

building 'aiohttp._websocket' extension
      creating build/temp.macosx-12-x86_64-cpython-311
      creating build/temp.macosx-12-x86_64-cpython-311/aiohttp
      clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -I/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c aiohttp/_websocket.c -o build/temp.macosx-12-x86_64-cpython-311/aiohttp/_websocket.o
      aiohttp/_websocket.c:198:12: fatal error: 'longintrepr.h' file not found
        #include "longintrepr.h"
                 ^~~~~~~~~~~~~~~
      1 error generated.
      error: command '/usr/bin/clang' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for aiohttp
Failed to build aiohttp
ERROR: Could not build wheels for aiohttp, which is required to install pyproject.toml-based projects

I am installing on MAC. Have you come across this issue before?

Thanks,
Mahendra

@svbt
Copy link
Author

svbt commented Jun 13, 2023

I am able to install with virtualenv

virtualenv -p python3 .env
source .env/bin/activate
pip install -r requirement.txt

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

1 participant