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.

Problem loading Atomic conv (ACNN) datasets

See original GitHub issue

I’ve been trying to run the ACNN examples but I’ve been hitting this error:

$ python opt_random.py 
Loading dataset from disk.
Loading dataset from disk.
Traceback (most recent call last):
  File "/Users/stanlen1/anaconda/envs/deepchem/lib/python3.5/site-packages/joblib/numpy_pickle_compat.py", line 226, in load_compatibility
    obj = unpickler.load()
  File "/Users/stanlen1/anaconda/envs/deepchem/lib/python3.5/pickle.py", line 1043, in load
    dispatch[key[0]](self)
  File "/Users/stanlen1/anaconda/envs/deepchem/lib/python3.5/pickle.py", line 1185, in load_binstring
    self.append(self._decode_string(data))
  File "/Users/stanlen1/anaconda/envs/deepchem/lib/python3.5/pickle.py", line 1167, in _decode_string
    return value.decode(self.encoding, self.errors)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xdd in position 0: ordinal not in range(128)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/stanlen1/anaconda/envs/deepchem/lib/python3.5/site-packages/deepchem/utils/save.py", line 115, in load_from_disk
    return joblib.load(filename)
  File "/Users/stanlen1/anaconda/envs/deepchem/lib/python3.5/site-packages/joblib/numpy_pickle.py", line 576, in load
    return load_compatibility(fobj)
  File "/Users/stanlen1/anaconda/envs/deepchem/lib/python3.5/site-packages/joblib/numpy_pickle_compat.py", line 235, in load_compatibility
    raise new_exc
ValueError: You may be trying to read with python 3 a joblib pickle generated with python 2. This feature is not supported by joblib.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/stanlen1/anaconda/envs/deepchem/lib/python3.5/site-packages/sklearn/externals/joblib/numpy_pickle_compat.py", line 226, in load_compatibility
    obj = unpickler.load()
  File "/Users/stanlen1/anaconda/envs/deepchem/lib/python3.5/pickle.py", line 1043, in load
    dispatch[key[0]](self)
  File "/Users/stanlen1/anaconda/envs/deepchem/lib/python3.5/pickle.py", line 1185, in load_binstring
    self.append(self._decode_string(data))
  File "/Users/stanlen1/anaconda/envs/deepchem/lib/python3.5/pickle.py", line 1167, in _decode_string
    return value.decode(self.encoding, self.errors)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xdd in position 0: ordinal not in range(128)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "opt_random.py", line 44, in <module>
    y_train = train_dataset.y
  File "/Users/stanlen1/anaconda/envs/deepchem/lib/python3.5/site-packages/deepchem/data/datasets.py", line 1004, in y
    for (_, y_b, _, _) in self.itershards():
  File "/Users/stanlen1/anaconda/envs/deepchem/lib/python3.5/site-packages/deepchem/data/datasets.py", line 609, in iterate
    X = np.array(load_from_disk(os.path.join(dataset.data_dir, row['X'])))
  File "/Users/stanlen1/anaconda/envs/deepchem/lib/python3.5/site-packages/deepchem/utils/save.py", line 120, in load_from_disk
    return old_joblib.load(filename)
  File "/Users/stanlen1/anaconda/envs/deepchem/lib/python3.5/site-packages/sklearn/externals/joblib/numpy_pickle.py", line 573, in load
    return load_compatibility(fobj)
  File "/Users/stanlen1/anaconda/envs/deepchem/lib/python3.5/site-packages/sklearn/externals/joblib/numpy_pickle_compat.py", line 235, in load_compatibility
    raise new_exc
ValueError: You may be trying to read with python 3 a joblib pickle generated with python 2. This feature is not supported by joblib.

I’ve run into this error on linux and mac os, despite the fact that I have no problem spinning up a ipython terminal and reading the files manually. What’s going on? Is it trying to load it using the wrong loader, or is using the wrong decoding?

cc: @joegomes

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
nhstanleycommented, Sep 27, 2017

Yea, I’ll go for it.

0reactions
rbharathcommented, Jan 18, 2020

Closing out this issue. We can continue discussion in #1179 if there’s interest

Read more comments on GitHub >

github_iconTop Results From Across the Web

Modeling Protein-Ligand Interactions with Atomic Convolutions
This deepchem tutorial introduces Atomic Convolutional Model. We'll see the structure of the Atomic Conv Model and write a simple program to run...
Read more >
Modeling Protein-Ligand Interactions with Atomic ...
We'll walk through how an Atomic ConvNet works, how to quickly get a dataset of protein-ligand complexes, and train a model to predict ......
Read more >
MoleculeNet — deepchem 2.6.2.dev documentation
The MoleculeNet suite has curated a whole range of datasets and loaded them into DeepChem dc.data.Dataset objects for convenience.
Read more >
What is the proper to save the fitted CNN model for MNIST ...
What needs to be done to get same accuracy after saving and uploading the model in different jypyter notebook session? conv-neural-network ...
Read more >
cnn_dailymail · Datasets at Hugging Face
Group is working to raise awareness of the problem with Iraq's political leaders . Two Iraqi mothers tell CNN they turned to prostitution...
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