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.

0.7.0/master fails to build with python 3.7, can't find std_memory.pxd

See original GitHub issue

I’m getting this when trying to install either master or 0.7.0:

running install
running bdist_egg
running egg_info
writing python_rocksdb.egg-info/PKG-INFO
writing dependency_links to python_rocksdb.egg-info/dependency_links.txt
writing requirements to python_rocksdb.egg-info/requires.txt
writing top-level names to python_rocksdb.egg-info/top_level.txt
cythoning rocksdb/_rocksdb.pyx to rocksdb/_rocksdb.cpp
/home/ec2-user/python-rocksdb/.eggs/Cython-3.0a3-py3.7-linux-x86_64.egg/Cython/Compiler/Main.py:344: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /home/ec2-user/python-rocksdb/rocksdb/_rocksdb.pyx
  tree = Parsing.p_module(s, pxd, full_module_name)

Error compiling Cython file:
------------------------------------------------------------
...
from cpython.bytes cimport PyBytes_Size
from cpython.bytes cimport PyBytes_FromString
from cpython.bytes cimport PyBytes_FromStringAndSize
from cpython.unicode cimport PyUnicode_Decode

from std_memory cimport shared_ptr
^
------------------------------------------------------------

rocksdb/_rocksdb.pyx:15:0: 'std_memory.pxd' not found

This happens on both Linux and macos. 0.6.9 release from pypi installs fine. The file is there, so not sure why Python isn’t happy.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
cordawyncommented, Aug 20, 2020

I was getting same errors, but upgrading pip (and friends) helped here.

pip install -U pip setuptools wheel
0reactions
fgimiancommented, Oct 16, 2020

I was getting same errors, but upgrading pip (and friends) helped here.

pip install -U pip setuptools wheel

This helped on Fedora 32 here too, thanks!

Thanks Fotis

Read more comments on GitHub >

github_iconTop Results From Across the Web

Scipy build failure in AIX with Python 3.7 · Issue #12797 - GitHub
Trying to build the master branch of scipy in AIX with python 3.7 fails with the below error message Traceback (most recent call...
Read more >
installing python@3.7 MacBook Air m1 problem - Stack Overflow
Error : python@3.7: An unsatisfied requirement failed this build. My question is that "how can I install python3.7 on MacBook Air m1 using...
Read more >
The Python Tutorial — Python 3.11.1 documentation
Python is an easy to learn, powerful programming language. ... This tutorial does not attempt to be comprehensive and cover every single feature, ......
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