cpdf icon indicating copy to clipboard operation
cpdf copied to clipboard

error No module named 'pyprind'

Open alberto56 opened this issue 6 years ago • 6 comments

I'm getting this error when trying to use the module:

Traceback (most recent call last):
  File "/bin/cpdf", line 19, in <module>
    import os, datetime, sys, glob, re, subprocess, pyprind, time
ModuleNotFoundError: No module named 'pyprind'

alberto56 avatar May 12 '20 00:05 alberto56

See also https://github.com/rasbt/pyprind/issues/45

alberto56 avatar Jun 01 '20 00:06 alberto56

The message says you are missing pyprind module. Just install it by 'sudo pip3 install pyprind'.

HydeFromT70s avatar Jun 07 '20 15:06 HydeFromT70s

Thanks @HydeFromT70s I tried this, but if you take a look at this Dockerfile, using pip3 to install pyprind works fine, but running cpdf cannot find it nonetheless.

To reproduce make sure Docker is running, then:

git clone --single-branch --branch dev/1 https://github.com/dcycle/docker-compresspdf.git
cd ./docker-compresspdf
./test.sh 

You can see the output of the test here.

Thanks!

alberto56 avatar Jun 08 '20 22:06 alberto56

If using other envs like conda, you may change the file header from #!/bin/user/python3 to your own python which shall be found with which python.

shijianjian avatar Aug 25 '20 15:08 shijianjian

It just dawned on me as I decided to play with Gooey today... I have 3.7 and 3.8 installed and pip installs everything to the 3.8 dir but the python3 alias points to 3.7. Could that be what you are experiencing?

My quickest workaround was to put #!/usr/bin/python38 up top replacing #/usr/bin/python3....

hkdb avatar Aug 25 '20 19:08 hkdb

Stale. Closing due to lack of response.

hkdb avatar Jan 17 '21 15:01 hkdb