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

ImportError: cannot import name 'SimpleQueue' #104

Open
ayoubu opened this issue Sep 26, 2022 · 2 comments
Open

ImportError: cannot import name 'SimpleQueue' #104

ayoubu opened this issue Sep 26, 2022 · 2 comments

Comments

@ayoubu
Copy link

ayoubu commented Sep 26, 2022

import pclpy
from pclpy import pcl

point_cloud = pclpy.read("street.las", "PointXYZRGBA")
mls = pcl.surface.MovingLeastSquaresOMP.PointXYZRGBA_PointNormal()
tree = pcl.search.KdTree.PointXYZRGBA()
mls.setSearchRadius(0.05)
mls.setPolynomialFit(False)
mls.setNumberOfThreads(12)
mls.setInputCloud(point_cloud)
mls.setSearchMethod(tree)
mls.setComputeNormals(True)
output = pcl.PointCloud.PointNormal()
mls.process(output)

When I run the above code, I get this error:

Traceback (most recent call last):
File ".../test_pclpy/test_pcl01.py", line 1, in
import pclpy
File ".../miniconda3/envs/pcl_view_1/lib/python3.6/site-packages/pclpy/init.py", line 5, in
from pclpy.io.functions import read
File ".../miniconda3/envs/pcl_view_1/lib/python3.6/site-packages/pclpy/io/init.py", line 3, in
from .functions import read
File ".../miniconda3/envs/pcl_view_1/lib/python3.6/site-packages/pclpy/io/functions.py", line 3, in
from . import las
File ".../miniconda3/envs/pcl_view_1/lib/python3.6/site-packages/pclpy/io/las.py", line 2, in
import laspy
File ".../miniconda3/envs/pcl_view_1/lib/python3.6/site-packages/laspy/init.py", line 6, in
from .copc import CopcReader, Bounds
File ".../miniconda3/envs/pcl_view_1/lib/python3.6/site-packages/laspy/copc.py", line 8, in
from queue import Queue, SimpleQueue
ImportError: cannot import name 'SimpleQueue'

@HalvesChen
Copy link

Hi! I have the same problem, how do you solve it?

@nulltofull
Copy link

Follow your error path to find the copc.py。
from queue import Queue, SimpleQueue。
Modified as: from queue import Queue; from multiprocessing import SimpleQueue

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