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

Install on Windows 10? #6

Open
hulsmeier opened this issue Aug 25, 2020 · 12 comments
Open

Install on Windows 10? #6

hulsmeier opened this issue Aug 25, 2020 · 12 comments

Comments

@hulsmeier
Copy link

I'm running python setup.py install on Windows 10 but when i try to run training it tells me "No Module named 'point_pillars'. Is Windows not supported or am I missing something?

@tyagi-iiitv
Copy link
Owner

Yes, some people have faced this issue before. I think this happens because the PointPillars.cpp file is installed at a path that is not readable with python.

If you look at the logs from python setup.py install, the files are being copied to build/bdist.linux-x86_64/egg. This directory in your case is not readable. Maybe you can copy the installed files and paste them into your Point Pillars directory, that might work.

creating build/bdist.linux-x86_64/egg
copying build/lib.linux-x86_64-3.6/point_pillars.cpython-36m-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/egg
creating stub loader for point_pillars.cpython-36m-x86_64-linux-gnu.so
byte-compiling build/bdist.linux-x86_64/egg/point_pillars.py to point_pillars.cpython-36.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying point_pillars.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying point_pillars.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying point_pillars.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying point_pillars.egg-info/not-zip-safe -> build/bdist.linux-x86_64/egg/EGG-INFO
copying point_pillars.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
writing build/bdist.linux-x86_64/egg/EGG-INFO/native_libs.txt
creating 'dist/point_pillars-0.0.1-py3.6-linux-x86_64.egg' and adding 'build/bdist.linux-x86_64/egg' to it

@hulsmeier
Copy link
Author

hulsmeier commented Aug 26, 2020

So I tried copying those files but that didn't work. Here is my log.

running install
running bdist_egg
running egg_info
writing point_pillars.egg-info\PKG-INFO
writing dependency_links to point_pillars.egg-info\dependency_links.txt
writing top-level names to point_pillars.egg-info\top_level.txt
reading manifest file 'point_pillars.egg-info\SOURCES.txt'
writing manifest file 'point_pillars.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_ext
-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.20190.
-- pybind11 v2.6.0 dev
-- Configuring done
-- Generating done
-- Build files have been written to: D:/Documents/GitHub/PointPillars/build/temp.win-amd64-3.6/Release
Microsoft (R) Build Engine version 16.6.0+5ff7b0c9e for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

point_pillars.vcxproj -> D:\Documents\GitHub\PointPillars\build\temp.win-amd64-3.6\Release\Release\point_pillars.cp36
-win_amd64.pyd
warning: install_lib: 'build\lib.win-amd64-3.6' does not exist -- no Python modules to install

creating build\bdist.win-amd64\egg
creating build\bdist.win-amd64\egg\EGG-INFO
copying point_pillars.egg-info\PKG-INFO -> build\bdist.win-amd64\egg\EGG-INFO
copying point_pillars.egg-info\SOURCES.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying point_pillars.egg-info\dependency_links.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying point_pillars.egg-info\not-zip-safe -> build\bdist.win-amd64\egg\EGG-INFO
copying point_pillars.egg-info\top_level.txt -> build\bdist.win-amd64\egg\EGG-INFO
creating 'dist\point_pillars-0.0.1-py3.6-win-amd64.egg' and adding 'build\bdist.win-amd64\egg' to it
removing 'build\bdist.win-amd64\egg' (and everything under it)
Processing point_pillars-0.0.1-py3.6-win-amd64.egg
removing 'c:\users\oneal\appdata\local\programs\python\python36\lib\site-packages\point_pillars-0.0.1-py3.6-win-amd64.egg' (and everything under it)
creating c:\users\oneal\appdata\local\programs\python\python36\lib\site-packages\point_pillars-0.0.1-py3.6-win-amd64.egg
Extracting point_pillars-0.0.1-py3.6-win-amd64.egg to c:\users\oneal\appdata\local\programs\python\python36\lib\site-packages
point-pillars 0.0.1 is already the active version in easy-install.pth

Installed c:\users\oneal\appdata\local\programs\python\python36\lib\site-packages\point_pillars-0.0.1-py3.6-win-amd64.egg
Processing dependencies for point-pillars==0.0.1
Finished processing dependencies for point-pillars==0.0.1

@tyagi-iiitv
Copy link
Owner

One way out that I can see is to run this code using a terminal in Jupyterlab. In that case, since you are running a conda environment, the dependencies will be installed in the correct directories. Can you try that? Try installing Anaconda for Python 3 on Windows.

@hulsmeier
Copy link
Author

Hey so i tried your suggestion. Ran Jupyter Lab through Anaconda and then tried running the setup in a terminal. Still gives me the same problem though.

Is it something to do with this line?

warning: install_lib: 'build\lib.win-amd64-3.6' does not exist -- no Python modules to install

@tyagi-iiitv
Copy link
Owner

Hi just wanted to follow up on this, were you able to figure it out?

@hulsmeier
Copy link
Author

Hi, I haven't been able to solve it unfortunately.

@tyagi-iiitv
Copy link
Owner

Ohh okay, I'll try it out on my system and will let you know if I figure out the soln.

@ma7555
Copy link

ma7555 commented Oct 14, 2020

Were you able to figure it out??

@ma7555
Copy link

ma7555 commented Oct 19, 2020

I was able to fix it on Windows, will fork and fix it as soon as possible

@tyagi-iiitv
Copy link
Owner

Hi @ma7555, can you please submit a PR with this fix? Thanks for the work!

@ma7555
Copy link

ma7555 commented Nov 4, 2020

Hello @tyagi-iiitv, I didn't have the chance to check the solution on Linux/Ubuntu though...

@ma7555
Copy link

ma7555 commented Nov 8, 2020

Hello again,

There is an easier solution that I found without altering the source code for now.

After python setup.py install

copy '.pyd' file from
.\PointPillars\build\temp.win32-3.8\Release\Release to C:\Users\USERNAME\anaconda3\envs\ENVNAME\Lib\site-packages

@ma7555 ma7555 mentioned this issue Nov 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants