question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CentOS Linux 7 (Core) last shapely version installed from pip

i have error

     from shapely.geometry import *
   File "/home/sms1161/.local/lib/python3.8/site-packages/shapely/geometry/__init__.py", line 4, in <module>
     from .base import CAP_STYLE, JOIN_STYLE
   File "/home/sms1161/.local/lib/python3.8/site-packages/shapely/geometry/base.py", line 20, in <module>
     from shapely.coords import CoordinateSequence
   File "/home/sms1161/.local/lib/python3.8/site-packages/shapely/coords.py", line 10, in <module>
     from shapely.geos import lgeos
   File "/home/sms1161/.local/lib/python3.8/site-packages/shapely/geos.py", line 303, in <module>
     error_h = EXCEPTION_HANDLER_FUNCTYPE(error_handler)
 MemoryError

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
smidmcommented, Nov 9, 2022

I encountered the same error and it was caused by full /tmp filesystem.

0reactions
HaSHssscommented, Aug 17, 2022

@HaSHsss I think your problem may be related to https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/6184. Shapely’s EXCEPTION_HANDLER_FUNCTYPE also uses ctypes CFUNCTYPE. I don’t think we can help you with this, it will take some system administration work.

It describes a bug with TEMPDIR which is fixed in Python 3.8 Perhaps I missed something

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Handle the MemoryError in Python - Rollbar
A MemoryError means that the interpreter has run out of memory to allocate to your Python program. This may be due to an...
Read more >
Memory error - Wikipedia
Memory gaps and errors refer to the incorrect recall, or complete loss, of information in the memory system for a specific detail and/or...
Read more >
memory error in python - Stack Overflow
A memory error means that your program has ran out of memory. This means that your program somehow creates too many ...
Read more >
Complete Guide to Python Memory Error - eduCBA
Most often, Memory Error occurs when the program creates any number of objects, and the memory of the RAM runs out. When working...
Read more >
How to Solve the Python Memory Error - HackerNoon
A memory error occurs when an operation runs out of memory. It's most likely because you're using a 32-bit Python version.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found