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 RoboStack against Python 3.10 #489

Closed
5 tasks
USeebi opened this issue Jul 25, 2024 · 6 comments
Closed
5 tasks

Install RoboStack against Python 3.10 #489

USeebi opened this issue Jul 25, 2024 · 6 comments
Labels
additional-packages wontfix This will not be worked on

Comments

@USeebi
Copy link

USeebi commented Jul 25, 2024

Package name

Colab

Operating System(s)

  • linux-64
  • linux-aarch64
  • osx-64
  • osx-arm64
  • win-64

Additional context (optional)

I would like to run RoboStack on Google colab. I tried to have a Python 3.11 venv as well as to update colab python version but both have obstacles beyond my comprehensions.

I wonder is it possible to install an older version of RoboStack against Python 3.10?

Links and references (optional)

No response

@Tobias-Fischer Tobias-Fischer added the wontfix This will not be worked on label Jul 25, 2024
@Tobias-Fischer
Copy link
Collaborator

Unfortunately this is not feasible due to maintenance time. In theory it would be easy to do, but each additional Python version doubles the build time (+dealing with compatibility issues for multiple versions). See e.g. RoboStack/ros-humble#97

Furthermore, on colab you would need not just any Python but installed via conda in particular, which as far as I understand is not easy either.

@USeebi
Copy link
Author

USeebi commented Jul 25, 2024

Thanks very much for your prompt reply!

I understand the burdens to maintain a cross-platform packages. How about just the bare minimum say only up and running for turtlesim for proof of concepts to have RoboStack on colab. Conda is not a problem as long as the Python version of colab is kept. https://datascience.stackexchange.com/questions/75948/how-to-setup-and-run-conda-on-google-colab

Anyway is there any procedures to built/install RoboStack from sources could be shared?

Many thanks!

@Tobias-Fischer
Copy link
Collaborator

Yes, building locally should be relatively straightforward, see https://robostack.github.io/Contributing.html

@USeebi
Copy link
Author

USeebi commented Jul 26, 2024

Thanks Tobias,

I tried the Python 3.11 version on a local installation with juypterlab and I got ModuleNotFoundError: No module named 'notebook.utils' from the following:

image

This is the same error I got with colab that is out of my comprehension. What did I miss?

Traceback (most recent call last)

Cell In[3], line 1
----> 1 import jupyros
2 import rospy
3 from jupyros import TurtleSim

File ~/miniconda3/envs/ros_noetic/lib/python3.11/site-packages/jupyros/init.py:33
28 from .ros2.turtle_sim import *
30 else:
31 # Default to ROS1
32 # print(f'ROS {ros_distro} environment detected.')
---> 33 from .ros1.ipy import *
34 from .ros1.pubsub import *
35 from .ros1.ros_widgets import *

File ~/miniconda3/envs/ros_noetic/lib/python3.11/site-packages/jupyros/ros1/init.py:15
13 from .ros_widgets import *
14 from .ros3d import *
---> 15 from .server_extension import *
16 from .turtle_sim import *

File ~/miniconda3/envs/ros_noetic/lib/python3.11/site-packages/jupyros/ros1/server_extension.py:10
1 #############################################################################
2 # Copyright (c) Wolf Vollprecht, QuantStack #
3 # #
(...)
6 # The full license is in the file LICENSE, distributed with this software. #
7 #############################################################################
8 import os
---> 10 from notebook.utils import url_path_join
11 from notebook.base.handlers import IPythonHandler
13 import rospkg

ModuleNotFoundError: No module named 'notebook.utils'

@Tobias-Fischer
Copy link
Collaborator

That seems unrelated to RoboStack - my best guess is some version incompatibility with a too new version of “notebook”; there are several reports on this on StackOverflow.

/cc @hbcarlos @wolfv

@Tobias-Fischer
Copy link
Collaborator

See RoboStack/jupyter-ros#157

@USeebi USeebi closed this as completed Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
additional-packages wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants