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

SyntaxError: assignment to keyword => True, False = (1 == 1), (0 == 1) #43

Closed
mookins opened this Issue Feb 7, 2014 · 9 comments

Comments

Projects
None yet
7 participants
@mookins

mookins commented Feb 7, 2014

C:\Anaconda>pip install -U pymodbus
Downloading/unpacking pymodbus
Downloading pymodbus-1.2.0.tar.gz (75Kb): 75Kb downloaded
Running setup.py egg_info for package pymodbus
Traceback (most recent call last):
File "", line 14, in
File "C:\Anaconda\build\pymodbus\setup.py", line 26, in
from pymodbus import version, author
File "pymodbus__init__.py", line 37
True, False = (1 == 1), (0 == 1)
^
SyntaxError: assignment to keyword
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

File "", line 14, in

File "C:\Anaconda\build\pymodbus\setup.py", line 26, in

from pymodbus import __version__, __author__

File "pymodbus__init__.py", line 37

True, False = (1 == 1), (0 == 1)

   ^

SyntaxError: assignment to keyword


Command python setup.py egg_info failed with error code 1 in C:\Anaconda\build\p
ymodbus
Storing complete log in \xxxx\AppData\Roaming\pip\pip.log

print sys.version
2.7.5 |Anaconda 1.8.0 (32-bit)| (default, Jul 1 2013, 12:41:55) [MSC v.1500 32 bit (Intel)]

If I comment out those four lines, it works fine.

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Feb 20, 2014

Problem is still here: I've got the same error, when I try to install pymodbus via pip:

D:\work\Демо\ПО для PC\MyProject>pip install -U pymodbus
Downloading/unpacking pymodbus
  Running setup.py (path:c:\users\andrie~1\appdata\local\temp\pip_build_Andrienko\pymodbus\setup.py) egg_info for package pymodbus
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "c:\users\andrie~1\appdata\local\temp\pip_build_Andrienko\pymodbus\setup.py", line 26, in <module>
        from pymodbus import __version__, __author__
      File ".\pymodbus\__init__.py", line 37
        True, False = (1 == 1), (0 == 1)
           ^
    SyntaxError: assignment to keyword
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "c:\users\andrie~1\appdata\local\temp\pip_build_Andrienko\pymodbus\setup.py", line 26, in <module>

    from pymodbus import __version__, __author__

  File ".\pymodbus\__init__.py", line 37

    True, False = (1 == 1), (0 == 1)

       ^

SyntaxError: assignment to keyword

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in c:\users\andrie~1\appdata\local\temp\pip_build_Andrienko\pymodbus
Storing debug log for failure in D:\Data\pip\pip.log

UPD:
If I try to install pymodbus from sources - I've got the same error:

D:\work\Демо\ПО для PC\pymodbus>python setup.py install
Traceback (most recent call last):
  File "setup.py", line 26, in <module>
    from pymodbus import __version__, __author__
  File "D:\work\Демо для MA844+MD808+SCG4.1\4. ПО для PC\pymodbus\pymodbus\__init__.py", line 37
    True, False = (1 == 1), (0 == 1)
       ^
SyntaxError: assignment to keyword

Python version:

D:\work\Демо для MA844+MD808+SCG4.1\4. ПО для PC\pymodbus>python --version
Python 3.3.0

ghost commented Feb 20, 2014

Problem is still here: I've got the same error, when I try to install pymodbus via pip:

D:\work\Демо\ПО для PC\MyProject>pip install -U pymodbus
Downloading/unpacking pymodbus
  Running setup.py (path:c:\users\andrie~1\appdata\local\temp\pip_build_Andrienko\pymodbus\setup.py) egg_info for package pymodbus
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "c:\users\andrie~1\appdata\local\temp\pip_build_Andrienko\pymodbus\setup.py", line 26, in <module>
        from pymodbus import __version__, __author__
      File ".\pymodbus\__init__.py", line 37
        True, False = (1 == 1), (0 == 1)
           ^
    SyntaxError: assignment to keyword
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "c:\users\andrie~1\appdata\local\temp\pip_build_Andrienko\pymodbus\setup.py", line 26, in <module>

    from pymodbus import __version__, __author__

  File ".\pymodbus\__init__.py", line 37

    True, False = (1 == 1), (0 == 1)

       ^

