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

undefined symbol: CPU_ALLOC #536

Closed
captnbp opened this issue Sep 24, 2014 · 7 comments
Closed

undefined symbol: CPU_ALLOC #536

captnbp opened this issue Sep 24, 2014 · 7 comments

Comments

@captnbp
Copy link

captnbp commented Sep 24, 2014

Hi,

I upgraded psutil from version 2.1.1 to 2.1.2.

Now I get this error :

Traceback (most recent call last):
  File "/FTRPRDAP03/tools/Monitoring/FTRstatus", line 10, in <module>
    from sfg import monitoring
  File "/FTRPRDAP03/tools/src/sfg/monitoring.py", line 13, in <module>
    import psutil
  File "/FTRPRDAP03/python/lib/python2.7/site-packages/psutil/__init__.py", line 89, in <module>
    import psutil._pslinux as _psplatform
  File "/FTRPRDAP03/python/lib/python2.7/site-packages/psutil/_pslinux.py", line 24, in <module>
    import _psutil_linux as cext
ImportError: /FTRPRDAP03/python/lib/python2.7/site-packages/_psutil_linux.so: undefined symbol: CPU_ALLOC

If I rollback to 2.1.1, no more error.

Here is my setup :

  • OS : RedHat 5.9
  • Python 2.7.6

Thanks for your help.

@giampaolo
Copy link
Owner

Crap! Please paste the output of "grep -r CPU_ALLOC /usr/include/".

@captnbp
Copy link
Author

captnbp commented Sep 24, 2014

Nothing found for CPU_ALLOC in /usr/include/

@giampaolo
Copy link
Owner

@ddaeschler would you mind taking a look at this? I think what we need to do is to use the old code (pre #522) in case CPU_ALLOC is not defined.

@ddaeschler
Copy link
Contributor

I'll take a look

@giampaolo
Copy link
Owner

Thanks.

@ddaeschler
Copy link
Contributor

See #537

@giampaolo
Copy link
Owner

OK, I just released a new version. Closing this out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants