Comments (7)
My apologies, it seems I forgot to circle back and communicate the fix was out. I hope you saw the patch bump and have been using v0.6.2.
from acopy.
Yes, it is now fixed for me! Thank you.
from acopy.
Looks like the fix didn't fix enough. Submitting a real fix for this momentarily.
from acopy.
This is verified fixed in v0.6.3:
$ python
Python 3.7.2 (default, Dec 27 2018, 07:35:52)
[Clang 10.0.0 (clang-1000.11.45.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import acopy
>>> acopy.utils
<module 'acopy.utils' from '/Users/rhgrant10/code/acopy/acopy/utils/__init__.py'>
>>> acopy.__version__
'0.6.3'
from acopy.
This still doesn't seem to work (on my machine):
File "main.py", line 6, in <module>
import acopy
File "/home/synthetica/.local/share/virtualenvs/portmantout-NI50_7Zr/lib/python3.7/site-packages/acopy/__init__.py", line 2, in <module>
from .ant import Ant # noqa: F401
File "/home/synthetica/.local/share/virtualenvs/portmantout-NI50_7Zr/lib/python3.7/site-packages/acopy/ant.py", line 7, in <module>
from .utils import positive
ModuleNotFoundError: No module named 'acopy.utils'
When I install everything with pipenv.
`Pipfile.lock` for completeness
{
"_meta": {
"hash": {
"sha256": "24b339beef93e96ae9cdfaef339666ebf42fad8fc95d3fdd6fe8cadb6a79f5a4"
},
"pipfile-spec": 6,
"requires": {
"python_version": "3.7"
},
"sources": [
{
"name": "pypi",
"url": "https://pypi.org/simple",
"verify_ssl": true
}
]
},
"default": {
"acopy": {
"hashes": [
"sha256:e652f7dce9bc51026dc65f35ffe3109ac9962a6590c3d5ec11be51b13a5ba651",
"sha256:ff3192b50079939c7b1331d5a5b14ddd23680b5cc85a272018f08b1882fb755d"
],
"index": "pypi",
"version": "==0.6.3"
},
"click": {
"hashes": [
"sha256:29f99fc6125fbc931b758dc053b3114e55c77a6e4c6c3a2674a2dc986016381d",
"sha256:f15516df478d5a56180fbf80e68f206010e6d160fc39fa508b65e035fd75130b"
],
"version": "==6.7"
},
"decorator": {
"hashes": [
"sha256:86156361c50488b84a3f148056ea716ca587df2f0de1d34750d35c21312725de",
"sha256:f069f3a01830ca754ba5258fde2278454a0b5b79e0d7f5c13b3b97e57d4acff6"
],
"version": "==4.4.0"
},
"marisa-trie": {
"hashes": [
"sha256:4419abb6b603c97e863fad994abe57ed247fb12491f4bbacb2d762bd2e8958b6",
"sha256:c73bc25d868e8c4ea7aa7f1e19892db07bba2463351269b05340ccfa06eb2baf"
],
"index": "pypi",
"version": "==0.7.5"
},
"networkx": {
"hashes": [
"sha256:64272ca418972b70a196cb15d9c85a5a6041f09a2f32e0d30c0255f25d458bb1"
],
"index": "pypi",
"version": "==2.1"
},
"tsplib95": {
"hashes": [
"sha256:a7672f7b9d1ae06c80639a6585e71c79c0459a7dc0eb9babf51e302fe3552d51",
"sha256:e0e6905a35f29234de496a874905413b9c9ce437a8d572e95351cc255c16be83"
],
"version": "==0.3.2"
}
},
"develop": {}
}
from acopy.
@Synthetica9 thanks for including the pipfile.lock - I'm able to reproduce. Working on a fix.
from acopy.
@Synthetica9 okay I believe I have found the true source of this issue.
The invocation of setuptools.find_packages
in the setup.py
actually specified just the root package, thereby implicitly excluding all other packages (even nested ones) from the packaging process. When I performed local testing and the imports seemed in working order, it was only because of the way pip does local installs when passing the --editable
flag. (I actually had to install the local copy without using editable and be in another directory before I could reproduce the error without having to install it from PyPI.)
Three fixes is a charm, right? Anyway, thanks for your patience.
from acopy.
Related Issues (20)
- update_scent should encompass _trace_elite HOT 1
- Don't need to ask each ant if moving is possible HOT 2
- Can't copy Ants or Worlds HOT 1
- Cloned ant has source ant's uid HOT 1
- Strange method names HOT 1
- The main method is a mess! HOT 1
- No way to input coordinates from command line HOT 1
- Running ACO when starting start node is given HOT 4
- Failure on noncomplete graph HOT 2
- Error: not exists edge when using networkx graph generator HOT 4
- [Proposal] ant's move can handles the not complete graph. HOT 1
- ValueError: The truth value of a DataFrame is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all(). HOT 2
- Only works for fully connected graphs HOT 1
- Algorirhm diverge
- bump version of click
- Yielding local best OR global best HOT 1
- Argument/property name mismatch HOT 3
- No property access for initial world pheromone level HOT 1
- No documentation for properties HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from acopy.