-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
AttributeError: module 'resource' has no attribute 'getpagesize' #5817
Comments
Please provide more information, like the context in which you're seeing this. Is this message displayed in the notebook itself, or on the console of the notebook server, etc? A complete traceback is always helpful. This SO hit also leads me to ask if you happen to have a local module named 'resource' that may be interfering with a module notebook/ipykernel needs, but can't really make that determination without helpful details. |
Hi @kevin-bates System: Windows 10 x64 |
Seems like that SO hit (above) is still the best bet. Please check your PYTHONPATH for a |
Can you please elaborate on the solution?? |
我也遇到了这个问题。 解决方法有二: import resourceprint(resource)_PAGESIZE = resource.getpagesize()#except ImportError: _PAGESIZE = 4096_PAGESIZE = 4096 notebookapp.py import resource#except ImportError: resource = Noneresource = None 经过研究发现,这个问题归根到底是resouce 的问题。在python中,只有unix会有resource,而window下是没有的。但是不知道window下什么时候安装了resouce这个库,导致代码的运行出现问题。 |
您好,邮件已经收到。祝您工作顺利,生活愉快。
|
Would it be possible to make this more nuanced than testing on If I try to use Jupyter with a ROS2 installation on Windows (using Robostack in a Conda environment) where I've built packages in a colcon workspace I get this error. It appears that this is because Python ROS2 package provides a folder (I think for ament_index ) that gets interpreted as a Python package and gets loaded:
Inspecting in a Python terminal:
It appears that the |
您好,邮件已经收到。祝您工作顺利,生活愉快。
|
我也遇到同样的问题了,不过我的来由不一样。 |
您好,邮件已经收到。祝您工作顺利,生活愉快。
|
老哥你的邮箱自动回复哈哈哈 |
My problem was mamba installed graalvm's python for some reason, and that version of python does not have |
您好,邮件已经收到。祝您工作顺利,生活愉快。
|
检查你的项目中是否有和 resource 同名的文件夹,尝试重命名 |
您好,邮件已经收到。祝您工作顺利,生活愉快。
|
Hi, when i tried to start jupyter notebook, an error occurred as below. AttributeError: module 'resource' has no attribute 'getpagesize'. I have reinstalled resource module but not work. I installed ipykernel module before, is it related ? Because i work well before that.
Wnidows, python3.7
The text was updated successfully, but these errors were encountered: