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

Invalid syntax when installing ns3gym python package #40

Closed
mghnm opened this issue Feb 2, 2021 · 1 comment
Closed

Invalid syntax when installing ns3gym python package #40

mghnm opened this issue Feb 2, 2021 · 1 comment

Comments

@mghnm
Copy link

mghnm commented Feb 2, 2021

Got an error while trying to install the ns3gym python package:

pip3 install /home/repo/ns3- gym/src/opengym/model/ns3gym Processing /home/repo/ns3-gym/src/opengym/model/ns3gym Collecting pyzmq (from ns3gym===0.1.0) Using cached https://files.pythonhosted.org/packages/d7/4f/2e09600112c1e69ea7eefef3db443d966ae670a5b9fa229fe6eb84e945a4/pyzmq-22.0.2.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-build-eqvij9yl/pyzmq/setup.py", line 259 info(f"Found zmq.h in {include_dir}") ^ SyntaxError: invalid syntax

I have the following libzmq installed on Ubuntu 16.04.

libzmq3-dev/xenial-updates,xenial-security,now 4.1.4-7ubuntu0.1 amd64 [installed]
libzmq5/xenial-updates,xenial-security,now 4.1.4-7ubuntu0.1 amd64 [installed]

Disclosure: I had an issue with building prior but reverting the commit that changed the depreciated zmq methods worked fine.

@mghnm
Copy link
Author

mghnm commented Feb 3, 2021

The invalid syntax error occurs due to incorrect python-pip version running the pip command. Python 3 and pip3 didn't work I needed to specify python3.7 specifically when running pip to get it working.
python3.7 -m pip install /home/repo/ns3-gym/src/opengym/model/ns3gym

@mghnm mghnm closed this as completed Feb 3, 2021
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

1 participant