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.

installation issue (unknown file type '.pyx')

See original GitHub issue

I installed dependencies and when I run setup.py script (python setup.py develop), I got the following error:

(Cython is installed. In Python 3.7.6, I use with/without creating an environment, the error is the same.)

miniconda3/lib/python3.7/site-packages/setuptools/dist.py:476: UserWarning: Normalizing '0.7.rc1+ecaf5db' to '0.7rc1+ecaf5db'
  normalized_version,
running develop
running egg_info
writing mmskeleton.egg-info/PKG-INFO
writing dependency_links to mmskeleton.egg-info/dependency_links.txt
writing requirements to mmskeleton.egg-info/requires.txt
writing top-level names to mmskeleton.egg-info/top_level.txt
reading manifest file 'mmskeleton.egg-info/SOURCES.txt'
writing manifest file 'mmskeleton.egg-info/SOURCES.txt'
running build_ext
building 'mmskeleton.ops.nms.gpu_nms' extension
error: unknown file type '.pyx' (from 'mmskeleton/ops/nms/gpu_nms.pyx')

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:16 (1 by maintainers)

github_iconTop GitHub Comments

40reactions
wind-cludycommented, Feb 6, 2020

I solved this problem by under step:

 cd mmskeleton/ops/nms/
 python setup_linux.py build

build folder is created. copy build/temp.linux…/.o to $mmskeleton_home/build/temp.linux…/mmskeleton/ops/nms/ copy build/lib.linux…/.so to $mmskeleton_home/build/lib.linux…/mmskeleton/ops/nms/*

cd $mmskeleton_home execute python setup.py develop again.

1reaction
Dongti-tiancommented, Apr 14, 2020

I solved the problem through the method provided by wind-cludy. Command lines are as follows: cd mmskeleton/ops/nms/ python setup_linux.py build image image

image image image python setup.py develop again.

Thanks for wind-cludy’s answer

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unknown file type error with .pyx file - python - Stack Overflow
Just to note, I'm using the Enthought build of Python (7.1) on OSX with the latest Xcode (4.1). this was the first hit...
Read more >
pip error error: unknown file type '.pyx' (from 'fairseq/data ...
When i pip fairseq in build dockerfile.Raise error. dockerfile. FROM pytorch/pytorch:1.3-cuda10.1-cudnn7-devel. RUN pip install redis fairseq ...
Read more >
error: unknown file type '.pyx' graphql
If the error is describing an Unknown field 'X' on type 'Query', the content type you are trying to source is likely not...
Read more >
PYX File Extension: What Is It & How To Open It? - Solvusoft
When you double-click your PYX file, you may see a dialog box from your operating system stating that it "Cannot Open This File...
Read more >
2180 ([with patch, with positive review] cython skipping (build ...
pyx file 3) sage -br 4) The bug is that you get a message like: building 'sage.rings.polynomial.multi_polynomial_factor' extension error: unknown file type '....
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