question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

syntax error in 4.0.2 package

See original GitHub issue

Describe the bug

When attempting to create a conda package for pyfakefs, I’m getting a syntax error.

  Added file://$SRC_DIR to build tracker '/tmp/pip-req-tracker-f5OOUn'
    Running setup.py (path:/tmp/pip-req-build-K9KwEU/setup.py) egg_info for package from file://$SRC_DIR
    Running command python setup.py egg_info
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-req-build-K9KwEU/setup.py", line 22, in <module>
        from pyfakefs.fake_filesystem import __version__
      File "pyfakefs/fake_filesystem.py", line 1195
        def utime(self, path, times=None, *, ns=None, follow_symlinks=True):
                                           ^
    SyntaxError: invalid syntax

https://dev.azure.com/conda-forge/feedstock-builds/_build/results?buildId=128243&view=logs&j=1bf226d3-0e2f-52d8-fa93-7d9e633347b3&t=ec8d466d-e3b4-5115-4f06-222398f91e6c&l=419

Is * as an argument new syntax? I don’t recall seeing it in Python 3.5.

Your enviroment

Conda Forge

https://github.com/conda-forge/pyfakefs-feedstock/pull/8

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mrbean-bremencommented, Mar 7, 2020

This has been introduced to several functions in Python 3.3. The asterisk argument syntax has been added in Python 3, meaning that all arguments after it are keyword-only arguments. Here is the documentation for utime.

0reactions
tswastcommented, Mar 16, 2020

Thanks for looking into this. Trying now with an updated “host” python version

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dealing with R 4.0 - RStan - The Stan Forums
Hi Doguhan,. The relevant error in your case is: sh: -c: line 0: syntax error near unexpected token `('. Which I believe is...
Read more >
Syntax Error encountered while installing package in linux ...
I'm trying to download the Turtle Graphics Package for Python, so I enter the following command into my linux terminal:
Read more >
syntax-error - npm Package Health Analysis - Snyk
Detect and report syntax errors in source code strings. When you type node src. js you get a friendly error report about exactly...
Read more >
Syntax error in input(3) of itkVectorContainer.i #3506 - GitHub
Build of the openSUSE package is failing because of a syntax error. Reproducibility. 100% on s390x and x86. Versions. 5.2.1. Environment.
Read more >
pip --version returns SyntaxError (invalid syntax) after installation
According to phd's post, the root cause is the PIP version installed by default being not compatible with the old Python version 3.4....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found