SyntaxError: assignment to keyword

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in c:\users\andrie~1\appdata\local\temp\pip_build_Andrienko\pymodbus
Storing debug log for failure in D:\Data\pip\pip.log

UPD:
If I try to install pymodbus from sources - I've got the same error:

D:\work\Демо\ПО для PC\pymodbus>python setup.py install
Traceback (most recent call last):
  File "setup.py", line 26, in <module>
    from pymodbus import __version__, __author__
  File "D:\work\Демо для MA844+MD808+SCG4.1\4. ПО для PC\pymodbus\pymodbus\__init__.py", line 37
    True, False = (1 == 1), (0 == 1)
       ^
SyntaxError: assignment to keyword

Python version:

D:\work\Демо для MA844+MD808+SCG4.1\4. ПО для PC\pymodbus>python --version
Python 3.3.0
@mookins

This comment has been minimized.

Show comment
Hide comment
@mookins

mookins Feb 20, 2014

Python 3.3.0 will give this error. Only Python 2(.7) will work.

I also found I had a rouge install of Python 3 which ran when I opened a specific command window.
I removed this version from the system path and issue was resolved.

mookins commented Feb 20, 2014

Python 3.3.0 will give this error. Only Python 2(.7) will work.

I also found I had a rouge install of Python 3 which ran when I opened a specific command window.
I removed this version from the system path and issue was resolved.

@mookins mookins closed this Feb 20, 2014

@tomkuijsten

This comment has been minimized.

Show comment
Hide comment
@tomkuijsten

tomkuijsten Feb 10, 2015

Just wanted to add that you could also download the source from the 3 branch and use the "python setup.py install", which will work.

tomkuijsten commented Feb 10, 2015

Just wanted to add that you could also download the source from the 3 branch and use the "python setup.py install", which will work.

@OldTinfoil

This comment has been minimized.

Show comment
Hide comment
@OldTinfoil

OldTinfoil Aug 9, 2015

Downloaded from the python3 branch, used "python setup.py install" and still received the above error.

OldTinfoil commented Aug 9, 2015

Downloaded from the python3 branch, used "python setup.py install" and still received the above error.

@leocor

This comment has been minimized.

Show comment
Hide comment
@leocor

leocor Dec 1, 2015

Same error to date.

leocor commented Dec 1, 2015

Same error to date.

@apalkoff

This comment has been minimized.

Show comment
Hide comment
@apalkoff

apalkoff Dec 3, 2015

same. python 3.5

apalkoff commented Dec 3, 2015

same. python 3.5

@geoffe

This comment has been minimized.

Show comment
Hide comment
@geoffe

geoffe Mar 9, 2016

How is this issue closed? Broken in pymodbus-1.2.0 -- is there a work-hack-around? Is there a pymodbus-1.2.1?

geoffe commented Mar 9, 2016

How is this issue closed? Broken in pymodbus-1.2.0 -- is there a work-hack-around? Is there a pymodbus-1.2.1?

@alonek1

This comment has been minimized.

Show comment
Hide comment
@alonek1

alonek1 Sep 4, 2016

same problem

alonek1 commented Sep 4, 2016

same problem

@alonek1

This comment has been minimized.

Show comment
Hide comment
@alonek1

alonek1 Sep 4, 2016

pip install pymodbus3 will work
but it seems its not the full version of pymodbus

alonek1 commented Sep 4, 2016

pip install pymodbus3 will work
but it seems its not the full version of pymodbus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment