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

unable to install rospy-builder in my own project #34

Open
jbcpollak opened this issue Sep 29, 2020 · 2 comments
Open

unable to install rospy-builder in my own project #34

jbcpollak opened this issue Sep 29, 2020 · 2 comments

Comments

@jbcpollak
Copy link

I'd like to start building ROS message types in my own project, but when I try and install rospy-builder, I get this error:

(env) $ pip install --extra-index-url https://rospypi.github.io/simple/ rospy-builder
Looking in indexes: https://pypi.org/simple, https://rospypi.github.io/simple/
Collecting rospy-builder
  Downloading https://github.com/rospypi/simple/raw/any/rospy-builder/rospy_builder-0.5.0-py2.py3-none-any.whl (7.3 kB)
Requirement already satisfied: click in ./env/lib/python3.7/site-packages (from rospy-builder) (7.0)
Requirement already satisfied: gitpython in ./env/lib/python3.7/site-packages (from rospy-builder) (3.0.5)
Requirement already satisfied: setuptools in ./env/lib/python3.7/site-packages (from rospy-builder) (49.6.0)
Requirement already satisfied: catkin-pkg in ./env/lib/python3.7/site-packages (from rospy-builder) (0.4.22)
ERROR: Could not find a version that satisfies the requirement dataclasses<1,>=0.7 (from rospy-builder) (from versions: 0.1, 0.2, 0.3, 0.4, 0.5, 0.6)
ERROR: No matching distribution found for dataclasses<1,>=0.7 (from rospy-builder)

I am running Python 3.7.8

(env) $ cat .python-version 
3.7.8

I see in my checked out copy of this repo that rospy-builder/setup.py has this code:

if sys.version_info < (3, 7):
    install_requires.append("dataclasses>=0.7,<1")

so I'm a bit confused. Is the version uploaded to pypi outdated?

Thanks!

@otamachan
Copy link
Contributor

Thank you for your report!

It seems the wheel package does not include conditional dependency well if I describe like this.

if sys.version_info < (3, 7):
    install_requires.append("dataclasses>=0.7,<1")

I fixed this in #35 so that it complies with PEP 508.

Could you use the pre released package or source package for now?

pip install --extra-index-url https://rospypi.github.io/simple/_pre rospy-builder

or

pip install --extra-index-url https://rospypi.github.io/simple --no-binary rospy-builder rospy-builder

@jbcpollak
Copy link
Author

Hi this command worked for me, thanks!

pip install --extra-index-url https://rospypi.github.io/simple/_pre rospy-builder

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

2 participants