-
Notifications
You must be signed in to change notification settings - Fork 23
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
NameError: name 'packbits' is not defined #9
Comments
Hi, the file packbits (cython type) is not compiled, to do it, clne this repository and run: python setup.py install build_ext --inplace it will compile the lib, then you can reference it from the cloned repo. |
Hi, if you want to use the pip to install pytoshop, you have to install cython before to install pytoshop. For example, if you use the 'virtualenv' to build your environment, you can command this script just like below: cd 'your_project_folder'
virtualenv venv
source venv/bin/activate
pip install Cython
pip install pytoshop Finally, you can use some codes for testing. |
Now this package version is 1.2.0 on PyPI. This repository's master branch's version seems to be 1.1.0. My dev environment is Ubuntu 18.04 LTS, and I'm using python 3.6.5 and gcc-7.3, Cython 0.28.5 |
open this file: At the starting of the code change: try: TO try: Fixed. |
I'm using anaconda. I created an environment with: It works. The However, with python=3.7, I have the
|
credit to mdboom#9 (comment)
If you installed pytoshop earlier, got this error, came to this issue, uninstalled pytoshop, and installed pytoshop again, pip will use the cached version. You need to disable the cache for pytoshop to compile using cython.
|
Type the command below twice
|
What worked for me is: add
before import line
in file codecs.py Sorry for my english, I'm from Ukraine. |
Description
Write ChannelImageData
NameError: name 'packbits' is not defined
link vpn.psd
What I Did
The text was updated successfully, but these errors were encountered: