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.

demjeson install cannot be done since setuptools upgrade, so neither justpy can.

See original GitHub issue

Today on a new deploy I did :

pip3 install justpy

but ends up failing because:

ERROR: Cannot install justpy==0.0.5, justpy==0.0.6, justpy==0.0.7, justpy==0.0.8, justpy==0.0.9, justpy==0.1.0, justpy==0.1.1, justpy==0.1.2, justpy==0.1.3, justpy==0.1.4 and justpy==0.1.5 because these package versions have conflicting dependencies.

The conflict is caused by:
    justpy 0.1.5 depends on demjson>=2.2.4
    justpy 0.1.4 depends on demjson>=2.2.4
    justpy 0.1.3 depends on demjson>=2.2.4
    justpy 0.1.2 depends on demjson>=2.2.4
    justpy 0.1.1 depends on demjson>=2.2.4
    justpy 0.1.0 depends on demjson>=2.2.4
    justpy 0.0.9 depends on demjson>=2.2.4
    justpy 0.0.8 depends on demjson>=2.2.4
    justpy 0.0.7 depends on demjson>=2.2.4
    justpy 0.0.6 depends on demjson>=2.2.4
    justpy 0.0.5 depends on demjson>=2.2.4

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

it is an open issue at demjson repo:

https://github.com/dmeranda/demjson/issues/40

Downgrading to setuptools 57.5.0 it des not work, it installs but while doing:

import justpy

gives:

import justpy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/data/giodegas/dev/AQ2009/myenv/lib/python3.8/site-packages/justpy/__init__.py", line 1, in <module>
    from .justpy import *
  File "/data/giodegas/dev/AQ2009/myenv/lib/python3.8/site-packages/justpy/justpy.py", line 13, in <module>
    from .chartcomponents import *
  File "/data/giodegas/dev/AQ2009/myenv/lib/python3.8/site-packages/justpy/chartcomponents.py", line 2, in <module>
    import demjson
  File "/data/giodegas/dev/AQ2009/temp/demjson/demjson.py", line 645
    class json_int( (1L).__class__ ):    # Have to specify base this way to satisfy 2to3
                      ^
SyntaxError: invalid syntax

@elimintz what can I do now? Thank you for your support.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:18

github_iconTop GitHub Comments

1reaction
Flovacommented, Feb 1, 2022

It works fine for me too

1reaction
giodegascommented, Jan 29, 2022

Some preliminary test show it is ok now. Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

demjeson install cannot be done since setuptools upgrade, so ...
Today on a new deploy I did : pip3 install justpy but ends up failing because: ERROR: Cannot install justpy==0.0.5, justpy==0.0.6, ...
Read more >
sudo pip install setuptools --upgrade error - Stack Overflow
Try to upgrade manually: pip uninstall setuptools pip install setuptools. If it doesn't work, try: pip install --upgrade setuptools --user python.
Read more >
demjeson install cannot be done since setuptools ... - bytemeta
Today on a new deploy I did : pip3 install justpy. but ends up failing because: ERROR: Cannot install justpy==0.0.5, justpy==0.0.6, justpy==0.0.7, ...
Read more >
Getting Started - JustPy
Installation ¶. First, make sure that the version of python3 you have is 3.7 or higher: $ python3 --version. If not, ...
Read more >
JustPy is an object-oriented, component based, high-level ...
JustPy can also be used to create graphic user interfaces for Python ... demjeson install cannot be done since setuptools upgrade, so ......
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