edwardoughton / pysim5g

Python Simulator for Integrated Modelling of 5G (pysim5g)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error when installing setup.py

Pante9 opened this issue · comments

Based on the instructions given I installed fiona, shapely etc, and now I' m trying to install pysim5g permanently with
python setup.py develop
Running the above, or the below
python setup.py install
I get the following error.

Any idea on how to fix it?

error

Hi @Pante9 - it looks like a syntax error from the f"string" in the last line there.

Can you try upgrading the python in your conda environment to 3.7? Try running:

conda activate pysim5g
conda install python=3.7

Then try again.

If that fixes it, we should change the README instructions, which use 3.5.

Hi @Pante9 - it looks like a syntax error from the f"string" in the last line there.

Can you try upgrading the python in your conda environment to 3.7? Try running:

conda activate pysim5g
conda install python=3.7

Then try again.

If that fixes it, we should change the README instructions, which use 3.5.


Thanks for your time @tomalrussell

I tried with python 3.7 and got the following error this time

newnew

Okay - the end of the error message there should be some help - are you running from a ZIP download of the code?

Two different things you could try:

  • clone the repository using git clone https://github.com/edwardoughton/pysim5g.git on the command line or use an application like GitHub Desktop, and then run python setup.py develop from that folder.
  • run pip install git+https://github.com/edwardoughton/pysim5g.git#egg=pysim5g to install the package directly from GitHub - this should work if you just want to run scripts using pysim5g, but is not so good if you want to make changes to the source code

Yes, I downloaded the code as a zip file and extracted it to a folder into the used path.
After cloning successfully the repository,
1a
I got the same error about 'console scripts'.
1b

Same thing when running pip install git+https://github.com/edwardoughton/pysim5g.git#egg=pysim5g

prob
Tried already to comment/uncomment "console scripts", but still gets an error