-
Notifications
You must be signed in to change notification settings - Fork 8
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 CODEC2_MODE_1400 and CODEC2_MODE_450 undeclared #8
Comments
I took a quick look and it seems to me that 18.04's codec2 library is too old (and there of incompatible) for the current pycodec2 version. 18.04 is at 0.7, while 450 mode was added in codec2-0.9.2. Would it be possible for you to install a newer version of codec2? Alternatively you could fork pycodec2 and remove those incompatible modes. We could look into other options if these are infeasible. |
I've been running into this myself building Docker images. Specifying to pip a version of pycodec2 compatible with the system codec2 should be sufficient, right? In Ubuntu 18.04, I ran into a numpy issue using the pip numpy and had to use the system package manager to get numpy installed.
|
@mach327 That's a fair problem. I'll have to think about how to approach this. Cython's compile time conditionals look promising (not sure if they'll work with C macros). If that doesn't work, perhaps I could release backward compatible branches. |
I've published a special backward compatible version at PyPI. I've tested it locally and should work with codec2-0.7 but let me know if it doesn't. |
I'm using Ubuntu 18.04 and I tried to install pycodec2 in two different ways.
First, I installed codec2 with:
sudo apt install libcodec2-dev
Then, I tried to install pycodec2 with:
python3 setup.py install
And I get this error:
When I use this command instead:
sudo pip3 install pycodec2
I get the same error before.
The text was updated successfully, but these errors were encountered: