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.

python3.7 posix broken on pipenv 2022.4.21

See original GitHub issue

Getting this error. Looks like it is using python2 libs for Crypto. Reverted to 2022.4.8 and that works.

botstream Traceback (most recent call last):
botstream   File "run.py", line 41, in <module>
botstream     main()
botstream   File "run.py", line 34, in main
botstream     accounts = Accounts()
botstream   File "/botstream-server/botstream/users/information.py", line 154, in __init__
botstream     from simplecrypt import decrypt
botstream   File "/usr/local/lib/python3.7/site-packages/simplecrypt/__init__.py", line 5, in <module>
botstream     from Crypto.Random.random import getrandbits
botstream   File "/usr/local/lib/python3.7/site-packages/Crypto/Random/__init__.py", line 28, in <module>
botstream     from Crypto.Random import OSRNG
botstream   File "/usr/local/lib/python3.7/site-packages/Crypto/Random/OSRNG/__init__.py", line 32, in <module>
botstream     from Crypto.Random.OSRNG.posix import new
botstream   File "/usr/local/lib/python3.7/site-packages/Crypto/Random/OSRNG/posix.py", line 66
botstream     except IOError, e:
botstream                   ^
botstream SyntaxError: invalid syntax
 ❯ diff posix.py /Users/rwong/tmp/2022-04-22/bad/site-packages/Crypto/Random/OSRNG/posix.py                                 [11:24:09]
32c32
< from .rng_base import BaseRNG
---
> from rng_base import BaseRNG
66c66
<             except IOError as e:
---
>             except IOError, e:

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:23

github_iconTop GitHub Comments

2reactions
rwong2888commented, May 23, 2022

@mohsyed04 , pinned pipenv like so pip install pipenv==2022.4.8

@whyboris or @wwwroth did you test with the newer pipenv and --system flag?

1reaction
rwong2888commented, Aug 23, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

Release and Version History — pipenv 2022.12.20.dev0 ...
Fix an issue when using pipenv install --system on systems that having the python executable pointing to Python 2 and a Python 3...
Read more >
pipenv Documentation - Read the Docs
Pipenv is a tool that aims to bring the best of all packaging worlds (bundler, composer, npm, cargo, yarn, etc.) to the. Python...
Read more >
Frequently Encountered Pipenv Problems - Read the Docs
This is usually a result of mixing Pipenv with system packages. We strongly recommend installing Pipenv in an isolated environment. Uninstall all existing ......
Read more >
python-pipenv broken after last update - Arch Linux Forums
Okay, there it is: archlinux-keyring 20220224-1 20220424-1 audit 3.0.7-1 3.0.8 ...
Read more >
pipenv - Bountysource
pipenv. Sacred Marriage of Pipfile, Pip, & Virtualenv. ... Issue with NumPy, macOS 11 Big Sur, Python 3.9.1 Does pipenv not use the...
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