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

Error when installing setup.py #35

Open
Pante9 opened this issue Mar 30, 2021 · 5 comments
Open

Error when installing setup.py #35

Pante9 opened this issue Mar 30, 2021 · 5 comments

Comments

@Pante9
Copy link

Pante9 commented Mar 30, 2021

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

@tomalrussell
Copy link
Collaborator

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.

@Pante9
Copy link
Author

Pante9 commented Mar 31, 2021

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

@tomalrussell
Copy link
Collaborator

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

@Pante9
Copy link
Author

Pante9 commented Mar 31, 2021

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

@Pante9
Copy link
Author

Pante9 commented Mar 31, 2021

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

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