syntax error in 4.0.2 package
See original GitHub issueDescribe 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
Is * as an argument new syntax? I don’t recall seeing it in Python 3.5.
Your enviroment
Conda Forge
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

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.
Thanks for looking into this. Trying now with an updated “host” python version